Integrate GoogleAds API to Laravel 5
This may be too simple for you.
At the beginning, I was thinking like how the PSR works, what class should I add to config/app.php’s provider (actually no need), etc.
Eventually I realised that, it was quite simple.
1. Edit the composer.json
Add "googleads/googleads-php-lib": "6.*"
to the require section.
e.g.
1 | "require": { |
Then run the command:
1 | $ composer update |
2. Create config file
By follow Laravel 5 standard, create a config file in the config folder
1 | project |
The adwords.ini contains:
1 | ; Detailed descriptions of these properties can be found at: |
3. How to use
1 |
|
That’s all~