CodeIgniter Forums

Full Version: How to load Adwords API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]titolancreo[/eluser]
Hi!

I download the latest Adwords API and I'm not able to load it.

First of all, the main php is AdWordsUser and it's first line is:
Code:
require_once dirname(__FILE__) . '/../../Common/Lib/AdsUser.php';

I tried to put all files into library folder, but when I load AdWordsUser.php I see the same error:
Code:
Severity: Warning

Message: require_once(/Applications/MAMP/htdocs/ProjectAdwords/application/libraries/Google/Api/Ads/AdWords/Lib/../../Common/Lib/AdsUser.php): failed to open stream: No such file or directory

Filename: Lib/AdWordsUser.php

Line Number: 34

I don't want to edit all phps to change that required_once, so, How can I load them?. I read that if I put them on third_party, it will work, but I could not do it...

My controller:
Code:
$this->load->library('Google/Api/Ads/AdWords/Lib/AdWordsUser');

Thanks!