Login OAuth Google - UserCredencials Question

22 views
Skip to first unread message

Stiven Ariza

unread,
Jan 10, 2019, 10:11:29 AM1/10/19
to AdWords API and Google Ads API Forum
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.

Teja Makani

unread,
Jan 10, 2019, 5:55:22 PM1/10/19
to AdWords API and Google Ads API Forum
Hello Stiven,

To get the refresh token you can use the AuthenticateInStandaloneApplication.java in case you are using standalone application type. For web application you can use 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 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
Reply all
Reply to author
Forward
0 new messages