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