OAuth2 refresh token expiration?

36 views
Skip to first unread message

Samir Sabri

unread,
Jan 4, 2021, 5:04:27 AM1/4/21
to AdWords API and Google Ads API Forum
Hello

As we have a setup for using Ads API via OAuth2, would the refresh token get expired after a while? do we need to maintain the credentials from time to time or is it active for ever?

Thanks in advance.  

Google Ads API Forum Advisor Prod

unread,
Jan 4, 2021, 3:15:32 PM1/4/21
to as3...@gmail.com, adwor...@googlegroups.com

Hi Samir,

Thank you for reaching out. As you are using the Google Ads API client library, the refresh token would be regenerated automatically when you issue a call and the system detects that the refresh token has expired.

Thanks and regards,
Xiaoming, Google Ads API Team

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AH6DO:ref

Zweitze

unread,
Jan 5, 2021, 8:30:41 AM1/5/21
to AdWords API and Google Ads API Forum
If a RefreshToken is not used for six months, it expires. See also the OAuth2 documentation.
And do take notice of the other reasons when a RefreshToken may become invalid.

Google Ads API Forum Advisor Prod

unread,
Jan 5, 2021, 4:09:30 PM1/5/21
to as3...@gmail.com, adwor...@googlegroups.com

Hi Samir,

The refresh token could be expired if one of these occurs. Also thanks Zweitze for the explanation.



Thanks and regards,
Xiaoming, Google Ads API Team
 

Reply all
Reply to author
Forward
0 new messages