Chirag,

As suggested in the previous post:
Please make sure that the PHP version/path is exactly the same when running 
the example and your own test code?
Secondly, could I trouble you to send me what you have in `php -i`?

Thanks,

Ray

On Friday, August 22, 2014 2:03:37 PM UTC-4, chirag The Web Developer wrote:
>
> Hello,
>
> Any update on this?
>
> I am getting same error.
>
> Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' in 
> */src/Google/Api/Ads/Common/Lib/AdsUser.php* on line *231*
>
> PHP Version : 
> 5.4.27
>
> On Wednesday, January 29, 2014 2:43:44 PM UTC+5:30, sensah wrote:
>>
>> when i try to execute example code in the api folder. I get the following 
>> error.
>>
>> C:\wamp\bin\php\php5.4.3>php 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php
>> PHP Notice:  Use of undefined constant WSDL_CACHE_NONE - assumed 
>> 'WSDL_CACHE_NONE' in 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\AdsUser.php on line 229
>> PHP Stack trace:
>> PHP   1. {main}() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:0
>> PHP   2. AdWordsUser->__construct() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:133
>> PHP   3. AdsUser->LoadSettings() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php:176
>>
>> Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 
>> 'WSDL_CACHE_NONE' in 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\AdsUser.php on line 229
>>
>> Call Stack:
>>     0.0021     255600   1. {main}() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:0
>>     0.0182     936840   2. AdWordsUser->__construct() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:133
>>     0.0244     966344   3. AdsUser->LoadSettings() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php:176
>>
>> 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\adwords\src\Google\Api\Ads\Common\Lib\SoapClientFactory.php on 
>> line 87
>> PHP Stack trace:
>> PHP   1. {main}() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:0
>> PHP   2. EstimateKeywordTrafficExample() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:139
>> PHP   3. AdWordsUser->GetService() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:41
>> PHP   4. AdsUser->GetServiceSoapClient() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php:249
>> PHP   5. SoapClientFactory->GenerateSoapClient() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\AdsUser.php:133
>> PHP   6. trigger_error() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\SoapClientFactory.php:87
>>
>> 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\adwords\src\Google\Api\Ads\Common\Lib\SoapClientFactory.php on 
>> line 87
>>
>> Call Stack:
>>     0.0021     255600   1. {main}() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:0
>>     0.0380     945064   2. EstimateKeywordTrafficExample() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:139
>>     0.0380     946040   3. AdWordsUser->GetService() 
>> C:\wamp\www\adwords\examples\AdWords\v201309\Optimization\EstimateKeywordTraffic.php:41
>>     0.0390     947256   4. AdsUser->GetServiceSoapClient() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php:249
>>     0.0390     947288   5. SoapClientFactory->GenerateSoapClient() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\AdsUser.php:133
>>     0.0391     947648   6. trigger_error() 
>> C:\wamp\www\adwords\src\Google\Api\Ads\Common\Lib\SoapClientFactory.php:87
>>
>>
>> it is not because my soap service is not available because I tested it by 
>> this code 
>>
>> if(extension_loaded('soap')){
>> echo "it works";
>> }else{
>> echo "fail";
>> }
>>
>> it echoes "it works";
>>
>> so what could be the problem
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4602b767-3d67-4493-8bb4-34ed5160327c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to