Google adwords receiving unable to connect to host error

194 views
Skip to first unread message

yashes...@gmail.com

unread,
Dec 14, 2017, 5:12:43 PM12/14/17
to AdWords API Forum
Hello,

I am receiving following error while working on adwords using php library. Please help me to resolve the error:-

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\xampp\php\pear\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:91 Stack trace: #0 C:\xampp\php\pear\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(91): SoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1, 0) #1 [internal function]: Google\AdsApi\Common\AdsSoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1, 0) #2 C:\xampp\php\pear\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(131): SoapClient->__soapCall('get', Array, NULL, Array, Array) #3 C:\xampp\php\pear\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201710\cm\CampaignService.php(158): Google\AdsApi\Common\AdsSoapClient->__soapCall('get', Array) #4 C:\xampp\htdocs\adwords_copy\examples\AdWords\v201710\BasicOperations\GetCampaigns.php(53): Google\AdsApi\AdWords\v201710\cm\CampaignService->get(Object(Google\AdsApi\AdWords\v201710\cm\Selecto in C:\xampp\php\pear\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php on line 91

Thanks

Peter Oliquino

unread,
Dec 15, 2017, 2:42:22 AM12/15/17
to AdWords API Forum
Hi,

The error you are encountering appears to be specific to the PHP client library. Could you check this thread on StackOverflow if the suggestions would resolve your issue? If the suggestions in the thread still doesn't work, I would recommend that you get in touch with the PHP library owners via this link for further assistance.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages