Клиентская библиотека PHP
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Клиентская библиотека PHP размещена по адресу https://github.com/googleads/google-ads-php и также доступна через системы управления зависимостями:
Минимальную версию PHP, поддерживаемую этой библиотекой, можно проверить в файле composer.json
. Версия указывается как значение php
ключа require
.
video_library Видеобиблиотека: Начало работы с клиентской библиотекой PHP
Как указано в файле composer.json
, библиотека зависит от gRPC . Перед использованием этой библиотеки ознакомьтесь с разделами «Начало работы» и «Основы использования» .
Чтобы настроить клиентскую библиотеку с OAuth, ознакомьтесь со следующими руководствами:
Ознакомьтесь со следующими руководствами по функциям и утилитам библиотеки:
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-08-26 UTC.
[null,null,["Последнее обновление: 2025-08-26 UTC."],[[["\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)"]]