Skip to content

Instantly share code, notes, and snippets.

@ThomasHambach
Created May 4, 2013 22:10
Show Gist options
  • Save ThomasHambach/5518932 to your computer and use it in GitHub Desktop.
Save ThomasHambach/5518932 to your computer and use it in GitHub Desktop.
Laravel 3 Adwords PHP Api bundle 1. Create a new directory called "adwords" in your /bundles directory 2. Add in the files below 3. Download the Adwords PHP Api library from https://code.google.com/p/google-api-adwords-php/ 4. Create a new directory in /bundles/adwords called "libraries", in this libraries folder, create another folder called "a…
<?php
return array('adwords');
<?php
// we need this to have our adwords properly call our functions...
// all paths are set relative in that code
set_include_path(
get_include_path() . PATH_SEPARATOR .
path('bundle') . 'adwords/libraries/adwords/src/' . PATH_SEPARATOR .
path('bundle') . 'adwords/libraries/adwords/src/'
);
$result = Autoloader::map(array(
'AdWordsUser' => path('bundle') . 'adwords/libraries/adwords/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment