用戶端程式庫範例與程式碼範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Ad Manager 用戶端程式庫提供包裝函式和功能,方便您開發用戶端應用程式。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\u003cp\u003eGoogle Ad Manager client libraries simplify the development of client applications by providing wrapper functions and helpful features.\u003c/p\u003e\n"],["\u003cp\u003eLibraries are available for Java, .NET, PHP, Python, and Ruby, and each offers various distribution options like Maven, NuGet, Composer, PyPI, and gem.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive documentation and code examples are readily accessible for each client library to guide developers through implementation.\u003c/p\u003e\n"]]],["Google Ad Manager offers client libraries in Java, .NET, PHP, Python, and Ruby to simplify client application development. Each library is distributed via platforms like Maven, NuGet, Composer, PyPI, or as compressed files. Developers can access code examples through GitHub links and find documentation within the respective GitHub repositories. The libraries provide wrapper functions and various features to facilitate the process of creating client applications.\n"],null,["# Client Libraries & Example Code\n\nThe Google Ad Manager client libraries offer wrapper functions and features that make it easier to develop client applications.\n\n| Client Library | Distribution | Code Examples | Documentation |\n|:---------------|:---------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|\n| **Java** | [Maven](https://github.com/googleads/googleads-java-lib#maven-artifacts), [tar.gz](https://github.com/googleads/googleads-java-lib/releases) | [Browse Example Code](https://github.com/googleads/googleads-java-lib/tree/main/examples/admanager_axis/src/main/java/admanager/axis) | [Java Docs](//github.com/googleads/googleads-java-lib#google-ads-apis-client-library-for-java) |\n| **.NET** | [NuGet](https://www.nuget.org/packages/Google.Dfp/), [zip, tar.gz](//github.com/googleads/googleads-dotnet-lib/releases) | [Browse Example Code](//github.com/googleads/googleads-dotnet-lib/tree/main/examples/AdManager/CSharp) | [.NET Docs](//github.com/googleads/googleads-dotnet-lib#google-ads-api-net-client-library) |\n| **PHP** | [Composer](https://packagist.org/packages/googleads/googleads-php-lib), [tar.gz](https://github.com/googleads/googleads-php-lib/releases) | [Browse Example Code](https://github.com/googleads/googleads-php-lib/tree/HEAD/examples/AdManager) | [PHP Docs](//github.com/googleads/googleads-php-lib#google-ads-api-php-client-library) |\n| **Python** | [PyPI](//pypi.python.org/pypi/googleads), [tar.gz](https://github.com/googleads/googleads-python-lib/releases) | [Browse Example Code](https://github.com/googleads/googleads-python-lib/tree/main/examples/ad_manager) | [Python Docs](//github.com/googleads/googleads-python-lib#the-googleads-python-client-library) |\n| **Ruby** | [gem, zip, tar.gz](https://github.com/googleads/google-api-ads-ruby/releases) | [Browse Example Code](https://github.com/googleads/google-api-ads-ruby/tree/HEAD/ad_manager_api/examples) | [Ruby Docs](//github.com/googleads/google-api-ads-ruby#ads-api-client-libraries-for-ruby) |"]]