Hi,

I'm trying to create a Java servlet (with Maven framework). I've been 
looking at the GetCampaigns starter code 
<https://developers.google.com/google-ads/api/docs/samples/get-campaigns>, 
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,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cd31031e-6887-4da7-87dd-e35fe496368fn%40googlegroups.com.
  • GoogleAdsServiceClien... 'Amber Xie' via AdWords API and Google Ads API Forum

Reply via email to