The invalid_grant error does not go away after account recovery

29 views
Skip to first unread message

Alytics Info

unread,
Aug 19, 2024, 4:35:56 AM8/19/24
to Google Ads API and AdWords API Forum
Hi, 
We encountered errors when requesting the ADS API
google.auth.exceptions.RefreshError: ('invalid_grant: Account has been deleted', {'error': 'invalid_grant', 'error_description': 'Account has been deleted'})
 
We recently deactivated our corporate email @alytics.ru on Google. But we have a project alytics.ru in Google Ads API (Organization ID = 816859374764)
After deactivation, our API requests stopped working. 
 
We have restored the account and subscription to the corporate email @alytics.ru. But requests continue to fall. From the text we see that Google also thinks that the account has been deleted. What do we need to do on our part? At the same time, we did not delete the MCC account (Alytics (905-488-7706)) - it is still active.

Google Ads API Forum Advisor

unread,
Aug 19, 2024, 8:32:35 AM8/19/24
to adwor...@googlegroups.com
Hi,

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

The reason for this error might be that the email account containing the client ID and client secret may have been deleted. As you informed us that you restored the account and subscription to the corporate email '@alytics.ru', this error should not occur. Could you please check that you can still access your client ID and client secret associated with the email address that you restored?

Also, to assist you further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end while you encounter this error. Additionally, send us the email id used for authentication

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, .Net, PHP, Python, Ruby 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.!5004Q02vF7BL:ref" (ADR-00263845)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages