Thanks to anyone for taking the time!

I am new to development so I searched and experimented before coming here 
to ask.

I need to create a single (html?) file, containing only the code required 
to execute an HTTP Post request for an ad hoc report, when the file is 
loaded (opened) in a browser (or maybe something like a Bookmarklet). The 
user will open the file in the browser, and they see the resulting csv. 
(this is a constriction of the environment, there is no work around) 

This is my POST. It works with HTTP Client Test Utilities (such as Postman 
or PAW).
POST /api/adwords/reportdownload/v201409?__rdquery=SELECT%20CampaignId%2C%
20ClickType%2C%20Impressions%20FROM%20CAMPAIGN_PERFORMANCE_REPORT%20DURING%
20THIS_MONTH&__fmt=CSV HTTP/1.1
Authorization: Bearer xxxxxxxxxxx
developerToken: xxxxxxxxxxx
clientCustomerId: xxxxxxxxxxx
Content-Type: application/octet-stream
Host: adwords.google.com
Connection: close 


I want to load this in a browser and return the csv. My research tells me 
it might work wrapped in plain html, might need to be part of a simple, 
inline javascript, or might require a 'form'.

I have tried dozens of gists, stackoverflow examples, etc, but I can't seem 
to find anyone doing exactly what I'm trying to do.

I don't know if its more complicated then I think, or less, but does 
someone have a detailed example with a post formated like the one I have 
above? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
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/bf368038-d74b-4a5c-953f-ad352399e79f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to