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?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8c6f5421-2b03-4067-a488-f3663248963d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Setting ... marcoa
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
    • Re:... Alan Coleman
      • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
        • ... Alan Coleman
          • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to