All updates

Google introduces google-ads-bom for Java client library

Share on LinkedIn

Google has released the google-ads-bom (Bill of Materials) for the Google Ads API Java client library, starting with version 40.0.0.

What it is

A BOM is a build-time tool that standardizes dependency versions across your project. By importing the google-ads-bom, developers automatically align with the exact dependency versions that the Google Ads client was built and tested against.

Why it matters

– Simplifies dependency management for Java projects using the Google Ads API
– Prevents version conflicts with widely used libraries like Guava, Protobuf, GAX, and gRPC
– Enhances stability and reliability of Google Ads API integrations

How to use it

– In Maven, import the BOM in <dependencyManagement> and omit the version from google-ads dependencies.
– In Gradle, use implementation platform(‘com.google.api-ads:google-ads-bom:40.0.0’) and declare google-ads without a version.
– For other libraries covered by the BOM (e.g., Guava), also declare them without specifying a version.

This update makes it easier to keep Java projects aligned with Google’s supported dependency set and avoid common integration issues.

The week in Google Ads, in one email.

Free. Read by 125K+ marketers every week.

Subscribe for free

Seen something new in your account?

Send me the screenshot