ไลบรารีของไคลเอ็นต์ Google Ads API สำหรับ Java
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ไลบรารีของไคลเอ็นต์สำหรับ Java โฮสต์อยู่ใน
GitHub และจัดจำหน่าย
ผ่าน Maven โดยมีฟีเจอร์หลายอย่างที่จะช่วยให้คุณใช้ API ได้ รวมถึงการจัดการข้อมูลเข้าสู่ระบบและการสร้างไคลเอ็นต์บริการ Google Ads 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."]]