Getting Unauthorized error while oauth request

159 views
Skip to first unread message

enerjoy 010

unread,
Feb 24, 2022, 8:02:17 AM2/24/22
to Google Ads API and AdWords API Forum
the code is aas following:

'invalid_client: Unauthorized', '{\n  "error": "invalid_client",\n  "error_description": "Unauthorized"\n}'


My access is basic, and I have already confirmed that the credentials (i.e. client ID and client secret) are correct.  There is still something wrong.

Google Ads API Forum Advisor

unread,
Feb 25, 2022, 8:58:14 AM2/25/22
to 010en...@gmail.com, adwor...@googlegroups.com
Hi there,

Invalid client is a general Oauth issue that most probably is beyond the scope of this support channel. If you are using one of our client libraries you can check how a proper credential file is filled out by clicking on one of our libraries in the sidebar of our client libraries guide, then clicking on one of the Oauth 'flow' guides. If you are using REST Interface we have our Authorization and HTTP Headers guide for proper setup of credentials.

With that being said did you make certain there are no leading or trailing spaces or wrong style string identity marks in Client Id and Client secret in your settings? You can also look up popular self help websites with this error.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2WyiGZ:ref

Google Ads API Forum Advisor

unread,
Feb 25, 2022, 9:03:43 AM2/25/22
to adwor...@googlegroups.com, 010en...@gmail.com
Hi there,

You can also make certain to Enable the Google Ads API in your project.
Reply all
Reply to author
Forward
0 new messages