Hi,
AdWords API doesn't support OAuth2, it does OAuth1.0a instead. See
http://adwordsapi.blogspot.in/2011/10/adwords-api-now-fully-supports-oauth.html
for
details. Other than that, calling AdWords API with OAuth would be exactly
like how you would use OAuth elsewhere - include the OAuth headers in the
Authorization HTTP header, and do not mention authToken SOAP header. For
instance, you could make a raw AdWords API call at
http://googlecodesamples.com/oauth_playground/ if you were to send a POST
message to the AdWords API server with a valid SOAP xml in POST body, and a
SOAPAction: in HTTP header.
Cheers,
Anash P. Oommen,
AdWords API Advisor.
On Monday, 12 March 2012 21:17:46 UTC+5:30, H wrote:
I'm trying to get to grips with Adwords API with OAuth2 authorisation.
I can authorise an account to get an authorisation code. I can exchange
this code for an OAuth2 access_token/refresh_token. But what next ...?
The SOAP request headers require authToken, developerToken, and userAgent
(with clientCustomerId being optional). Can anyone point me towards
documentation that goes from access_token to authToken (I presume that's
the element I'm missing).
I'm working in Python, and have successfully used the Python Adwords
library, as well as using suds as the SOAP client to call the API directly,
using username/password to create the authToken, but I need to move to the
OAuth2 implementation for my app. I've searched on this group but haven't
found anything to help. I've looked at the OAuth2 playground but haven't
managed to get that to do any of the SOAP related calls (yet).
Any help or suggestions would be most appreciated.
Cheers
H
On Monday, 12 March 2012 21:17:46 UTC+5:30, H wrote:
I'm trying to get to grips with Adwords API with OAuth2 authorisation.
I can authorise an account to get an authorisation code. I can exchange
this code for an OAuth2 access_token/refresh_token. But what next ...?
The SOAP request headers require authToken, developerToken, and userAgent
(with clientCustomerId being optional). Can anyone point me towards
documentation that goes from access_token to authToken (I presume that's
the element I'm missing).
I'm working in Python, and have successfully used the Python Adwords
library, as well as using suds as the SOAP client to call the API directly,
using username/password to create the authToken, but I need to move to the
OAuth2 implementation for my app. I've searched on this group but haven't
found anything to help. I've looked at the OAuth2 playground but haven't
managed to get that to do any of the SOAP related calls (yet).
Any help or suggestions would be most appreciated.
Cheers
H
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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