Google Ads API - Refresh token for Desktop app

143 views
Skip to first unread message

Jesús María Garrobo Vaca

unread,
Oct 17, 2022, 10:52:44 AM10/17/22
to Google Ads API and AdWords API Forum
Hi,
I've a desktop app to get the cost of my campaigns. This info is for my internal reports. But I've a problem with my refresh token, because the status of my desktop app is: test (prueba) and the token is valid only for 7 days. I have to renew the token all the weeks... I need a token valid for more time.

I read in this forum that you change the status to production this situation will change. But I have not change this status to production because the question icon say (pic attached): your app will be available for somebody that have a Google Account. This option isn't valid for me, because the info that I want to get is only for me. I don't want share this info. For this I chose a desktop app.

If I change the status to production this app is not public if it is a desktop app?
Could you help me? 

Thanks

apigoogle.png

Google Ads API Forum Advisor

unread,
Oct 17, 2022, 2:57:28 PM10/17/22
to j.ga...@v3click.com, adwor...@googlegroups.com
Hi Jesús,

Thank you for raising this concern to the Google Ads API support team.

To avoid the refresh token expiring in 7 days please go to the Google API Console and navigate to the OAuth consent screen and then change the publishing status to “In production”. For more information you can check this document.

For this question "If I change the status to production this app is not public if it is a desktop app?" that you mentioned. If your application is going to be installed on a device or computer (such as a system running Android, iOS, Universal Windows Platform, Chrome, or any desktop OS), you can use Google's OAuth 2.0 Mobile and desktop apps flow. You may refer to the link below:


In addition, you may choose app type to Desktop app for the following:

  • You're managing all of your Google Ads accounts using a single top level manager account.
  • You're a first-time user, or want to get started quickly with the simplest setup.
  • Your app will only authenticate Google users from one machine.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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