The java language's maven dependency version v13.0.0 has serious bugs

213 views
Skip to first unread message

xu leo

unread,
Jul 6, 2021, 8:00:17 AM7/6/21
to AdWords API and Google Ads API Forum
<dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>google-ads</artifactId>
            <version>13.0.0</version>
</dependency>

The createDefault function of package com.google.ads.googleads.v8.services.stub has an error that cannot be found。
screenshot-20210706-195800.png


The source code of github is fine, but the code downloaded by maven has serious problems, which makes the entire SDK unusable.

xu leo

unread,
Jul 6, 2021, 11:54:38 PM7/6/21
to AdWords API and Google Ads API Forum
Exception in thread "main" java.lang.NoSuchMethodError: com.google.ads.googleads.v8.services.stub.GoogleAdsServiceStubSettings$Builder.setMtlsEndpoint(Ljava/lang/String;)Lcom/google/api/gax/rpc/StubSettings$Builder;
at com.google.ads.googleads.v8.services.stub.GoogleAdsServiceStubSettings$Builder.createDefault(GoogleAdsServiceStubSettings.java:337)
at com.google.ads.googleads.v8.services.stub.GoogleAdsServiceStubSettings$Builder.access$100(GoogleAdsServiceStubSettings.java:260)
at com.google.ads.googleads.v8.services.stub.GoogleAdsServiceStubSettings.newBuilder(GoogleAdsServiceStubSettings.java:238)
at com.google.ads.googleads.v8.services.GoogleAdsServiceSettings$Builder.createDefault(GoogleAdsServiceSettings.java:169)
at com.google.ads.googleads.v8.services.GoogleAdsServiceSettings$Builder.access$000(GoogleAdsServiceSettings.java:150)
at com.google.ads.googleads.v8.services.GoogleAdsServiceSettings.newBuilder(GoogleAdsServiceSettings.java:132)
at com.google.ads.googleads.lib.catalog.GeneratedCatalog$V8Client.createGoogleAdsServiceClient(GeneratedCatalog.java:6878)
at com.yeying.ad.campaign.util.GetCampaigns.runExample(GetCampaigns.java:73)
at com.yeying.ad.campaign.util.GetCampaigns.main(GetCampaigns.java:47)
screenshot-20210707-115028.png

Google Ads API Forum Advisor

unread,
Jul 7, 2021, 11:02:36 PM7/7/21
to xuliang...@gmail.com, adwor...@googlegroups.com

Hello there,

Thank you for reaching out to us.

Please note that this forum channel can only provide assistance to issues/concerns related to the AdWords API / Google Ads API.

Since you're using the Java client library, have you tried following the steps mentioned on this guide when setting up the client library? Also, we suggest that you reach out to the client library owners (via this link) as they're the appropriate team to provide more guidance related to this.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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