Setting account creds dynamically while using GoogleAdsClient

29 views
Skip to first unread message

Saurabh Suman

unread,
Mar 30, 2022, 7:24:36 AM3/30/22
to Google Ads API and AdWords API Forum
Hi Team,
  We are using Java client lib. As we can have multiple accounts having different  developer tokens,clientId,clientSecret,refresh token .Also we can not have configured them in single properties file simultaneously Can you please suggest an example on how to use below example to dynamically set the those tokens :

GoogleAdsClient.newBuilder().fromPropertiesFile().build();

Thanks
Saurabh

Google Ads API Forum Advisor

unread,
Mar 31, 2022, 3:06:54 AM3/31/22
to saurabhs...@gmail.com, adwor...@googlegroups.com

Hi Saurabh,

 

I'm Kevin from the Google Ads API Team.

 

If you want to dynamically configure your properties file for the Java client library, I suggest you reach out to the client library authors by posting in this link as they are better equipped to address client library concerns.

 

Regards,

Google Logo
Kevin Gil
Google Ads API Team
 


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