Google Ads API client library for Java adds google-ads-bom in version 40.0.0 release

September 19, 2025 at 4:49:12 AM

TL;DR The google-ads-bom for the Google Ads API client library for Java is released in version 40.0.0, simplifying dependency management and enhancing integration stability. A BOM centralizes dependency version management, preventing conflicts with libraries like Guava and GAX. To use it, import the BOM in your build file and omit version specifications for the google-ads dependency. The BOM automatically manages versions for libraries like Guava, Protobuf, GAX, and gRPC.

Google Ads API client library for Java adds google-ads-bom in version 40.0.0 release

We are excited to announce the release of the google-ads-bom for the Google Ads API client library for Java, now available with v40.0.0 of the google-ads client library. This Bill of Materials (BOM) simplifies dependency management and enhances the stability of Google Ads API integrations.

What is a BOM?

A BOM is a build-time tool that provides a centralized "rulebook" for managing dependency versions. Importing the BOM ensures your project uses compatible dependency versions that the Google Ads client was built and tested against, helping to avoid conflicts with libraries like Guava and GAX.

How to incorporate the google-ads-bom into your code

To use the google-ads-bom, import it into the dependency management section of your build file (e.g., pom.xml for Maven or build.gradle for Gradle) and omit the version specification from the google-ads dependency.

Maven Example:

<dependencyManagement>
 <dependencies>
 <dependency>
 <groupId>com.google.api-ads</groupId>
 <artifactId>google-ads-bom</artifactId>
 <version>40.0.0</version>
 <type>pom</type>
 <scope>import</scope>
 </dependency>
 </dependencies>
</dependencyManagement>
<dependencies>
 <dependency>
 <groupId>com.google.api-ads</groupId>
 <artifactId>google-ads</artifactId>
 </dependency>
</dependencies>

Gradle Example:

// Import the Bill of Materials (BOM).
implementation platform('com.google.api-ads:google-ads-bom:40.0.0')
// Add the google-ads dependency, without a version.
implementation 'com.google.api-ads:google-ads'

Declaring dependencies covered by the google-ads-bom

The BOM manages versions for libraries like Guava, Protobuf, GAX, and gRPC. To avoid conflicts, do not specify a version when declaring these dependencies.

Maven Example:

<dependency>
 <groupId>com.google.guava</groupId>
 <artifactId>guava</artifactId>
</dependency>

Gradle Example:

implementation 'com.google.guava:guava' // NO VERSION SPECIFIED.

To retrieve a list of constrained dependencies that can be imported using the BOM without a declared version, use the listAllDependencyConstraints Gradle task. For more information on the google-ads-bom and configuring your Java client, refer to the getting started guide.

Have more questions on this topic? Ask our AI assistant for in-depth insights.

Read more from sources 👇

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Data Manager API v1.5 Released with User List Management and Audience Ingestion

Data Manager API v1.5 Released with User List Management and Audience Ingestion

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google updates Lookalike audiences in Demand Gen to AI suggestion model from March 2026

Google updates Lookalike audiences in Demand Gen to AI suggestion model from March 2026

Dario Zannoni
Dario Zannoni

Top Creator

Top Paid Media Creator

Dario Zannoni is a Top Paid Media Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Paid Media Creator
Meta Ads Audit Checklist

Meta Ads Audit Checklist

Featured
Markifact
Markifact

Verified Sponsor

Verified Sponsor

Markifact is a Verified Sponsor. Want to get featured here? Contact us.

Verified Sponsor
Google is testing out a new shopping ad format in AI Mode.

Google is testing out a new shopping ad format in AI Mode.

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google delays Google Ads API developer token approvals due to high demand

Google delays Google Ads API developer token approvals due to high demand

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Ads Shared Library adds default opt-in for using Google-owned images

Google Ads Shared Library adds default opt-in for using Google-owned images

Thomas Eccel
Thomas Eccel

Top Creator

Top Google Ads Creator

Thomas Eccel is a Top Google Ads Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Google Ads Creator
Google Ads launches Channel-Level Reporting for Performance Max campaigns

Google Ads launches Channel-Level Reporting for Performance Max campaigns

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Ads API v23 Released with New Features and Faster Updates

Google Ads API v23 Released with New Features and Faster Updates

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

Markifact logo

Markifact

Verified Tool

Verified Tool

Markifact is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Marketing Workflows Powered by AI

Featured
Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
Skai logo

Skai

AI-powered omnichannel marketing and optimization

Ad Management
Smartly.io logo

Smartly.io

Automate and optimize your ad campaigns effortlessly

Ad Management
Grasp logo

Grasp

Automated QA for flawless media buying campaigns

Ad Management
Zocket logo

Zocket

AI-powered marketing for optimized ad campaigns

Ad Creative
GoDataFeed logo

GoDataFeed

Optimize and manage product feeds across channels

Feed Management
Feedonomics logo

Feedonomics

Optimize and sync product data for more sales

Feed Management
Lunio logo

Lunio

Protect your ad spend from invalid traffic

Ad Management
Otis AI logo

Otis AI

AI-driven marketing for growing businesses

Ad Management

Get Featured Here

Showcase your tool in this list.

Contact Us