Refresh Token Problem

32 views
Skip to first unread message

Eray Bakır

unread,
Apr 1, 2022, 4:41:24 AM4/1/22
to Google Ads API and AdWords API Forum
In my C# (Net 5) application, if the token has expired, I want to receive a refresh token from within the application. The customer id may be different in the requests, I want to use the current refresh token dynamically and send the requests with it. I would be very grateful if you could help with this.

Kind regards

Eray Bakır

unread,
Apr 1, 2022, 4:46:59 AM4/1/22
to Google Ads API and AdWords API Forum
Note: By Dynamic Refresh Token I mean I don't want to keep it in an App.config file. I want it to be included in SDK requests somehow.
1 Nisan 2022 Cuma tarihinde saat 11:41:24 UTC+3 itibarıyla Eray Bakır şunları yazdı:

Google Ads API Forum Advisor

unread,
Apr 1, 2022, 10:22:40 AM4/1/22
to crazy...@gmail.com, adwor...@googlegroups.com
Hi Eary,

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

It seems the error appears because refresh token expires, kindly check this document for more information on how refresh token expires. However, you can confirm if this is the current configuration of your Google Cloud Platform project. That being said, please go to the Google API Console and navigate to the OAuth consent screen and then change the publishing status to “In production” to avoid the refresh token expiring in 7 days.

If you have further questions about this, you can reach out to the Google Oauth team via this link as they are more equipped with this topic.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZIl1p:ref
Reply all
Reply to author
Forward
0 new messages