Stay organized with collections
Save and categorize content based on your preferences.
We recommend using the client library through Maven. We also provide binary
distributions on our releases page and through the Maven central
repository
(see our quick start guide for details). However, you can build
the library yourself using the build process described below.
The client library is built with Gradle. Dependencies are downloaded from the
Maven Central repository.
Install Java development kit
JDK 1.8 or later is required to build the library. We'll assume that Java is
installed on your machine for the purposes of this guide.
Building with Gradle
We recommend using the included Gradle wrapper. See
gradle/wrapper/gradle-wrapper.properties
for the current version. You do not need a separate Gradle installation.
Build the library
Clone this project in the directory of your choice. The .git suffix in the
URL is optional.
Run the following command to build the snapshot version of the library
and examples project.
./gradlewbuild
Export the client library to a local Maven repository.
./gradlewpublishToMavenLocal
Use the client library in a local Maven repository
After a successful build and export, the artifacts for the client library are
available to Maven/Gradle from the local repository (typically
~/.m2/repository/com/google/api-ads/google-ads/). Add a dependency on the
SNAPSHOT version that was just built to any subsequent project build files. The
version is defined in
gradle.properties.
[[["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-01-28 UTC."],[[["The Google Ads client library is best used through Maven, with binary distributions also available."],["Building the library requires JDK 1.8 or later and is accomplished using the included Gradle wrapper."],["After building, the library can be exported to a local Maven repository for use in other projects."],["The library is built from the google-ads-java Github repository and can be used in Maven or Gradle projects."]]],[]]