Getting invalid Auth Token error - [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']

21 views
Skip to first unread message

Kindle Guru

unread,
Aug 26, 2020, 10:58:31 AM8/26/20
to AdWords API and Google Ads API Forum
Hi,

We are trying to access the Google adwords API. We generated the refresh token and the YAML file has the below fields.

client_customer_id: xxx
user_agent: xx
# partial_failure: True
# validate_only: True
#############################################################################
# OAuth2 Configuration #
# Below you may provide credentials for either the installed application or #
# service account flows. Remove or comment the lines for the flow you're #
# not using. #
#############################################################################
# The following values configure the client for the installed application
# flow.
client_id: xxx
refresh_token: xxx

Read in a forum that the access token would be invalid resulting in this issue. But have checked the validity of the access token using the below url and it seems to be valid.


Please let us know if there is anything else that we are missing.

Google Ads API Forum Advisor Prod

unread,
Aug 26, 2020, 6:09:09 PM8/26/20
to adwor...@googlegroups.com
Hello,

The OAUTH_TOKEN_INVALID error indicates that your access token passed with the HTTP header was not correct. To ensure the access token is valid, can you generate a new refresh token with the help of this guide and retry your request? Also, please make sure that you are authenticating as the Manager account while making this call. If you are still facing an issue please share the email address authenticating the call along with the client customer id of your account via the Reply privately to author option so that I can take a closer look. If this option is not available to you, you can email these details to us directly at googleadsa...@google.com

Regards,
Google Logo
Danica
Google Ads API Team
 


ref:_00D1U1174p._5004Q23uqvq:ref
Reply all
Reply to author
Forward
0 new messages