Hi There,

Since laravel is getting quite popular i thought i use it with the adwords 
API for my next project. I was able to link the google api for Analytics, 
etc quite easily but when it came to adwords i keep getting 'Class 
AdwordsUser does not exist'. I have already added 
""googleads/googleads-php-lib": "dev-master" to the composer.json file of 
my project and ran composer update, which downloaded the library to my 
vendor folder with the path 
'vendor\googleads\googleads-php-lib\src\Google\Api\Ads\AdWords'.

My code for the controller is
public function __construct(AdwordsUser $user){
$this->user = $user;
$this->user->SetOAuth2Info(array(
'client_id'=>Config::get('api.google_client_id'), 
'client_secret'=>Config::get('api.google_client_secret')));
    
}
 
Any ideas ? I am hoping if we can figure this out a public documentation 
could be made of it so similar frameworks like cakephp, etc could also make 
use of it.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3f62a3a8-8ae0-47c7-9f2d-63a1a38cfec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to