Google Ads API Client Library for Java

  • The client library for Java is hosted on GitHub and distributed through Maven.

  • It simplifies credential management and creation of Google Ads API service clients.

  • The library requires Java 1.8 or newer.

  • Guides are available for getting started, authorization, building from source, configuration, logging, field masks, resource names, proxy configuration, and long-running operations.

The client library for Java is hosted on GitHub and distributed through Maven. It offers several features to help you use the API, including easier management of credentials and creation of Google Ads API service clients.

The library requires Java 1.8+.

Make your first API call

Video library: Getting started with the Java client library

To use the Google Ads API, you need to perform several steps to get access to the API and configure your Google Ads accounts. We recommend following the quick start guide, which will walk you through all the important steps including setting up your Google Ads accounts.

Basic usage

Refer to the basic usage guide to learn more about how to use the Java client library.

Authentication and authorization

The Java client library supports multiple approaches to authentication and authorization. Refer to the authentication and authorization guide to learn more.

Configuration and logging

The Java client library support multiple configuration and logging options.

The library can also be built from source. Refer to the build from source guide to learn more.

Utilities

The Java client library includes a few utility classes to improve the API usability. Refer to the following guides to learn more:

Fine tune your application

Refer to the advanced usage guide for recommendations on how to fine-tune your application.