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.
