Hi,

I think you must me missing a mailing list or two if you haven't seen any 
notices about this deprecation because I've been inundated was emails about 
it over the past few months! I suggest that you might want to subscribe to 
emails from the blog, and check that the email address associated with your 
developer token is up-to-date.

Anyway, your in luck because the changes you need to make aren't too 
extensive because v201109 made reporting easier; you no longer need to 
create a report before it can be run: Just remove the creation operations 
from your code, then request the report using 
the ReportUtils::DownloadReport() helper function. I haven't tested this 
out, but think something like the following should work:

// 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;

// Download the report
ReportUtils::DownloadReport($reportDefinition, $path, $user, $options);

You'll need add in your download path and an options you need. Check out 
the DownloadAdHocReport.php file in the examples for more details.

Regards,

Ewan

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to