Hello, I've been setting up the adwords api so I can write some scripts to automate some of our processes. I managed to get the starting bits done (developer token, test account, oauth2, etc) and configured it so that they run in PHP. I get to the moment of truth and try to run a script, but I keep on getting the same error regardless of the script I run.
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\xampp\htdocs\adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:90
Stack trace:
#0 C:\xampp\htdocs\adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(90): 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\htdocs\adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(131): SoapClient->__soapCall('get', Array, NULL, Array, Array)
#3 C:\xampp\htdocs\adwords\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\test.php(51): Google\AdsApi\AdWords\v201710\cm\CampaignService->get(Object(Google\AdsApi\AdWords\v201710\cm\Selector))
#5 C:\xampp\htdocs\adwords in C:\xampp\htdocs\adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php on line 90
These are my php.ini SOAP settings:
[soap]
; Enables or disables WSDL caching feature.
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=0
; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400
; Sets the size of the cache limit. (Max. number of WSDL files to cache)
soap.wsdl_cache_limit=5
I'm not sure how to approach this, there isn't much on the internet about it. Did anyone come across the same situation? Is it because I'm running it on xampp rather than something else?