Client deleted & invalid token

112 views
Skip to first unread message

Greeshma Surasani

unread,
May 27, 2021, 9:45:29 AM5/27/21
to AdWords API and Google Ads API Forum
Hi, 

I need help with the following issues:

1) I generated refresh token but it did not work. 
2) So I created another client id and secret. and using this info I refreshed the token again(Previously I have generated the refresh token many times too). But it gave the same error as invalid token.
3) So I deleted the client id and secret and created new one. I refreshed the developer token too. Using this info I put the new refresh token too and updated yaml file .
4) Now when I run the api code , it gives me the following errorgoogle.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', {'error': 'deleted_client', 'error_description': 'The OAuth client was deleted.'})
5). After the error, I created a new client id and secret and generated a new refresh token but got the same error

Thank you in advance!

   

Google Ads API Forum Advisor Prod

unread,
May 27, 2021, 3:46:28 PM5/27/21
to adwor...@googlegroups.com

Hi Greeshma,

Thank you for reaching out. Please either restore or re-create the OAuth2 credentials. If the issue persists, give it a try to create a brand new project and create a new set of OAuht2 credentials.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HyItU:ref

Greeshma Surasani

unread,
Jun 1, 2021, 11:56:55 AM6/1/21
to AdWords API and Google Ads API Forum

Hi Xiaoming,

 

I’ve recreated the credentials, but the error persisted, so I created brand new project and created new set of creds but got the same error.

Is there any other way?

Thank you for your time!

 

Thanks,

Greeshma

Google Ads API Forum Advisor Prod

unread,
Jun 1, 2021, 11:31:41 PM6/1/21
to adwor...@googlegroups.com
Hi Greeshma,

I work with Xiaoming and allow me to assist you.

Could you confirm if the user/email address you are using to generate the OAuth2 credentials has access to the Google Ads account you are specifying (customer_id) in your API requests?

So our team can have a closer look, could you share your customer ID, the user/email address used, and also the complete request and response logs, with the request-id that was generated when the error(s) occurred?

If you are using the AdWords API, for the logs, you may provide the complete SOAP request and response, and requestId, instead.

You may send all the requested details via the Reply privately to author option. If this option is not available, you may share the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HyItU:ref
Reply all
Reply to author
Forward
0 new messages