Mike, It seems like there were issues in the data that's being posted to retrieve the report. Please see our Reporting Basics guide<https://developers.google.com/adwords/api/docs/guides/reporting> .
For example: - The XML needs to be encoded into the __rdxml parameter. - Authorization header should read Authorization: Bearer ....access_token... That being said, I feel you'll have an easier time if you used one of our client libraries <https://developers.google.com/adwords/api/docs/clientlibraries>to pull the reports. Every client library has an example on reporting. I noticed you tried using v201306. Please note that the reports are available in v201309. Cheers, Ray On Tuesday, March 4, 2014 1:58:26 PM UTC-5, Ray Tsang (AdWords API Team) wrote: > > Mike, > > Could I trouble you to clarify the issue? Are you having trouble > with DownloadcriteriaReportWithAWQL.php as is? Or are you having trouble > when you are not using a client library? > > Thanks! > > Ray > > On Wednesday, February 19, 2014 6:25:30 AM UTC-5, Mike Young wrote: >> >> >> Hi Paul, >> >> I have the same problem with my script >> DownloadcriteriaReportWithAWQL.php in the V201309 library >> >> I have stringed two reports together one downloading a report for >> yesterday (yesterday.xml) and another that downloads todays report >> (today.xml) >> Then it will unpick the XML after. >> All fine when I use one clientCustomerId in the auth.ini file. >> >> I was using the older client library (201306) with getcampaignstats.php >> and each time it was run it set a new clientCustomerId in the adwords >> user.php file using >> $this->SetClientCustomerId($newclientid); >> which worked and changed the number each time, via a text file reading a >> new client ID with a counter. >> >> But now I have updated the library I am getting this error, I have not >> added anything with headers etc. (not even thought about it!) >> It now does not download the XML files but an error file that says this >> >> <!DOCTYPE html> >> <html lang=en> >> <meta charset=utf-8> >> <meta name=viewport content="initial-scale=1, minimum-scale=1, >> width=device-width"> >> <title>Error 411 (Length Required)!!1</title> >> STYLE STUFF! >> <a href=//www.google.com/><span id=logo aria-label=Google></span></a> >> <p><b>411.</b> <ins>That’s an error.</ins> >> <p>POST requests require a <code>Content-length</code> header. >> <ins>That’s all we know.</ins> >> >> It does not seem to like a different number each time. When it is one >> number in the auth.ini file it works. >> >> How do I stop this? >> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
