Hi all,

I'm trying to use GetKeywordIdeas from the google API, but it's only 
returning a blank page in my browser.

So I tried executing the file from the command line and this is what I got:

C:\Users\...>php C:\wamp\www\...\examples\AdWords\v201603\Optimization\
GetKeywordIdeas.php
PHP Notice:  Use of undefined constant WSDL_CACHE_NONE - assumed 
'WSDL_CACHE_NONE' in C:\wamp\www\...\lib\Google\Api\Ads\Common\Lib\AdsUser.php 
on
line 449
PHP Stack trace:
PHP   1. {main}() C:\wamp\www\...\examples\AdWords\v201603\Optimization\
GetKeywordIdeas.php:0
PHP   2. AdWordsUser->__construct() C:\wamp\...\test\examples\AdWords\
v201603\Optimization\GetKeywordIdeas.php:237
PHP   3. AdsUser->LoadSettings() C:\wamp\...\test\lib\Google\Api\Ads\AdWords
\Lib\AdWordsUser.php:305

Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 
'WSDL_CACHE_NONE' in C:\wamp\www\...\lib\Google\Api\Ads\Common\Lib\AdsUser.php 
on line 449

Call Stack:
    0.0015     661696   1. {main}() C:\wamp\www\...\examples\AdWords\v201603
\Optimization\GetKeywordIdeas.php:0
    0.0315    1356032   2. AdWordsUser->__construct() C:\wamp\www\...\
examples\AdWords\v201603\Optimization\GetKeywordIdeas.php:237
    0.0362    1404856   3. AdsUser->LoadSettings() C:\wamp\www\...\lib\
Google\Api\Ads\AdWords\Lib\AdWordsUser.php:305

PHP Fatal error:  This client library requires the SOAP extension to be 
activated. See http://php.net/manual/en/soap.installation.php for details. 
in C:\wamp\www\...\lib\Google\Api\Ads\Common\Lib\SoapClientFactory.php on 
line 179
PHP Stack trace:
PHP   1. {main}() C:\wamp\www\...\examples\AdWords\v201603\Optimization\
GetKeywordIdeas.php:0
PHP   2. GetKeywordIdeasExample() C:\wamp\www\...\examples\AdWords\v201603\
Optimization\GetKeywordIdeas.php:249
PHP   3. AdWordsUser->GetService() C:\wamp\www\...\examples\AdWords\v201603\
Optimization\GetKeywordIdeas.php:81
PHP   4. AdsUser->GetServiceSoapClient() C:\wamp\www\...\lib\Google\Api\Ads\
AdWords\Lib\AdWordsUser.php:455
PHP   5. SoapClientFactory->GenerateSoapClient() C:\wamp\www\...\lib\Google\
Api\Ads\Common\Lib\AdsUser.php:257
PHP   6. trigger_error() C:\wamp\www\...\lib\Google\Api\Ads\Common\Lib\
SoapClientFactory.php:179

Fatal error: This client library requires the SOAP extension to be activated
. See http://php.net/manual/en/soap.installation.php for details. in 
C:\wamp\www\...\lib\Google\Api\Ads\Common\Lib\SoapClientFactory.php on line 
179

Call Stack:
    0.0015     661696   1. {main}() C:\wamp\www\...\examples\AdWords\v201603
\Optimization\GetKeywordIdeas.php:0
    0.0404    1362184   2. GetKeywordIdeasExample() C:\wamp\www\...\examples
\AdWords\v201603\Optimization\GetKeywordIdeas.php:249
    0.0404    1362352   3. AdWordsUser->GetService() C:\wamp\www\...\
examples\AdWords\v201603\Optimization\GetKeywordIdeas.php:81
    0.0405    1363544   4. AdsUser->GetServiceSoapClient() C:\wamp\www\...\
lib\Google\Api\Ads\AdWords\Lib\AdWordsUser.php:455
    0.0405    1363544   5. SoapClientFactory->GenerateSoapClient() C:\wamp\
www\...\lib\Google\Api\Ads\Common\Lib\AdsUser.php:257
    0.0405    1363840   6. trigger_error() C:\wamp\www\...\lib\Google\Api\
Ads\Common\Lib\SoapClientFactory.php:179




I followed the instructions for the setup 
here 
https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_identifier_and_client_secret.

I ran "php --enable-soap" and the extension is ticked in WAMP.

Can anyone tell me where I went wrong please?

Bonus question: can I use GetKeywordIdeas from a browser or will I always 
have to go through the command line? I'm not familiar with cmd so I would 
like to access this from a browser.

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/91f898fa-1df9-4d94-ba09-912af733cce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP Fatal error... Aislinn Mc
    • Re: PHP Fa... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to