It was my mistake. I was using file_get_contents() to read the contents of the file and dump it to the browser and seeing only a blank string. When I actually opened the downloaded XML file, the data was there. I apologize for the inconvenience. Thanks for your help!
On Thursday, January 10, 2013 6:36:35 AM UTC-5, Danial Klimkin wrote: > > Hello Jeff, > > > I've ran both CSV and XML reports with the definition above for the > account CID you provided and got exact the same data. > > Please send us the exact file you get downloaded with the XML format > requested. > > > -Danial, AdWords API Team. > > > > On Thursday, January 10, 2013 12:28:11 AM UTC+4, Jeff Freeman wrote: >> >> Were you able to reproduce the issue? >> >> On Wednesday, January 9, 2013 7:00:17 AM UTC-5, Danial Klimkin wrote: >>> >>> Hello Jeff, >>> >>> >>> Are you sure you use exactly the same report definition? If so, please >>> send me your account CID and I will try to reproduce the issue. >>> >>> >>> -Danial, AdWords API Team. >>> >>> >>> >>> On Saturday, January 5, 2013 2:06:07 AM UTC+4, Jeff Freeman wrote: >>>> >>>> Hi, I am trying to download a report through the API. When I set to the >>>> report download format to CSV, it works fine. But, when I switch to XML, >>>> the file that is download is empty. It just contains a blank string that >>>> is >>>> 300+ characters is length. Any idea what the issue is? I am using the PHP >>>> Client Library. Here is the log that is generated: >>>> >>>> [Jan 04 2013 15:56:53.000000 - INFO] POST >>>> /api/adwords/reportdownload/v201209 HTTP/1.1 >>>> User-Agent: curl, gzip >>>> Host: adwords.google.com >>>> Accept: */* >>>> Accept-Encoding: gzip >>>> Authorization: [removed] >>>> developerToken: [removed] >>>> clientCustomerId: [removed] >>>> returnMoneyInMicros: false >>>> Content-Length: 637 >>>> Expect: 100-continue >>>> Content-Type: multipart/form-data; >>>> boundary=----------------------------e4f66f82fb9b >>>> >>>> Parameters: >>>> __rdxml: <?xml version="1.0"?> >>>> <reportDefinition> >>>> <selector> >>>> <fields>Clicks</fields> >>>> <fields>Cost</fields> >>>> <fields>Impressions</fields> >>>> <dateRange> >>>> <min>20121201</min> >>>> <max>20121231</max> >>>> </dateRange> >>>> </selector> >>>> <reportName>50e750229b82d</reportName> >>>> <reportType>ACCOUNT_PERFORMANCE_REPORT</reportType> >>>> <dateRangeType>CUSTOM_DATE</dateRangeType> >>>> <downloadFormat>XML</downloadFormat> >>>> <includeZeroImpressions>false</includeZeroImpressions> >>>> </reportDefinition> >>>> >>>> Response Code: 200 >>>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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