Hi,

I'm currently doing migration of AdWords api to GoogleAds api. Using the 
library below, I'm able to refresh the token with a single method.

*import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;*

// Create object
GoogleCredential.Builder credentialBuilder = new 
GoogleCredential.Builder().setJsonFactory(JSON_FACTORY).setTransport(HTTP_TRANSPORT).setClientSecrets("CLIENT_ID",
 
"CLIENT_sECRET");

// Refresh token using the method
credential.refreshToken()

// Obtain Access Token and refresh token
credential.getAccessToken()
credential.getRefreshToken()


How can I implement the above code using the library below.

import com.google.api.client.auth.oauth2.Credential;
import com.google.api.ads.common.lib.auth.GoogleClientSecretsBuilder;



Thanks,
Jessie

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/3fe6ed4d-ad11-4e10-8d17-30fc977234f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Get refresh token 'Jessie' via AdWords API and Google Ads API Forum

Reply via email to