Hi,
Thank you for reaching out to the Google Ads API team.
Moving forward, it appears that you've encountered the invalid_grant error. It means that the token has been expired or revoked. The common cause of this error is when a 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.
To resolve or avoid this error you need to do this, in your Google project you set the publishing status to "Testing" so the refresh token expires every 7 days and receives an “invalid_grant” error. Go to the Google API Console and navigate to the OAuth consent screen. Then change the publishing status to “In production”. But please note that there are different reasons why the refresh token is expiring and you can see it on this
document.
However, since the issue is more specific to refresh tokens, then I would suggest reaching out to the more equipped team for this concern via this
link.
Thanks,
 |
Nirmitabahen Gaurav |
Google Ads API Team |
|
|
|

ref:_00D1U1174p._5004Q2cEW4w:ref