Unable to connect to google ads account using oauth credentials

93 views
Skip to first unread message

Tejanth Atyam

unread,
Aug 22, 2023, 11:05:58 AM8/22/23
to Google Ads API and AdWords API Forum
Hello, i am trying to connect to google ads account using oauth credentials.getting below error. could some one please look into it?


google.auth.exceptions.RefreshError: ('unauthorized_client: Unauthorized', {'error': 'unauthorized_client', 'error_description': 'Unauthorized'})

As of my understanding , we see this error if we don't provide required credentials properly but  I have properly given all my credentials.

Google Ads API Forum Advisor

unread,
Aug 23, 2023, 10:01:42 AM8/23/23
to tejant...@thecollective.energy, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

You may refer to the Authorization guide (https://developers.google.com/google-ads/api/docs/oauth/overview) for more information on authorization in Google Ads API.

If the issue persists after referring to the guide, can you provide us with the complete API logs (request and response with request-id and request header) generated on your end when you encountered the error? This is so we can check on our end as well and provide more appropriate guidance accordingly.

For the client libraries, logging can be enabled by navigating to the Client libraries > Your client library (ex Java) > Logging documentation, which you can access from this link (https://developers.google.com/google-ads/api/docs/client-libs). 

You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference links included in this email:

 
This message is in relation to case "ref:_00D1U1174p._5004Q2o7Lhx:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages