Refresh token for google adwords getting expire after 7 days

1,823 views
Skip to first unread message

raj maharajwala

unread,
May 7, 2021, 1:55:08 AM5/7/21
to AdWords API and Google Ads API Forum
I am using the platform Oauth Playground to generate Access token and Refresh token for purpose of using it in LSA API(google Local Service Ads API).

Where I am using Refresh token to generate new access token as it is used for connecting with API service Which is successfully done, But the Refresh Token is getting expire after 7 days. I am trying to automate the code so If it is possible to extend Refresh token expiration.

https://stackoverflow.com/q/66915623/15536750


pls help!!

Thanks in advance

AdWords API and Google Ads API Forum

unread,
Jun 4, 2021, 2:36:26 AM6/4/21
to AdWords API and Google Ads API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/QTBw03aTjLs/m/ZvQwE4cEBQAJ) from the forum as it wasn't routed to our support queue. 

Thanks,

Peter Laurence Napa Oliquino 
Google Ads API Team

Google Ads API Forum Advisor

unread,
Jun 7, 2021, 3:27:09 PM6/7/21
to adwor...@googlegroups.com

Hi,

Thank you for reaching out. There was a system issue on our end so we were unable to respond to you earlier. Here are some common causes for the refresh token expiration. It seems that you were issued a refresh token expiring in 7 days as you configured the OAuth consent screen section of the Cloud Platform project with an external user type and a publishing status of "Testing". You could change the publishing status to production to avoid this issue. 

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I0Ap4:ref

ma...@danzrust.cz

unread,
Dec 12, 2022, 5:38:52 PM12/12/22
to Google Ads API and AdWords API Forum
My situation is even worse. My connection stops working after 24 hours - trying to download data from Local Services Ads API (https://services.google.com/fh/files/helpcenter/lsa_api_dev_guide.pdf). My OAuth Screen is In Production and user type is set to External.

Any ideas what I am doing wrong?

This is my connection configuration (It's set up via Make which supports standard OAuth2 flows). You can disregard the error message at the top - it's not related to the expiration:
 LSAs Connection.PNG

DZ

Google Ads API Forum Advisor

unread,
Dec 13, 2022, 1:18:05 AM12/13/22
to ma...@danzrust.cz, adwor...@googlegroups.com
Hi,

Thank you for getting back to us. I hope that you are doing well today.

Moving forward to your concern, please note that we, from Google Ads API support team only support Google Ads API related concerns. upon checking on the pdf file that you provided, we can see that this is regarding the Local Services API. Please note that this product is out of our scope of support. With that being said, what we can do is to advise you to reach out to the Local Services support team via this link.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I0Ap4:ref

Daniel Zrust

unread,
Dec 13, 2022, 3:09:22 AM12/13/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi Sherwin,
but the thing is that the scope being called is still /adwords. So I was thinking you could help too :)

DZ
--
S pozdravem/Best Regards

Daniel Zrůst



Reply all
Reply to author
Forward
0 new messages