Google Refresh Token Life Time

117 views
Skip to first unread message

lin shaohui

unread,
Jul 19, 2023, 12:31:36 AM7/19/23
to Google Ads API and AdWords API Forum
Hello, we are advertisers using the VAC MAPIT function. At present, we have encountered a problem. When using the API to upload Appsflyer advertising conversion data to Google Ads, the API refresh token is only valid for a few days. As shown in the figure, can we solve the problem by change the publishing status to production
20230719-123044.jpeg

Google Ads API Forum Advisor

unread,
Jul 19, 2023, 3:28:42 AM7/19/23
to linsh...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

I can see that you've already raised this same concern in another thread with the subject Google ads api Refresh Token Life Time. We have already replied to the other thread. For better tracking of the issue, kindly continue discussion only in a single thread instead.

To reiterate what was mentioned on that thread, kindly note that 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 handle this, you may indeed go to the Google API Console and navigate to the OAuth consent screen. Then change the publishing status to In production following these instructions to avoid the refresh token expiring in 7 days. You may also see these Unverified apps (https://support.google.com/cloud/answer/7454865) for prevention tips.

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

Thanks,
 
Google Logo Google Ads API Team


lin shaohui

unread,
Jul 19, 2023, 4:31:13 AM7/19/23
to Google Ads API and AdWords API Forum
Thank you

lin shaohui

unread,
Jul 19, 2023, 11:06:46 PM7/19/23
to Google Ads API and AdWords API Forum
Hello, how long is the validity period of this token when we change the status to in production?

在2023年7月19日星期三 UTC+8 15:28:42<Google Ads API Forum Advisor> 写道:

Google Ads API Forum Advisor

unread,
Jul 20, 2023, 2:00:36 AM7/20/23
to linsh...@gmail.com, adwor...@googlegroups.com

Hi lin,

Thank you for the reply.

Kindly note that even when changing the publishing status to In production will avoid the refresh token expiring in 7 days, there's still a reason for the refresh token to get expired. You may refer to this Google Identity Platform OAuth documentation (https://developers.google.com/identity/protocols/oauth2#expiration) to see the reasons why the refresh token might stop working even though this is already in production.
 

Reply all
Reply to author
Forward
0 new messages