I run the sample code of google adwords api then I got Soap Error

49 views
Skip to first unread message

ken...@blvnp.com

unread,
Dec 5, 2017, 6:28:48 AM12/5/17
to AdWords API Forum
I am running Xampp v3. 
PHP 7.1
Windows 10 64x

I was only making a simple GetCampaigns. 


This is the error.

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201710/CampaignService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201710/CampaignService?wsdl" in C:\xampp\htdocs\webapps\native_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:75 Stack trace: #0 C:\xampp\htdocs\webapps\native_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(75): SoapClient->SoapClient('https://adwords...', Array) #1 C:\xampp\htdocs\webapps\native_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201710\cm\CampaignService.php(146): Google\AdsApi\Common\AdsSoapClient->__construct('https://adwords...', Array) #2 [internal function]: Google\AdsApi\AdWords\v201710\cm\CampaignService->__construct(Array) #3 C:\xampp\htdocs\webapps\native_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(39): ReflectionCl in C:\xampp\htdocs\webapps\native_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php on line 75

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 5, 2017, 2:25:41 PM12/5/17
to AdWords API Forum
Hi, 

Could you confirm the version of the PHP client library that you are using? If you are using an older version of PHP library, could you please try to upgrade to the v32.0.0 version and see if the issue persists? If it does, please log a new issue in the issues tracker. The library owner should be able to assist you with this.

Thanks,
Sreelakshmi, AdWords API Team

Message has been deleted

ken...@blvnp.com

unread,
Dec 7, 2017, 12:07:25 AM12/7/17
to AdWords API Forum
I found the solution, someone in github helped me. Here is our conversation and solution:

For quick solution, please follow the steps:

This is for PHP 7.1, Xampp 3.2.2, Windows 10 64x/32x.

Steps:

  1. download pem file here https://curl.haxx.se//ca/cacert-2017-09-20.pem
  2. rename Rename the cacert-2017-09-20.pem file to curl-ca-bundle.crt
  3. copy - paste - replace at C:\xampp\apache\bin\
  4. open php.ini and find openssl.cafile, uncomment and provide path for curl-ca-bundle.crt
    example: openssl.cafile="C:\xampp\apache\bin\curl-ca-bundle.crt"
  5. restart xamp

This is solve! Mine is working now. Thanks!

Reply all
Reply to author
Forward
0 new messages