GoogleAdsServiceClient not working (Java)

21 views
Skip to first unread message

Amber Xie

unread,
Jun 25, 2020, 12:09:57 AM6/25/20
to AdWords API and Google Ads API Forum
Hi,

I'm trying to create a Java servlet (with Maven framework). I've been looking at the GetCampaigns starter code, but I keep getting an error at the line

GoogleAdsServiceClient googleAdsServiceClient = googleAdsClient.getLatestVersion().createGoogleAdsServiceClient();

The error message is as such: 
CAUSED BY:
java.lang.reflect.UndeclaredThrowableException

CAUSED BY:
java.lang.reflect.InvocationTargetException

CAUSED BY:
java.lang.NoSuchMethodError: 'com.google.protobuf.Parser com.google.protobuf.MessageLite.getParserForType()'

Is it because I don't have protobuf as a dependency in my pom.xml file? I'm not sure what the error is.

Thanks,

Google Ads API Forum Advisor Prod

unread,
Jun 25, 2020, 10:19:26 AM6/25/20
to adwor...@googlegroups.com
Hi Amber,

Issues such as these are better suited for the client library owners. You can contact them by creating an issue on this page.

Regards,
Anthony
Google Ads API Team 

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