PHP code example of schulzefelix / laravel-adwords-targeting-idea-service

1. Go to this page and download the library: Download schulzefelix/laravel-adwords-targeting-idea-service library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

schulzefelix / laravel-adwords-targeting-idea-service example snippets


// config/app.php
'providers' => [
    ...
    SchulzeFelix\AdWords\AdWordsServiceProvider::class,
    ...
];

// config/app.php
'aliases' => [
    ...
    'AdWords' => SchulzeFelix\AdWords\AdWordsFacade::class,
    ...
];

$searchVolumes = AdWords::searchVolumes(['cheesecake', 'coffee']);

$keywordIdeas = AdWords::keywordIdeas('coffee');

AdWords::location(2276)->searchVolumes(['cheesecake', 'coffee']);

AdWords::location(2276)->language(1001)->searchVolumes(['cheesecake', 'coffee']);

AdWords::withTargetedMonthlySearches()->searchVolumes(['cheesecake', 'coffee']);

AdWords::convertNullToZero()->location(2276)->language(1001)->searchVolumes(['cheesecake', 'coffee']);

AdWords::location(2642)->exclude(['iphone'])->
 bash
php artisan vendor:publish --provider="SchulzeFelix\AdWords\AdWordsServiceProvider"
 bash
$ php artisan adwords:token