Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
Hi Dave, For stored definition report downloads (where you pass an ID) we recommended using GET, since there was no large payload. For ad-hoc report downloads (where you pass the XML directly) the payload could be quite large, so a POST is recommended instead. Best, - Eric -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
hi Dave, could you post the xml you used to access the sample report successfully? I was rechecking our xml based on what Eric posted and we still couldn't get it to work. thanks! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
Also, it's worth noting that the report download servlet enforces XML validation like the v201109 SOAP services do. This means that elements must appear in the correct order as defined by the WSDL. Best, - Eric -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
Hi All, Unfortunately there are some problems with the sample report definition that we posted, and we're working to fix that. In the mean time, below is the raw HTTP logs for a successful request that uses the encoding application/x-www-form-urlencoded. Best, - Eric Koleda, AdWords API Team POST https://adwords.google.com/api/adwords/reportdownload/v201109 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: gzip returnMoneyInMicros: false Content-Type: application/x-www-form-urlencoded Authorization: GoogleLogin auth=DQAA... clientCustomerId: 832-... Host: adwords.google.com Content-Length: 710 __rdxml=%3CreportDefinition%3E+++%3Cselector%3E+%3Cfields%3ECampaignId%3C%2Ffields%3E+%3Cfields%3EId%3C%2Ffields%3E+%3Cfields%3EImpressions%3C%2Ffields%3E+%3Cfields%3EClicks%3C%2Ffields%3E+%3Cfields%3ECost%3C%2Ffields%3E+%3Cpredicates%3E+++%3Cfield%3EStatus%3C%2Ffield%3E+++%3Coperator%3EIN%3C%2Foperator%3E+++%3Cvalues%3EENABLED%3C%2Fvalues%3E+++%3Cvalues%3EPAUSED%3C%2Fvalues%3E+%3C%2Fpredicates%3E+++%3C%2Fselector%3E+++%3CreportName%3ESample+Report%3C%2FreportName%3E+++%3CreportType%3EADGROUP_PERFORMANCE_REPORT%3C%2FreportType%3E+++%3CdateRangeType%3ELAST_7_DAYS%3C%2FdateRangeType%3E+++%3CdownloadFormat%3ECSV%3C%2FdownloadFormat%3E+%3C%2FreportDefinition%3E+ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
Hi Eric, Thanks for your help and it works fine now. Just one more question: the AdHoc report service documentation states that we need to call the GET request to https://adwords.google.com/api/adwords/reportdownload?__rd=REPORT_DEFINITION_ID to download the report. However, it seems that the HTTP Post request will return the report data directly, is that correct? Regards, David On Oct 20, 1:20 am, Eric Koleda eric.kol...@google.com wrote: Also, it's worth noting that the report download servlet enforces XML validation like the v201109 SOAP services do. This means that elements must appear in the correct order as defined by the WSDL. Best, - Eric -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
Hi, I received following error when using the AdHoc Reports service: !!!2|||-1|||Improperly formatted report request??? According to the documentation at http://code.google.com/apis/adwords/docs/reportingtopics.html#adhoc. I used the '__rdxml= parameter name to post following XML request to https://adwords.google.com/api/adwords/reportdownload/v201109; reportDefinition selector fieldsDate/fields fieldsCampaignId/fields fieldsId/fields fieldsHourOfDay/fields fieldsImpressions/fields fieldsClicks/fields fieldsCost/fields predicates fieldBiddingStrategy/field operatorIN/operator valuesBidToPosition/values valuesCpaPercent/values /predicates dateRange min20111001/min max20111010/max /dateRange /selector reportNameTestReport/reportName reportTypeADGROUP_PERFORMANCE_REPORT/reportType dateRangeTypeCUSTOM_DATE/dateRangeType downloadFormatCSV/downloadFormat /reportDefinition then I received the following error: !!!2|||-1|||Improperly formatted report request???' I have used the correct HTTP header according to the specification. Could you please let me know what I am doing wrong? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Error: !!!2|||-1|||Improperly formatted report request??? for AdHoc Reports Service
I was getting the same error as the OP, tried the suggested report definition, and am still getting the same error. Tried removing the predicate completely, still got the error. Tried example report definition straight from the v201109 docs (http://code.google.com/apis/ adwords/docs/reportingtopics.html#adhoc) and same error. Problem does not appear to be account specific. Have tried doing both GET and POST, no difference in results. Since all data is now in the http header, maybe it would be useful for the AdWords team to post a sample dump of an http message so that we can see exactly what is in it for a successful request? thanks, -reed -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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