Looking for google ads api refresh token regenrate

172 views
Skip to first unread message

tkraja mdu

unread,
Mar 4, 2024, 9:04:29 AM3/4/24
to Google Ads API and AdWords API Forum
Hi,

Last few days google ads api return response as 

{ "error": "invalid_grant", "error_description": "Token has been expired or revoked." }

So, I need how to regenerate the refresh token and I tried all cases it return 'ACCESS TOKEN' only

Please explain how to regenerate the refresh token.

Google Ads API Forum Advisor

unread,
Mar 4, 2024, 9:12:59 AM3/4/24
to tkraj...@gmail.com, adwor...@googlegroups.com
Hi, 

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

After reviewing your concern, I understand that you encountered an invalid_grant error. According to the Google Ads API documentation, Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.
You can follow the following steps to avoid the refresh token expiring in 7 days:
  • Go to the Google API Console and navigate to the OAuth consent screen
  • Change the publishing status to “In production”
Also, check this Generate tokens documentation to know how to regenerate the refresh token. If you still have any queries/concerns related to this, you can get back to us.


 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzdmC:ref"

Thanks,
 
Google Logo Google Ads API Team


tkraja mdu

unread,
Mar 6, 2024, 3:31:29 AM3/6/24
to Google Ads API and AdWords API Forum
Hi,

 oauth.png

In my app publishing status as 'In production' but still getting  { "error": "invalid_grant", "error_description": "Token has been expired or revoked." } response from api.

Please explain how to fix


Google Ads API Forum Advisor

unread,
Mar 6, 2024, 12:49:48 PM3/6/24
to tkraj...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

By reviewing your query, I understand that you are facing the "Token has been expired or revoked" error even after app publishing status as 'In production'. Since refresh token related issues are handled by the GCP Product support team. I would recommend you to reach out to the GCP Product support team for further assistance. Please note that our team can only assist with the technical queries or concerns related to the Google Ads API.

mur...@aroxo.com

unread,
Mar 7, 2024, 2:30:03 AM3/7/24
to Google Ads API and AdWords API Forum
Hi,

But Raja's query is, we are using our own App for Ads API connection and its working well for other clients. Got this error to only 2 clients account.

Shall I send that two Ads account id separately to look up something from your side?

Reply all
Reply to author
Forward
0 new messages