I'm getting this error when i use https get request in
node.js: AuthenticationError.OAUTH_TOKEN_INVALID.
can someone help me understand why?
var post_options = {
hostname: "adwords.google.com",
port: 443,
path: '/api/adwords/reportdownload/v201309',
method: 'POST',
headers: headers
};
headers contains:
Content-Type: 'application/x-www-form-urlencoded',
Content-Length: body.length
Authorization: 'Bearer' +myAccessToken (i got the access token in the
playground)
developerToken: myDevToken
clientCustomerId: myClientCustomerId (of my acc test account)
returnMoneyInMicros:true
when body
=
__rdquery=SELECT%20Clicks%20FROM%20CAMPAIGN_PERFORMANCE_REPORT%20DURING%2020131010%2C20131012&__fmt=CSV
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.