Google Ad Manager API Description: The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API.
To ensure that your project uses compatible versions of the libraries
and their component artifacts, import com.google.cloud:libraries-bom and use
the BOM to specify dependency versions. Be sure to remove any versions that you
set previously. For more information about
BOMs, see Google Cloud Platform Libraries BOM.
Maven
Import the BOM in the dependencyManagement section of your pom.xml file.
Include specific artifacts you depend on in the dependencies section, but don't
specify the artifacts' versions in the dependencies section.
The example below demonstrates how you would import the BOM and include the ad-manager artifact.
BOMs are supported by default in Gradle 5.x or later. Add a platform
dependency on com.google.cloud:libraries-bom and remove the version from the
dependency declarations in the artifact's build.gradle file.
The example below demonstrates how you would import the BOM and include the ad-manager artifact.
The platform and enforcedPlatform keywords supply dependency versions
declared in a BOM. The enforcedPlatform keyword enforces the dependency
versions declared in the BOM and thus overrides what you specified.
For more details of the platform and enforcedPlatform keywords Gradle 5.x or higher, see
Gradle: Importing Maven BOMs.
If you're using Gradle 4.6 or later, add
enableFeaturePreview('IMPROVED_POM_SUPPORT') to your settings.gradle file. For details, see
Gradle 4.6 Release Notes: BOM import.
Versions of Gradle earlier than 4.6 don't support BOMs.
SBT
SBT doesn't support BOMs. You can find
recommended versions of libraries from a particular BOM version on the
dashboard
and set the versions manually.
To use the latest version of this library, add this to your dependencies:
When using a Cloud client library, it's important to distinguish between two types of versions:
Library Version: The version of the software package (the client library) that helps you interact with the Cloud service. These libraries are
released and updated frequently with bug fixes, improvements, and support for new service features and versions. The version selector at
the top of this page represents the client library version.
Version ID: The version of the Cloud service itself (e.g. Google Ad Manager API). New Version IDs are introduced infrequently, and often involve
changes to the core functionality and structure of the Cloud service itself. The packages in the lefthand navigation represent packages tied
to a specific Version ID of the Cloud service.
Managing Library Versions
We recommend using the com.google.cloud:libraries-bom installation method detailed above to streamline dependency management
across multiple Cloud Java client libraries. This ensures compatibility and simplifies updates.
Choosing the Right Version ID
Each Cloud Java client library may contain packages tied to specific Version IDs (e.g., v1, v2alpha). For new production applications, use
the latest stable Version ID. This is identified by the highest version number without a suffix (like "alpha" or "beta"). You can read more about
Cloud API versioning strategy here.
Important: Unstable Version ID releases (those with suffixes) are subject to breaking changes when upgrading. Use them only for testing or if you specifically need their experimental features.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe Google Ad Manager API allows for integration with Google Ad Manager, enabling users to read data and run reports.\u003c/p\u003e\n"],["\u003cp\u003eThe latest stable library version for new applications is \u003ccode\u003e0.19.0\u003c/code\u003e, specifically using the \u003ca href=\"https://cloud.google.com/java/docs/reference/ad-manager/0.19.0/com.google.ads.admanager.v1\"\u003ecom.google.ads.admanager.v1\u003c/a\u003e version ID.\u003c/p\u003e\n"],["\u003cp\u003eTo begin, users must install a JDK, create or select a Cloud Platform project, enable billing, enable the API, and set up authentication.\u003c/p\u003e\n"],["\u003cp\u003eFor dependency management, it is recommended to use \u003ccode\u003ecom.google.cloud:libraries-bom\u003c/code\u003e to ensure compatibility across multiple Cloud Java client libraries.\u003c/p\u003e\n"],["\u003cp\u003eUnstable version IDs (with suffixes like "alpha" or "beta") should be used cautiously, as they may undergo breaking changes and are primarily for testing or accessing experimental features.\u003c/p\u003e\n"]]],[],null,["Version latestkeyboard_arrow_down\n\n- [0.31.0 (latest)](/java/docs/reference/ad-manager/latest/overview)\n- [0.29.0](/java/docs/reference/ad-manager/0.29.0/overview)\n- [0.27.0](/java/docs/reference/ad-manager/0.27.0/overview)\n- [0.26.0](/java/docs/reference/ad-manager/0.26.0/overview)\n- [0.23.0](/java/docs/reference/ad-manager/0.23.0/overview)\n- [0.22.0](/java/docs/reference/ad-manager/0.22.0/overview)\n- [0.21.0](/java/docs/reference/ad-manager/0.21.0/overview)\n- [0.19.0](/java/docs/reference/ad-manager/0.19.0/overview)\n- [0.18.0](/java/docs/reference/ad-manager/0.18.0/overview)\n- [0.17.0](/java/docs/reference/ad-manager/0.17.0/overview)\n- [0.16.0](/java/docs/reference/ad-manager/0.16.0/overview)\n- [0.15.0](/java/docs/reference/ad-manager/0.15.0/overview)\n- [0.14.0](/java/docs/reference/ad-manager/0.14.0/overview)\n- [0.13.0](/java/docs/reference/ad-manager/0.13.0/overview)\n- [0.12.0](/java/docs/reference/ad-manager/0.12.0/overview)\n- [0.11.0](/java/docs/reference/ad-manager/0.11.0/overview)\n- [0.10.0](/java/docs/reference/ad-manager/0.10.0/overview)\n- [0.8.0](/java/docs/reference/ad-manager/0.8.0/overview)\n- [0.7.0](/java/docs/reference/ad-manager/0.7.0/overview)\n- [0.6.0](/java/docs/reference/ad-manager/0.6.0/overview)\n- [0.5.0](/java/docs/reference/ad-manager/0.5.0/overview)\n- [0.4.0](/java/docs/reference/ad-manager/0.4.0/overview)\n- [0.3.0](/java/docs/reference/ad-manager/0.3.0/overview)\n- [0.2.0](/java/docs/reference/ad-manager/0.2.0/overview)\n- [0.1.0](/java/docs/reference/ad-manager/0.1.0/overview) \n\nad-manager overview (0.31.0)\n============================\n\nKey Reference Links\n-------------------\n\n**Google Ad Manager API Description:** The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API.\n\nGetting Started\n---------------\n\nIn order to use this library, you first need to go through the following steps:\n\n- [Install a JDK (Java Development Kit)](https://cloud.google.com/java/docs/setup#install_a_jdk_java_development_kit)\n- [Select or create a Cloud Platform project](https://console.cloud.google.com/project)\n- [Enable billing for your project](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)\n- [Enable the API](https://console.cloud.google.com/apis/library/admanager.googleapis.com)\n- [Set up authentication](https://cloud.google.com/docs/authentication/client-libraries)\n\nUse the Google Ad Manager API for Java\n--------------------------------------\n\nTo ensure that your project uses compatible versions of the libraries\nand their component artifacts, import `com.google.cloud:libraries-bom` and use\nthe BOM to specify dependency versions. Be sure to remove any versions that you\nset previously. For more information about\nBOMs, see [Google Cloud Platform Libraries BOM](https://cloud.google.com/java/docs/bom).\n\n### Maven\n\nImport the BOM in the `dependencyManagement` section of your `pom.xml` file.\nInclude specific artifacts you depend on in the `dependencies` section, but don't\nspecify the artifacts' versions in the `dependencies` section.\n\nThe example below demonstrates how you would import the BOM and include the `ad-manager` artifact. \n\n```xml\n\u003cdependencyManagement\u003e\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003elibraries-bom\u003c/artifactId\u003e\n \u003cversion\u003e26.66.0\u003c/version\u003e\n \u003ctype\u003epom\u003c/type\u003e\n \u003cscope\u003eimport\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n\u003c/dependencyManagement\u003e\n\n\u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003ead-manager\u003c/artifactId\u003e\n \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n### Gradle\n\nBOMs are supported by default in Gradle 5.x or later. Add a `platform`\ndependency on `com.google.cloud:libraries-bom` and remove the version from the\ndependency declarations in the artifact's `build.gradle` file.\n\nThe example below demonstrates how you would import the BOM and include the `ad-manager` artifact. \n\n```groovy\nimplementation(platform(\"com.google.cloud:libraries-bom:26.66.0\"))\nimplementation(\"com.google.api-ads:ad-manager\")\n```\n\nThe `platform` and `enforcedPlatform` keywords supply dependency versions\ndeclared in a BOM. The `enforcedPlatform` keyword enforces the dependency\nversions declared in the BOM and thus overrides what you specified.\n\nFor more details of the `platform` and `enforcedPlatform` keywords Gradle 5.x or higher, see\n[Gradle: Importing Maven BOMs](https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import).\n\nIf you're using Gradle 4.6 or later, add\n`enableFeaturePreview('IMPROVED_POM_SUPPORT')` to your `settings.gradle` file. For details, see\n[Gradle 4.6 Release Notes: BOM import](https://docs.gradle.org/4.6/release-notes.html#bom-import).\nVersions of Gradle earlier than 4.6 don't support BOMs.\n\n\n### SBT\n\nSBT [doesn't support BOMs](https://github.com/sbt/sbt/issues/4531). You can find\nrecommended versions of libraries from a particular BOM version on the\n[dashboard](https://storage.googleapis.com/cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/index.html)\nand set the versions manually.\nTo use the latest version of this library, add this to your dependencies: \n\n```scala\nlibraryDependencies += \"com.google.cloud\" % \"ad-manager\" % \"0.31.0\"\n```\n\nWhich version ID should I get started with?\n-------------------------------------------\n\nFor this library, we recommend using [com.google.ads.admanager.v1](https://cloud.google.com/java/docs/reference/ad-manager/0.31.0/com.google.ads.admanager.v1) for new applications.\n\n### Understanding Version ID and Library Versions\n\nWhen using a Cloud client library, it's important to distinguish between two types of versions:\n\n- **Library Version**: The version of the software package (the client library) that helps you interact with the Cloud service. These libraries are released and updated frequently with bug fixes, improvements, and support for new service features and versions. The version selector at the top of this page represents the client library version.\n- **Version ID**: The version of the Cloud service itself (e.g. Google Ad Manager API). New Version IDs are introduced infrequently, and often involve changes to the core functionality and structure of the Cloud service itself. The packages in the lefthand navigation represent packages tied to a specific Version ID of the Cloud service.\n\n### Managing Library Versions\n\nWe recommend using the `com.google.cloud:libraries-bom` installation method detailed above to streamline dependency management\nacross multiple Cloud Java client libraries. This ensures compatibility and simplifies updates.\n\n### Choosing the Right Version ID\n\nEach Cloud Java client library may contain packages tied to specific Version IDs (e.g., `v1`, `v2alpha`). For new production applications, use\nthe latest stable Version ID. This is identified by the highest version number **without** a suffix (like \"alpha\" or \"beta\"). You can read more about\n[Cloud API versioning strategy here](https://cloud.google.com/apis/design/versioning).\n\n**Important** : Unstable Version ID releases (those *with* suffixes) are subject to breaking changes when upgrading. Use them only for testing or if you specifically need their experimental features."]]