suds.WebFault: Server raised fault: '[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']'

399 views
Skip to first unread message

jzw...@vaynermedia.com

unread,
Jun 16, 2016, 1:05:00 PM6/16/16
to AdWords API Forum
I'm using the googleads python library, and following instructions from the documentation carefully. I get the `suds.WebFault: Server raised fault: '[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']'` error message when I try to run the included get_campaigns.py script. I've tested the access code using https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=YOUR_ACCESS_CODE and got;

{
 "issued_to": "X",
 "audience": "X",
 "scope": "https://www.googleapis.com/auth/dfp",
 "expires_in": 3239,
 "access_type": "offline"
}

In fact, as I'm writing this, I notice the scope seems to be asking for 'dfp', instead of adwords, which is what I want. Would you happen to have any insight as to what I've done incorrectly?

Anthony Madrigal

unread,
Jun 16, 2016, 6:18:29 PM6/16/16
to AdWords API Forum
Hello,

You cannot use the same OAuth credentials from your DFP account as your AdWords account. In order to create OAuth credentials for AdWords API, please see this guide.

Please let me know if there are any other questions.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages