Parsing WSDL error

226 views
Skip to first unread message

gior...@jobtome.com

unread,
Jun 30, 2016, 9:31:06 AM6/30/16
to AdWords API Forum
Hi all,

Im using API's since last year and I've never understand why there are so many problems while starting a PHP script.
I get this error 2/3 times:

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201605/AdGroupCriterionService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201605/AdGroupCriterionService?wsdl"
 
in /hd1/www/giorgio/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 169
PHP
Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201605/AdGroupCriterionService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201605/AdGroupCriterionService?wsdl"
 
in /hd1/www/giorgio/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:169
Stack trace:
#0 /hd1/www/giorgio/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(169): SoapClient->SoapClient('https://adwords...', Array)
#1 /hd1/www/giorgio/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(51): AdsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'AdGroupCriterio...', 'https://adwords...')
#2 /hd1/www/giorgio/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php(10389): AdWordsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'AdGroupCriterio...', 'https://adwords...')
#3 /hd1/www/giorgio/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(166): AdGroupCriterionService->__construct('http in /hd1/www/giorgio/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 169

Can someone help me please? The problem is that the same script sometimes works for 24/48hours with no problem and sometimes this error appears after 3/4 minutes. What's wrong here?

Thanks a lot,
bye!

Anthony Madrigal

unread,
Jun 30, 2016, 8:06:25 PM6/30/16
to AdWords API Forum
Hi,

You should make sure that your server environment and PHP version is up to date. If they both are, could you please provide me with some details on when this is happening?

Regards,
Anthony
AdWords API Team

giorgio...@gmail.com

unread,
Jul 1, 2016, 5:17:54 AM7/1/16
to AdWords API Forum
Hi Anthony,

my PHP version is 5.4.16 and it happens using any type of script..

Anthony Madrigal

unread,
Jul 1, 2016, 3:45:05 PM7/1/16
to AdWords API Forum
Hi,

Could you see if you are able to access the URL through either cURL or wget? If not, could you please provide me the responses via reply privately to author?

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages