Hi Jim, You may want to check out the *Message format* section of the HTTP spec <http://tools.ietf.org/html/rfc7230#page-19>. I've never tried to do precisely what you're doing, but it sounds like what you need to do is embed newlines after each header, and then a blank line (two newline characters) after your headers.
Hope that helps! Josh, AdWords API Team On Monday, November 17, 2014 7:59:21 PM UTC-5, James Randell wrote: > > Thanks Josh, > so far, I believe i have found a major issue: headers name/value pairs > need to be separated by a colon. So that would make my original attempt > look more like this: > > > https://adwords.google.com/api/adwords/reportdownload/v201409 > Authorization:Bearer xxxxxxx& > developerToken:xxxxxxx& > clientCustomerId:xxx-xxx-xxx& > __rdquery=SELECT+Name+FROM+KEYWORDS_PERFORMANCE_REPORT+DURING+20140101, > 20141231& > __fmt=CSV > > > But I still get the same error, and I can not find an article that > provides examples of what a complete inline string looks like. (there must > be one out there). > And while I have used, and continue to seek out any number of http clients > which help build URLs with headers, parameters, and body, I have not found > one which shows the resulting URL string 'inline'. > (a single, inline string is all I can send) > So, where one article mentions that a question mark comes before the > parameters (implying after the headers?), I have tried many variations of > the question mark in different positions, or completely absent, the bottom > line is, I cant figure out what this is supposed to "LOOK LIKE". > > Now, I don’t want anyone to do any work for me, I did the entire AOuth2 > part without asking for help, though it took almost a week, but I did it, > on my own. > But this part (sending a request for a pre-defined report in csv format), > has taken me almost twice that long. So I implore you, if you know what > this urlURL should look like, please, please link me to an artical, or, > consider replying with an example of what it should look like. > > I will continue on my own, but some help would be so very much > appreciated. if you give me an address, I will send you some home made rice > crispy treats. > > Very sincerely, > -Jim > > > > > On Monday, November 17, 2014 1:22:44 PM UTC-8, Josh Radcliff (AdWords API > Team) wrote: >> >> Hi Jim, >> >> Are you passing the *Authorization*, *developerToken*, and >> *clientCustomerId* headers as HTTP *headers* or as HTTP* parameters*? It >> looks like you're passing them as HTTP parameters, but they need to be >> passed as HTTP headers. >> >> Cheers, >> Josh, AdWords API Team >> >> On Monday, November 17, 2014 3:29:22 PM UTC-5, James Randell wrote: >>> >>> Thanks to anyone who can help! >>> >>> I am trying to run a report using the example from the adhoc report >>> docs, as described in Reporting Basics >>> <https://developers.google.com/adwords/api/docs/guides/reporting#http-request> >>> and The AdWords Query Language >>> <https://developers.google.com/adwords/api/docs/guides/awql#adhoc-reports> >>> . >>> >>> *WHAT I GET BACK: * >>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> >>> <reportDownloadError><ApiError><type> >>> ReportDownloadError.INVALID_PARAMETER</type><trigger>Missing client >>> information >>> </trigger><fieldPath></fieldPath></ApiError></reportDownloadError> >>> >>> >>> >>> *WHAT I SEND:* >>> (returns inserted for clarity) >>> >>> https://adwords.google.com/api/adwords/reportdownload/v201409? >>> Authorization=Bearer xxxxxxx& >>> developerToken=xxxxxxx& >>> clientCustomerId=xxx-xxx-xxx& >>> __rdquery=SELECT+Name+FROM+KEYWORDS_PERFORMANCE_REPORT+DURING+20140101, >>> 20141231& >>> __fmt=CSV >>> >>> I am sending this from a desktop app which only allows me to send a URL >>> and indicate its type (post, get, put, etc.) >>> The results I get are the same as pasting them into a browser (chrome) >>> >>> >>> Additional headers I have tried: all are returning the same response >>> >>> Content-Type=multipart/form-data >>> Content-Type=application/x-www-form-urlencoded >>> POST=/api/adwords/v201409 HTTP/1.1 >>> Host=adwords.google.com >>> >>> Thanks for any help anyone has to provide, it is very much appreciated. >>> Sincerely, >>> Jim >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a0ee5585-ecad-48ee-a26f-6028c9b03958%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
