Laravel wrapper for the AdWords Targeting Idea Service

v1.1.0 2023-01-17 08:05 UTC


Latest Version Software License Build Status Quality Score StyleCI Latest Version on Packagist Total Downloads


This package can be installed through Composer.

$ composer require schulzefelix/laravel-adwords-targeting-idea-service

The package will autoregister the service provider. If package discovery is disabled add the following.

// config/app.php
'providers' => [

The package will autoregister the facade. If package discovery is disabled add the following.

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

You can publish the config file of this package with this command:

php artisan vendor:publish --provider="SchulzeFelix\AdWords\AdWordsServiceProvider"

Generate Refresh Token

This requires that the clientId and clientSecret are from a native application.

Google Console:

$ php artisan adwords:token

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/adwords-targeting-idea-service.php


All methods will return an Illuminate\Support\Collection-instance.

Here are two basic example to retrieve search volumes for several keywords and new keyword ideas for a given word.

Search Volumes

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

Keyword Ideas

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

Provided fluent configuration

Set Location

For Criteria ID see

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

Set Language

For Criteria ID see

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

Include Targeted Monthly Searches

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

Convert NULL values to Zero

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

Include And Exclude Words For Keyword Ideas


Change log

Please see CHANGELOG for more information what has changed recently.


$ vendor/bin/phpunit


Please see CONTRIBUTING for details.


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.