OAUTH_TOKEN_INVALID

66 views
Skip to first unread message

Elena Epshtein

unread,
Sep 6, 2018, 4:44:11 PM9/6/18
to AdWords API and Google Ads API Forum
Hello!

I am facing following bug
suds.WebFault: Server raised fault: '[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']'
in my python code

Could you please let me know what could be a reason for that?
And how can I fix this?

Thank you!

Elena

Dannison Yao (AdWords API Team)

unread,
Sep 7, 2018, 1:49:05 AM9/7/18
to AdWords API and Google Ads API Forum
Hi Elena,

The OAUTH_TOKEN_INVALID error means the OAuth access token in the header is not valid. Make sure you are using the correct token associated for your account. Also, I would recommend that you use the refresh token generated from an email address which belongs to your manager account so that you will have access to all client accounts under it.

If you have confirmed on your end that you are using the correct OAuth2 credentials in making a request to your client account, and still, this error persists, then kindly provide your complete SOAP request and response logs as well as the email address of your API user via Reply privately to author so I can further investigate.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages