Thư viện ứng dụng API Google Ads cho Java
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thư viện ứng dụng cho Java được lưu trữ trên GitHub và phân phối thông qua Maven. Thư viện này cung cấp một số tính năng giúp bạn sử dụng API, bao gồm cả việc quản lý thông tin đăng nhập dễ dàng hơn và tạo các ứng dụng dịch vụ Google Ads API.
Thư viện này yêu cầu Java 1.8 trở lên.
video_library
Thư viện video: Bắt đầu sử dụng thư viện ứng dụng Java
Hướng dẫn
- Bắt đầu
- Hướng dẫn thiết lập thư viện.
- Ủy quyền
Hướng dẫn về cách định cấu hình thông tin đăng nhập OAuth2 cho thư viện bằng các quy trình uỷ quyền khác nhau.
- Quy trình ứng dụng OAuth dành cho máy tính
- Cách lấy mã làm mới OAuth2 cho ứng dụng dành cho máy tính.
- Quy trình ứng dụng web OAuth
- Cách lấy mã thông báo làm mới OAuth2 cho ứng dụng web.
- Quy trình tài khoản dịch vụ OAuth
- Cách sử dụng OAuth2 với thông tin đăng nhập tài khoản dịch vụ.
- Xây dựng từ nguồn
Cách tạo thư viện ứng dụng từ nguồn.
- Định dạng tệp cấu hình
Cách chỉ định các thuộc tính Java.
- Ghi nhật ký
Cách thiết lập tính năng ghi nhật ký.
- Mặt nạ trường
Cách sử dụng mặt nạ trường trong các thao tác cập nhật.
- Tên tài nguyên
Hình thức và cách sử dụng tên tài nguyên trong API.
- Cấu hình proxy
Định cấu hình proxy HTTP(S).
- Thao tác thực hiện lâu
Chạy các thao tác diễn ra trong thời gian dài.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]