Hello Stiven,

To get the refresh token you can use the 
AuthenticateInStandaloneApplication.java 
<https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/authentication/AuthenticateInStandaloneApplication.java>
 in 
case you are using standalone application type. For web application you can 
use AuthenticateInWebApplication.java 
<https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/authentication/AuthenticateInWebApplication.java>.
 
In both the cases you need to pass the Client ID and Client Secret to get 
the refresh token. You could also refer this guide 
<https://developers.google.com/google-ads/api/docs/first-call/refresh-token> to 
know more about OAuth2 Refresh token and Configuring the client. Please let 
me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

On Thursday, January 10, 2019 at 10:11:29 AM UTC-5, Stiven Ariza wrote:
>
> I am using Google Ads API in JAVA, How can I get refresh token to set in 
> a UserCredentials object when an user login with Google and the unique data 
> that I have is acces_token, id_token, login_hint?
>
> Regards.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ed3aebc2-4bcd-4626-a481-298f5e4f7330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Login OAuth Google ... Stiven Ariza
    • Re: Login OAut... 'Teja Makani' via AdWords API and Google Ads API Forum

Reply via email to