客户端库和示例代码
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google Ad Manager 客户端库提供封装容器函数和功能,以便您更轻松地开发客户端应用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):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) |"]]