Migration Of AdWords API To Google Ads API Guidance.

58 views
Skip to first unread message

Bikram Bhuyan

unread,
Mar 10, 2022, 10:46:01 PM3/10/22
to Google Ads API and AdWords API Forum
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. 


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.

Google Ads API Forum Advisor

unread,
Mar 11, 2022, 2:50:33 AM3/11/22
to bikram...@gmail.com, adwor...@googlegroups.com

Hi Bikram,

Thanks for reaching out to the Google Ads API Forum.

The credentials that were previously used with the AdWords API are equally applicable to the Google Ads API as mentioned in this Carryover concepts. You may refer to this guide which provides a high-level overview of the major steps to complete a migration of an existing AdWords API app to Google Ads API. Note that "clientId, clientSecret & refreshToken" from AdWords API needs to be set in your preferred client library of Google Ads API in the application properties file. To configure a Client Library for OAuth in the Google Ads API, please refer to this guide

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XnXyY:ref
Reply all
Reply to author
Forward
0 new messages