Hi Wilrik,
thanks a lot for your reply!
For get the Account Stats, I setted
$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
but in order to select the account what field should I set?
$adGroupPredicate = new Predicate();
$adGroupPredicate->field = 'ClientId';
$adGroupPredicate->operator = 'EQUALS';
$adGroupPredicate->values = array('123-123-1234');
In order to get all the Network Reports for a selected account, should
I have to set the Predicate::field as before?
Thanks.
On Oct 29, 3:39 pm, Wilrik Mook <[email protected]> wrote:
> Hi Federico,
>
> You can find documentation about which fields to include in the
> ReportDefinition selector
> here:http://code.google.com/apis/adwords/docs/appendix/reports.html#keywords
> On this page you can find all possible fields for all types of
> reports.
>
> So, to include the network field in your report, add 'AdNetworkType1'
> to the array at line 65-66 of the example you linked. That should be
> enough.
>
> To get account stats instead of keyword stats, you'll have to use the
> correct performance report type for accounts (defined on line 74 of
> the example, should be 'ACCOUNT_PERFORMANCE_REPORT' for accounts).
> See url provided above for possible fields of this type of report.
>
> Hope this helps!
>
> Regards,
>
> Wilrik
> 050media
>
> On Oct 29, 3:26 pm, Federico Ulfo <[email protected]> wrote:
>
> > Hi,
>
> > in order to get the Network (into campaign), and also to get the
> > Account Stats,
> > I need to use GetReportDefinitionService. Are there any working
> > examples?
>
> > Or can you please help me to modify this example to make it retrieving
> > the
> > networks:http://code.google.com/p/google-api-adwords-php/source/browse/trunk/e...
>
> > Do you know also how to modify that example to get the account stats?
>
> > Cheers,
> > Federico
>
>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en