Hi Jim, 

Unlike other SOAP services, the result of the adhoc reports is returned as 
one of the following format.
CSVFOREXCEL
CSV
TSV
XML
GZIPPED_CSV
GZIPPED_XML

You can include one of the above like in the following code. 
$reportDefinition->downloadFormat = 'CSV';

Best,
- Takeshi, AdWords API Team


On Friday, August 23, 2013 12:10:48 PM UTC+9, Jim Zuccon wrote:
>
> Hi guys,
>
> Am trying to implement the Minimum Required Functionality for Reporting in 
> a PHP Application, but am having a little trouble working out how the 
> ReportDefinitionService works.
>
> At present, I have the following erronous code which hopefully 
> demonstrates roughly what I'm trying to do:
>
> $selector = new \Selector();
> $selector->fields = array('Id', 'Name', 'Clicks', 'Cost', 'Impressions', 
> 'Conversions', 'Status' );
> $selector->ordering[] = new \OrderBy('Name', 'ASCENDING');
> $campaignPerformanceReportService = 
> $user->GetService('ReportDefinitionService', ADWORDS_VERSION);
> $campaignPerformanceReportService->reportType = 
> 'CAMPAIGN_PERFORMANCE_REPORT';
> $page = $campaignPerformanceReportService->get($selector);
> $campaignPerformanceReport = $page->entries;
>
> However, looking at the example code, I've noticed that Reports download 
> to CSV, so I'm not even sure that what I'm attempting to do (get the data 
> the same as with the other services) is supported.
>
> Is there any example code or documentation that you might be able to point 
> me to to help me in this regard?
>
> Thanks in advance,
> - Jim
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to