Unable to connect to google ads account

32 views
Skip to first unread message

Sidhant Gaba

unread,
Apr 23, 2024, 7:09:18 AM4/23/24
to Google Ads API and AdWords API Forum
Hi, I am trying to connect to google ads account using oauth credentials but its giving this error - 
google.auth.exceptions.RefreshError: ('unauthorized_client: Unauthorized', {'error': 'unauthorized_client', 'error_description': 'Unauthorized'})

I have followed every step mentioned in the authorization guide (https://developers.google.com/google-ads/api/docs/oauth/overview) but still it isn't resolved - 

request - curl \

  --data "grant_type=refresh_token" \

  --data "client_id=271223269790-0bhptd0kiqehr12dbm817g99uir2gr56.apps.googleusercontent.com" \

  --data "client_secret=GGOCSPX-_4XMD3chB6Nf5ysuU4zY1UVotv41" \

  --data "refresh_token=1//0gHUcpgnaEGcTCgYIARAAGBASNwF-L9IrmuwAa4uF0_qA5F9kiYp95vhe0BYsWXrK11P7u-V4I1DjaRcC7QZhTwANEZLxRI0pevg" \

  https://www.googleapis.com/oauth2/v3/token

response - {

  "error": "invalid_client",

  "error_description": "Unauthorized"}

Google Ads API Forum Advisor

unread,
Apr 23, 2024, 11:31:28 AM4/23/24
to sidha...@ideaclan.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

I can see in the system that you have previously raised this concern on another thread with the subject 'Unable to connect to google ads account using oauth credentials', and it has already been responded to. To avoid multiple threads on the same issue, I would request you to revisit the earlier thread and continue the discussion on the same for further updates on the issue.

This message is in relation to case "ref:!00D1U01174p.!5004Q02tPHgu:ref" (ADR-00232270)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages