範例與程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AdSense Management API 是以 HTTP 和 JSON 做為建構基礎,因此所有標準 HTTP 用戶端都可以向 API 傳送請求並剖析回應。
不同的是,Google API 用戶端程式庫可以提供更好的語言整合環境、更高的安全性,並支援需要使用者授權的呼叫要求。用戶端程式庫支援多種程式設計語言,只要善加利用,您就不必再手動設定 HTTP 要求及剖析回應。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe AdSense Management API utilizes HTTP and JSON, allowing any standard HTTP client to interact with it.\u003c/p\u003e\n"],["\u003cp\u003eGoogle's client libraries offer enhanced security, language integration, and user authorization capabilities for easier interaction with the API.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are available in various programming languages like Java, .NET, PHP, Python, and Ruby, eliminating manual HTTP request setup.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find code examples for each client library on the provided GitHub links.\u003c/p\u003e\n"]]],["The AdSense Management API utilizes HTTP and JSON, allowing standard HTTP clients to interact with it. Google APIs client libraries enhance this interaction by offering better language integration, security, and user authorization support. These libraries, available in Java, .NET, PHP, Python, and Ruby, eliminate the need for manual HTTP request setup and response parsing. Example code is provided for each language on GitHub.\n"],null,["# Samples and Libraries\n\nThe AdSense Management API is built on HTTP and JSON, so any standard HTTP client\ncan send requests to it and parse the responses.\n\nHowever, the Google APIs client libraries provide better language\nintegration, improved security, and support for making calls that require user\nauthorization. The client libraries are available in a number of programming\nlanguages; by using them you can avoid the need to manually set up HTTP\nrequests and parse the responses.\n\n| Client Library | Code Examples |\n|:-------------------------------------|:---------------------------------------------------------------------------------------------|\n| [Java](/api-client-library/java) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/java) |\n| [.NET](/api-client-library/dotnet) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/dotnet) |\n| [PHP](/api-client-library/php) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/php) |\n| [Python](/api-client-library/python) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/python) |\n| [Ruby](/api-client-library/ruby) | [Browse example code](//github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/ruby) |"]]