Client Java Library

6 views
Skip to first unread message

Cong Danh Ho

unread,
Dec 8, 2017, 5:56:52 AM12/8/17
to AdWords API Forum
Hi,

I'm using the Java library to make the call. This lib needs some info as : refreshToken, clientId, clientSecret, clientCustomerId, developerToken see  https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/resources/ads.properties

If I make the multi threads calls to Adwords APIs with the same configuration above.  Will the call be safe? Can I get all reports I need? 


Thanks

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 8, 2017, 1:09:49 PM12/8/17
to AdWords API Forum
Hi, 

Looks like you are getting started with the AdWords API. Have you taken a look at our sign up guide and make you first API call guides? If not, please go ahead and take a look. 
  1. The client id and client secret needs to be created from the Google developers console during the oAuth setup. 
  2. The refresh token will be have to be generated with the client credentials given above which is described in the oAuth setup guide too.
  3. Client customer Id is the id of your AdWords accounts against which you will be making the API calls.
  4. Developer token will have to be generated from your production MCC account by following the steps listed here
Regarding your question about thread safety, classes defined in the new java library, like most classes in Java, are not threadsafe. Also, the AdWords ReportDownloader is lightweight but not threadsafe. Please check this guide for additional reference on thread safety in Java library. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages