Hi Wei,

The AuthenticationError.OAUTH_TOKEN_INVALID error that you encountered occurs 
when the access token passed with the HTTP header was not correct. To verify 
that your credentials are correct, could you try the CURL request provided 
below and see if you are able to generate the access tokens? If the credentials 
are correct, you should get an access token for the below request.

curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=your-refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token

If your credentials are incorrect and still facing an issues, could you 
generate a new refresh token with the help of this guide and retry your request?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UODbOt:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dz6tS000000000000000000000000000000000000000000000Q1WKKQ00ZPwWiaiTRI2dd1Y-d_BqFQ%40sfdc.net.

Reply via email to