Hello,

Unfortunately, storing a static file that you would post repeatedly is not 
going to work. The access token you use in the Authentication HTTP header 
is only good for a maximum of one hour before it expires.

Like Jason said, we're here to help you if you have API-specific issues, 
but I can't help you fulfill your entire use case from scratch. If you do 
run into API-specific questions about how to make specific kinds of 
requests, please don't hesitate to ask.

Regards,
Mike, AdWords API Team

On Monday, January 5, 2015 6:36:33 PM UTC-5, Ginger Fenway wrote:
>
> No one has responded to a prior post, and I am in such a desperate 
> dilemma that I humbly re-submit this request for a assistance.
> I am new to development but have tried working this out myself, using 
> creative examples found on StackOverflow and the other usual suspects.
>
>
> *I HAVE AN HTTP POST WHICH WORKS PROPERLY!*
>
>    - Tested on multiple HTTP Client Utilities (such as Rest Console, 
>    Postman, PAW, etc).
>    - Authentication issues have already been resolved, just need this 
>    POST to execute
>
>
> 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
>
>
>
>
> *WHAT I NEED HELP WITH:*
>
>    - I need this POST within a file which will reside on a local storage 
>    device on a desktop machine
>    - The file will contain the code required to execute the working HTTP 
>    Post Request (pasted above) when opened in a Browser.
>       - (again, authentication is not an issue now)
>    
>
> *USE CASE:*
>
>    - The user will open the file in the browser,
>    - the POST will execute when file is opened/loaded
>       - Post happens in the background, no user interaction
>    - User sees the returned csv in browser window. 
>    
>
> *CONSTRAINTS (My Blockers):*
>
>    - Must Run client side, can not live on an app server or rely on 
>    server scripting
>    - Must be Browser based for universal desktop deployment
>    - If scripting is required, it must rely only on standard resources 
>    present on a local desktop machine
>       - Which will be running current versions of desktop OS's (OSX and 
>       WIN)
>    
>
>
> *BEST POSSIBLE ANSWER:*
> (Will you be my hero?)
> A detailed example of code, with a POST request formated like the one I 
> have above
> Because I may have come so close, so many times, yet failed due to 
> obscure syntax errors, is it possible that...
>
>    - Someone could paste the complete code example, with comments telling 
>    me where to plug in my values?
>    - With no assumptions that I would know the 'obvious' tags or headers 
>    which might have to wrap around the code?
>    
>
> A great big 'Thank You' to anyone who might be able to help.
> -Gingy
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/35471336-c6d7-4bf6-9129-5c423604cd46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to