Cant get session for a child account

24 views
Skip to first unread message

Krishna Kishore

unread,
Mar 12, 2019, 5:50:36 AM3/12/19
to AdWords API and Google Ads API Forum
I'm getting this weird error when trying to get session for a child level account. The error says
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkNotNull(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

I'm using "com.google.api-ads" % "ads-lib" % 4.1.0 and "com.google.api-ads" % "adwords-axis" % 4.1.0 as dependencies in scala. Please help.


Krishna Kishore

unread,
Mar 12, 2019, 6:05:22 AM3/12/19
to AdWords API and Google Ads API Forum
Full error
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkNotNull(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
at com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<init>(OfflineCredentials.java:89)
at com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<clinit>(OfflineCredentials.java:81) 

googleadsapi...@google.com

unread,
Mar 12, 2019, 3:25:32 PM3/12/19
to AdWords API and Google Ads API Forum
Hello Krishna,

You can find the client libraries supported for AdWords API here. You can try to update the dependencies mentioned here. The release 4.1.0 is deprecated, you can use the latest release version 4.4.0. Give it a try, if the problem still persists please share the code snippet you are trying for further investigation.

Regards,
Sai Teja, AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages