Java の Google Ads API クライアント ライブラリ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Java 用クライアント ライブラリは GitHub でホストされ、Maven を通じて配布されます。このライブラリには、認証情報の管理の簡素化や Google Ads API サービス クライアントの作成など、API の使用に役立つ機能がいくつか用意されています。
このライブラリには Java 1.8 以降が必要です。
video_library
動画ライブラリ: Java クライアント ライブラリのスタートガイド
ガイド
- スタートガイド
- ライブラリのセットアップ手順。
- 承認
さまざまな認証フローを使用してライブラリの OAuth2 認証情報を構成する手順。
- OAuth デスクトップ アプリケーション フロー
- デスクトップ アプリの OAuth2 更新トークンを取得する方法。
- OAuth ウェブ アプリケーションのフロー
- ウェブアプリの OAuth2 更新トークンを取得する方法。
- OAuth サービス アカウントのフロー
- サービス アカウント認証情報で OAuth2 を使用する方法。
- ソースからビルドする
ソースからクライアント ライブラリをビルドする方法。
- 構成ファイルの形式
Java プロパティを指定する方法。
- ロギング
ロギングを設定する方法。
- フィールド マスク
更新オペレーションでフィールド マスクを使用する方法。
- リソース名
API でのリソース名の形式と使用方法。
- プロキシ構成
HTTP(S) プロキシを構成します。
- 長時間実行オペレーション
長時間実行オペレーションを実行します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-26 UTC。
[null,null,["最終更新日 2025-08-26 UTC。"],[[["\u003cp\u003eThe Google Ads API client library for Java is open-source, available on GitHub, and distributed via Maven for easy integration into your projects.\u003c/p\u003e\n"],["\u003cp\u003eIt simplifies interactions with the Google Ads API, offering features like credential management and service client creation, while requiring Java 1.8+ for compatibility.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive guides and documentation are available to assist with setup, authorization using various OAuth flows, building from source, and other library functionalities.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage resources for advanced usage including configuration files, logging, field masks, resource names, proxy settings, and managing long-running operations.\u003c/p\u003e\n"],["\u003cp\u003eA dedicated video library provides a visual guide to get started with the Java client library and its core features.\u003c/p\u003e\n"]]],[],null,["# Google Ads API Client Library for Java\n\nThe client library for Java is [hosted on\nGitHub](https://github.com/googleads/google-ads-java) and\n[distributed](//search.maven.org/artifact/com.google.api-ads/google-ads)\nthrough [Maven](//maven.apache.org/). It offers several features to help you use\nthe API, including easier management of credentials and creation of Google Ads API\nservice clients.\n\nThe library requires Java 1.8+.\n\n\nvideo_library\n[Video library: Getting started with the Java client library](https://www.youtube.com/playlist?list=PLKByxjzUC-N9gWKMqpi5S0WIVc4o_Ukdj)\n\nGuides\n------\n\n[Getting started](/google-ads/api/docs/client-libs/java/getting-started)\n: Setup instructions for the library.\n\nAuthorization\n\n: Instructions on configuring OAuth2 credentials for the library using\n different authorization flows.\n\n [OAuth desktop application flow](/google-ads/api/docs/client-libs/java/oauth-desktop)\n : How to get OAuth2 refresh tokens for desktop apps.\n\n [OAuth web application flow](/google-ads/api/docs/client-libs/java/oauth-web)\n : How to get OAuth2 refresh tokens for web apps.\n\n [OAuth service account flow](/google-ads/api/docs/client-libs/java/oauth-service)\n : How to use OAuth2 with service account credentials.\n\n[Build from source](/google-ads/api/docs/client-libs/java/build-from-source)\n\n: How to build the client library from source.\n\n[Configuration file format](/google-ads/api/docs/client-libs/java/config-file)\n\n: How to specify Java properties.\n\n[Logging](/google-ads/api/docs/client-libs/java/logging)\n\n: How to set up logging.\n\n[Field masks](/google-ads/api/docs/client-libs/java/field-masks)\n\n: How to use field masks in update operations.\n\n[Resource names](/google-ads/api/docs/client-libs/java/resource-names)\n\n: Form and usage of resource names in the API.\n\n[Proxy configuration](/google-ads/api/docs/client-libs/java/proxy)\n\n: Configure a HTTP(S) proxy.\n\n[Long-running operations](/google-ads/api/docs/client-libs/java/lro)\n\n: Run long-running operations."]]