AuthenticationError.OAUTH_TOKEN_INVALID

34 views
Skip to first unread message

marvel tales

unread,
May 15, 2019, 5:43:03 PM5/15/19
to AdWords API and Google Ads API Forum

Hello,

I prepared googleads.yaml file filled all the required fields and I can initialiaze an adwords client without any problem but when I want to get campaigns in ads account I have this error.

I am using python.

AuthenticationError.OAUTH_TOKEN_INVALID

I will appreciate your help.

Thanks

googleadsapi...@google.com

unread,
May 16, 2019, 1:39:17 AM5/16/19
to AdWords API and Google Ads API Forum
Hi,

Thank you for reaching out. The AuthenticationError.OAUTH_TOKEN_INVALID occurs if the access token you used with the HTTP header is incorrect or expired. You may check this guide for more information about access token and refresh token. Could you confirm if you already generated a refresh token? If not, you may do so by following this guide. Once you get the refresh token, you can try to make the API call again. If the error persists, feel free to write back.

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1eed3d0b-c0bd-4a2b-b439-5cc5a3344058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages