Hello Guys,

We are currently using existing "AdWords API" client library for connecting 
to Google Adwords application and in the API we are using the way as 
mentioned 
in 
https://github.com/googleads/googleads-java-lib/blob/master/README.md#getting-started

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. 

The article I found which is similar to this is 
-> 
https://developers.google.com/google-ads/api/docs/samples/authenticate-in-desktop-application

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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f8724065-300b-496a-8080-31bb8e11f9abn%40googlegroups.com.

Reply via email to