Hi everyone,

I'm new with Google Adwords API PHP and I'm trying to connect the API on my 
XAMPP server (localhost).
I did some research, but I can't find the correct answer yet. 

First I downloaded the Adwords API PHP Library from Github and placed it in 
my htdocs in the XAMPP folder. 

The directory I use: xampp\htdocs\adwords api\src\Google\Api\Ads\AdWords


I searched for my developers token in my MCC account in Adwords and placed 
it in the auth.ini file. 
Same for the client_id and client_secret. For this I made a project on 
console.google.com, to get access to a client id and secret (installed 
application). 

Everything is looking good and I managed to run the GetRefreshToken.php and 
get the token. I also filled this one in (in my auth.ini file). 
Now, I want to try running an example from the API. When I run the 
GetCampaigns.php in the command prompt, I get this error: 


PHP Notice:  Use of undefined constant WSDL_CACHE_NONE - assumed 
> 'WSDL_CACHE_NONE' in C:\xampp\htdocs\adwords 
> api\src\Google\Api\Ads\Common\Lib\AdsUser.php on line 225
> Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 
> 'WSDL_CACHE_NONE' in C:\xampp\htdocs\adwords 
> api\src\Google\Api\Ads\Common\Lib\AdsUser.php on line 225
>
 

> An error has occurred: Validation failed for [userAgent] with value []: 
> The property userAgent is required and cannot be null, the empty string, or 
> the default [INSERT_COMPANY_NAME_HERE]


Can someone help me out?

Thanks! 


Nick. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6e4f3ad0-ff71-4d04-85ea-3bb5a9116ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to