Download the PHP package cpcstrategy/capx-google-ads without Composer
On this page you can find all versions of the php package cpcstrategy/capx-google-ads. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cpcstrategy/capx-google-ads
More information about cpcstrategy/capx-google-ads
Files in cpcstrategy/capx-google-ads
Package capx-google-ads
Short Description Google Ads API for Laravel
License MIT
Homepage https://github.com/nikolajlovenhardt/laravel-google-ads
Informations about the package capx-google-ads
Google Ads API for Laravel
Integration of googleads/googleads-php-lib
in Laravel and Lumen (version >5).
Setup
- Run
$ composer require nikolajlovenhardt/laravel-google-ads
Laravel
-
Add provider to config/app.php
- Run
$ php artisan vendor:publish
to publish the configuration fileconfig/google-ads.php
and insert:- developerToken
- clientId & clientSecret
- refreshToken
Lumen
-
Add provider to
bootstrap/app.php
-
Copy
vendor/nikolajlovenhardt/laravel-google-ads/config/config.php
toconfig/google-ads.php
and insert:- developerToken
- clientId & clientSecret
- refreshToken
- Add config to
bootstrap/app.php
Generate refresh token
This requires that the clientId
and clientSecret
is from a native application.
Run $ php artisan googleads:token:generate
and open the authorization url. Grant access to the app, and input the
access token in the console. Copy the refresh token into your configuration config/google-ads.php
Basic usage
The following example is for AdWords, but the general code applies to all products.
Best practices
Features, requirements, support etc.
See googleads/googleads-php-lib
Dependencies
googleads/googleads-php-lib
hosts the PHP client library for the various SOAP-based Ads APIs (AdWords, AdExchange Buyer, and DFP) at Google.
All versions of capx-google-ads with dependencies
ext-soap Version *
illuminate/console Version >=5.1
illuminate/support Version ~5.1
googleads/googleads-php-lib Version ~25.2.0