PHP 客户端库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
PHP 客户端库托管在 https://github.com/googleads/google-ads-php,也可通过依赖项管理系统获取:
您可以在 composer.json
中查看此库支持的最低 PHP 版本。版本指定为 require
键的 php
值。
video_library
视频库:PHP 客户端库入门
如 composer.json
中所示,该库依赖于 gRPC。在使用此库之前,请先查看使用入门和基本用法。
如需使用 OAuth 设置客户端库,请参阅以下指南:
如需了解该库的功能和实用程序,请参阅以下指南:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-26。
[null,null,["最后更新时间 (UTC):2025-08-26。"],[[["\u003cp\u003eThe Google Ads PHP client library is available on GitHub and through dependency management systems like Composer and Packagist.\u003c/p\u003e\n"],["\u003cp\u003eThe library depends on gRPC and has minimum PHP version requirements specified in its \u003ccode\u003ecomposer.json\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find getting started guides, basic usage instructions, and OAuth setup guides for various application flows within the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe library offers features such as configuration, logging, Docker support, and utilities for transport, Protobuf, proxy configuration, and more.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive guides cover advanced topics like FieldMasks, ResourceNames, performance optimization, and timeout handling for the PHP client library.\u003c/p\u003e\n"]]],[],null,["# The PHP Client Library\n\nThe PHP client library is hosted at \u003chttps://github.com/googleads/google-ads-php\u003e, and is also\navailable through dependency management systems:\n\n- [Composer](//getcomposer.org/)\n- [Packagist](//packagist.org/packages/googleads/google-ads-php)\n\nYou can check the minimum PHP version that this library supports in\n[`composer.json`](https://github.com/googleads/google-ads-php/blob/HEAD/composer.json). The version is specified\nas a value of `php` of the `require` key.\n\n\nvideo_library\n[Video library: Getting started with the PHP client library](https://www.youtube.com/playlist?list=PLKByxjzUC-N-qL2fhpv3Vug608cRWgHPN)\n\nAs indicated in `composer.json`, the library depends on [gRPC](//grpc.io/docs/quickstart/php.html). Check out [Getting\nstarted](https://github.com/googleads/google-ads-php/blob/HEAD/README.md#getting-started) and [Basic\nusage](https://github.com/googleads/google-ads-php/blob/HEAD/README.md#basic-usage) before using this library.\n\nTo set up the client library with OAuth, see the following guides:\n\n- [OAuth desktop application flow](/google-ads/api/docs/client-libs/php/oauth-desktop)\n- [OAuth web application flow](/google-ads/api/docs/client-libs/php/oauth-web)\n- [OAuth service account flow](/google-ads/api/docs/client-libs/php/oauth-service)\n\nCheck out the following guides for the library's features and utilities:\n\n- [Configuration](/google-ads/api/docs/client-libs/php/configuration)\n- [Logging](/google-ads/api/docs/client-libs/php/logging)\n- [Running in a Docker container](/google-ads/api/docs/client-libs/php/docker)\n- [Transport](/google-ads/api/docs/client-libs/php/transport)\n- [Protobuf](/google-ads/api/docs/client-libs/php/protobuf)\n- [Proxy Configuration](/google-ads/api/docs/client-libs/php/proxy)\n- [FieldMasks](/google-ads/api/docs/client-libs/php/fieldmasks)\n- [ResourceNames](/google-ads/api/docs/client-libs/php/resourcenames)\n- [Performance](/google-ads/api/docs/client-libs/php/performance)\n- [Timeout](/google-ads/api/docs/client-libs/php/timeout)"]]