Google OAuth2 Refresh Token Life Time!

226 views
Skip to first unread message

Hamza Shah

unread,
Jun 23, 2023, 5:15:35 AM6/23/23
to Google Ads API and AdWords API Forum
I'm just asking that how long can Google OAuth2 Refresh Token live and can make request to get access token? is there any number of days?

Google Ads API Forum Advisor

unread,
Jun 23, 2023, 4:15:13 PM6/23/23
to hamzas...@gmail.com, adwor...@googlegroups.com

Hi Hamza,

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

With regard to your concern on how long can Google OAuth2 Refresh Token live, as per our documentation (https://developers.google.com/google-ads/api/docs/oauth/internals#access_token_expiration) an access token has an expiration time (based on the expires_in value) after which the token is no longer valid. For more details about the refresh token expiration, refer to the Google Identity Platform OAuth documentation (https://developers.google.com/identity/protocols/oauth2#expiration). Also, by default, our client libraries (https://developers.google.com/google-ads/api/docs/client-libs) automatically refresh expired access tokens.

This message is in relation to case "ref:_00D1U1174p._5004Q2mWm5Q:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages