The PHP Client Library
Stay organized with collections
Save and categorize content based on your preferences.
The PHP client library is hosted at https://github.com/googleads/google-ads-php, and is also
available through dependency management systems:
You can check the minimum PHP version that this library supports in
composer.json
. The version is specified
as a value of php
of the require
key.
video_library
Video library: Getting started with the PHP client library
As indicated in composer.json
, the library depends on gRPC. Check out Getting
started and Basic
usage before using this library.
To set up the client library with OAuth, see the following guides:
Check out the following guides for the library's features and utilities:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 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)"]]