Download the PHP package joelbutcher/googleads-client-oauth2-wrapper without Composer

On this page you can find all versions of the php package joelbutcher/googleads-client-oauth2-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package googleads-client-oauth2-wrapper

Google Ads Client OAuth2 Wrapper

Build Status Total Downloads Latest Stable Version License

A lightweight and easy-to-configure OAuth2 wrapper for the Google Ads PHP library.

Configuration

To configure the service, provide an array with your client_id, client_secret, developer_token and Google Ads Account ID:

Note, if you're using an MCC (Manager account), login_customer_id will need to be your MCC account ID.

Usage

Once you've configured the client, you are then ready to start using the client to interact with Google Ads. First, we need to authorize the user with a refresh token. This can be obtained from a simple OAuth flow with Google.

Make sure to request the adwords scope in your OAuth2.0 authorization request.

If you're using an MCC and have configured your login_customer_id to use the MCC account ID, you will need to pass the ID of the account you are acting on behalf of, as the second parameter to the authorize method:

Interacting with Google Ads PHP SDK

Now that you're all configured and authenticated, you can now begin interacting with the underlying GoogleAdsClient class. You can call any of the services found here directly from the your $googleAds instance from the snippets above. For example, to retrieve the Campaign Service Client, simply call the following:

Versioning

Currently, we only support v6 of the client.

Changelog

Check out the CHANGELOG in this repository for all the recent changes.

Maintainers

Developed and maintained by Joel Butcher

Credits

You can view all contributers here

License

This pacakge is open-sourced software licensed under the MIT license.


All versions of googleads-client-oauth2-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
googleads/google-ads-php Version ^8.0
illuminate/support Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joelbutcher/googleads-client-oauth2-wrapper contains the following files

Loading the files please wait ....