Unauthorised client error

61 views
Skip to first unread message

Adeboye Samuel

unread,
Feb 13, 2024, 12:13:35 PM2/13/24
to Google Ads API and AdWords API Forum
Hello, 

I was invited to a GCP account created by my client and he already granted me owner permission. I went ahead to set up the GMAIL API for mailing service. I was able to successfully generate the client secret and id. I went on to the playground and completed login using my own account and i generated refreshToken and accessToken, also, i added the clientId and clientSecret. However, i kept getting Unauthorised client as an error.

Kindly assist further. 

Google Ads API Forum Advisor

unread,
Feb 13, 2024, 2:22:48 PM2/13/24
to adeboyesam...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that you are encountering the "unauthorized_client" error, which occurs when there's an issue with your authorization process. Having said that, can you confirm if you have followed the "Configure a Client Library for OAuth in the Google Ads API" guide? Also, please provide us with the complete API logs (request and response logs with request-id and request header) generated at your end, and an uncropped UI screenshot of the Google Ads account where you are facing the issue for further investigation.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rz4d5:ref"

Thanks,
 
Google Logo Google Ads API Team


 

Reply all
Reply to author
Forward
0 new messages