Download the PHP package merj/laravel-google-ads without Composer
On this page you can find all versions of the php package merj/laravel-google-ads. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-google-ads
Google Ads API for Laravel
Integration of googleads/googleads-php-lib
in Laravel and Lumen (version >5).
Setup
- Run
$ composer require spotonlive/laravel-google-ads
Laravel
-
(Only for Laravel 5.4 or minor) 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/spotonlive/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.
Credits
All versions of laravel-google-ads with dependencies
ext-soap Version *
illuminate/console Version ^5.1
illuminate/support Version ^5.1
googleads/googleads-php-lib Version ^41.0