Hi Anurag,
Thanks for getting back to us.
For more details about the refresh token expiration, you may refer to this document from the Google Identity Platform OAuth. However, the access token has an expiration time (based on the expires_in value) after which the token is no longer valid. You can use the refresh token to refresh an expired access token. By default, our client libraries automatically refresh expired access tokens. Also, you may encounter an 'invalid_grant' error whenever the refresh token expires or is not valid in the Google Ads API. you may use the cURL below to check if your refresh token is valid or not:
curl \
--data "grant_type=refresh_token" \
--data "client_id=CLIENT_ID" \
--data "client_secret=CLIENT_SECRET" \
--data "refresh_token=REFRESH_TOKEN" \
https://www.googleapis.com/oauth2/v3/token
Let us know if you have any further questions.
Regards,
 |
| Yasar |
| Google Ads API Team |
|
|
| |

ref:_00D1U1174p._5004Q2Ypmvm:ref