RE: Google Ads API - Refresh token for Desktop app

2022-10-17 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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:

https://support.google.com/cloud/answer/10311615?hl=en&ref_topic=3473162#zippy=%2Cin-production
https://support.google.com/cloud/answer/6158849#zippy=%2Cweb-applications%2Cnative-applications


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,

Jinky
Google Ads API Team
ref:_00D1U1174p._5004Q2faghF:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/BQH_k0RJWK7400CbNl6szJSR6shMrBMJ_TSw%40sfdc.net.


Google Ads API - Refresh token for Desktop app

2022-10-17 Thread Jesús María Garrobo Vaca
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

[image: apigoogle.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0b3439b4-a7b1-4d2f-8c64-969e241912edn%40googlegroups.com.