How do I get the refresh token (which never expires)? Is this the refresh 
token yield by Fetch a refresh token 
<https://developers.google.com/google-ads/api/docs/get-started/make-first-call?hl=en#fetch_a_refresh_token>
?


On Thursday, January 18, 2024 at 1:18:19 AM UTC+2 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your concern, I understand that you want to generate a 
> refresh token automatically on the server. The below approach might address 
> your concern.
>
>    - I would recommend you use the OAuth2 desktop app or web app flow 
>    
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_an_application_type>.
>  
>    OAuth2 desktop app and web app flows do require an initial user 
> interaction 
>    for granting access to the account. 
>    - For the OAuth2 desktop app flow 
>    
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#desktop>,
>  
>    you can persist a refresh token (which never expires) to obtain a new 
>    access token whenever necessary. When using one of our client libraries 
>    <https://developers.google.com/google-ads/api/docs/oauth/client-library>, 
>    you can authorize your app by filling out a configuration file. 
>
> Also, please check out Choose a user type and publishing status 
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_a_user_type_and_publishing_status>
>  
> documentation; it will explain how to prevent the refresh token expiration 
> by publishing status to '*In Production*'.
>
> I hope this helps. Kindly get back to us if you have any queries related 
> to the Google Ads API. 
> This message is in relation to case "ref:!00D1U01174p.!5004Q02rXACE:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d57a7993-cfb3-442c-8377-006b92ffc601n%40googlegroups.com.

Reply via email to