Thanks Ewan.

Here's a code example for quick reference:  
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109/Reporting/DownloadCriteriaReport.php
 

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Saturday, 3 March 2012 08:19:00 UTC+5:30, RainElemental wrote:
>
> Hi, 
> I've developed an application in PHP to manage the Adwords users 
> report. The application was made with the SDK PHP v201008 so now I have to 
> upgrade to v201109. 
> The application uses ReportDefinitionOperation() and 
> $reportDefinitionService->mutate(). What should I use in the new API?
>
> Here is the code I'm using:
>
> // Create selector.
>> $selector = new Selector();
>> $selector->fields = $accountFields = array( 'Clicks', 'Impressions', 
>> 'AverageCpc', 'AverageCpm', 'Ctr', 'AveragePosition', 'Cost' );
>>
>> // Create report definition.
>> $reportDefinition = new ReportDefinition();
>> $reportDefinition->reportName = "Account";
>> $reportDefinition->dateRangeType = $dateRangeType;
>> $reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
>> $reportDefinition->downloadFormat = 'CSV';
>> $reportDefinition->selector = $selector;
>>
>> // Create operations.
>> $operation = new ReportDefinitionOperation();
>> $operation->operand = $reportDefinition;
>> $operation->operator = 'ADD';
>>
>> $operations[] = $operation;
>
>
> . . . the report definition operation is called for account, campaign, 
> group and keywords, and finally I get the report:
>
> // Get the reports
>> $result = $reportDefinitionService->mutate($operations);
>
>  
>
> I suggest next time you update something so important, send an email 
> (possibly notable because they all looks the same) to the developer and 
> also do an announcement here in the group, I'm peeved because my clients 
> manage more then 700 Adwords users, and the service is not working. 
>
> Thank you.
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to