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

Google Ads Celebrates 25 Years Reflecting on the Past and Future of Digital Marketing

Google Ads Celebrates 25 Years Reflecting on the Past and Future of Digital Marketing

Google
Google

Official Source

Official Source

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

Official Source
AI Max Sources Column Now Shows Traffic Origins in Search Term Report

AI Max Sources Column Now Shows Traffic Origins in Search Term Report

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 updates Demand Gen Drops with new bidding and AI video tools

Google updates Demand Gen Drops with new bidding and AI video tools

Google
Google

Official Source

Official Source

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

Official Source
AI marketing workflows made simple

AI marketing workflows made simple

Featured
Markifact
Markifact

Verified Sponsor

Verified Sponsor

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

Verified Sponsor
Google adds Overview and Analytics Betas to Creator Partnership Hub

Google adds Overview and Analytics Betas to Creator Partnership Hub

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 API v22 Released with New Features

Google Ads API v22 Released with New Features

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 launches Investment Strategy tab to optimize budget allocation

Google Ads launches Investment Strategy tab to optimize budget allocation

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 PMax Now Supports 9 by 16 Vertical Image Ads with New Specs

Google Ads PMax Now Supports 9 by 16 Vertical Image Ads with New Specs

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

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