Error after upgrading to google-ads library v38.0.0 (v20): Could not initialize class CustomerServiceStubSettings$Builder

19 views
Skip to first unread message

Thanh Loan Ho

unread,
Jul 15, 2025, 5:13:16 AM7/15/25
to Google Ads API and AdWords API Forum
Dear Google Ads API Support Team,
I have upgraded the Google Ads API to v20, using the google-ads Java client library version 38.0.0. However, when I try to retrieve accessible customers with the following call:
googleAdsClient.getLatestVersion().createCustomerServiceClient()


I encounter this error:
Could not initialize class com.google.ads.googleads.v20.services.stub.CustomerServiceStubSettings$Builder

I confirmed that with the previous version v18 (using google-ads version 34.0.0), the same code runs without any issues.
Is there a known issue with the v20 library or a potential incompatibility that I should be aware of?

Thank you in advance for your support.

Best regards,
LoanHo

Google Ads API Forum Advisor

unread,
Jul 15, 2025, 9:17:59 AM7/15/25
to htl...@gmail.com, adwor...@googlegroups.com
Hi LoanHo,

Thank you for reaching out to the Google Ads API support team.

It appears that your issue is more on the implementation or integration of Java client libraries rather than anything specific to the Google Ads API itself. Note that our team can only be able to assist on technical issues and implementations of the Google Ads API.

With that said, I would recommend reaching out to the developer that maintains our client libraries for further assistance on your concern. You may do so via this link via the Issues tab.     

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-15 13:17:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01svgQL:ref" (ADR-00318943)



Reply all
Reply to author
Forward
0 new messages