Error in conection with Google Adwords PHP API

32 views
Skip to first unread message

Miguel Torres

unread,
Jan 4, 2018, 3:57:00 PM1/4/18
to AdWords API Forum
I´m trying to make a conection with the API of Google Adwords, after make the instalation using Git Clone and Composer Install , then I extract the refresh token via 
GetRefreshToken.php but, when I try to get the first call to the API via the file GetCampaigns.php, it shows the next error message :

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

Can anybody tell me why it shows this error message?

Luis Xander Talag (AdWords API Team)

unread,
Jan 4, 2018, 9:50:05 PM1/4/18
to AdWords API Forum
Hi Miguel,

It seems this error is specific to the configuration of PHP client library and not the AdWords API. This being said, could you try and see if the suggestions mentioned here resolves your issue? If it doesn't, I would recommend that you get in touch with the PHP library owners via this link for further assistance.

Thanks and regards,
Luis
AdWords API Team

Sergey Ivanov

unread,
Jan 5, 2018, 8:14:09 AM1/5/18
to AdWords API Forum
Seems you need to configure OpenSSL correctly on your Windows xampp.  

четверг, 4 января 2018 г., 22:57:00 UTC+2 пользователь Miguel Torres написал:
Reply all
Reply to author
Forward
0 new messages