Skip to content

ronakprogrammer/Laravel-Adwords-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Laravel-Adwords-Service

Connects with Google Adwords api and fetches the adwords performance reports via api, just pass on variables and set the oauth tokens details

How to use the service provider class

Follow the below instructions on how to use this class

  1. In the require key of composer.json file add the following

    "googleads/googleads-php-lib": "dev-master",

add the following in classmap key Make one folder libraries or whatever you want in my case I have made as libraries and add the following in classmap key

"app/libraries",
    "app/libraries/adwords",

Download the latest google adwords library by just adding the above package in composer.json file and run the command php composer.phar update.

  1. After successfull library installation open the file auth.ini(/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/auth.ini) and settings.ini (/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/settings.ini) and Replace the Developer token

  2. Place the repository files in your respective project directory.

  3. Open the laravel config file app.php and add following in providers array

    'providers' => array( 'Library\Adwords\AdwordsServiceProvider', ),

    Add following in aliases array

    'aliases' => array( 'AdwordsBO' => 'Library\Adwords\AdwordsFacade' ),

  4. Run command php composer.phar dump-autoload

  5. Open the file Clientservice.php and refer the downloadReport function before this make sure to inject the AdwordsService class object with Client service class.

     $this->app->bind('clientService', function ($app){
         return new ClientService(
             $app->make('adwordsService')    
         );
         
     });
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages