Hello Guys,
credential = new OfflineCredentials.Builder()
.forApi(OfflineCredentials.Api.AdWords)
.withClientSecrets(clientId, clientSecret)
.withRefreshToken(refreshToken)
.build()
.generateCredential();
session = new AdWordsSession.Builder()
.withDeveloperToken(developerToken)
// ...
.withOAuth2Credential(credential)
.build();
Please note we are using "clientId, clientSecret & refreshToken" way to connect to the application.
Right now we are looking to migrate to Google Ads API. I went through all the sample code but I am not able to find out what is the alternate way to migrate to the new API.
But it not using the authentication with "clientId, clientSecret & refreshToken" process.
Could someone please guide what is the best way to perform the authentication with the new client library.
Thanks,
Bikram.