SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl'

1,431 views
Skip to first unread message

Интернет Капитал

unread,
May 28, 2015, 9:17:47 AM5/28/15
to adwor...@googlegroups.com



Hi
when I launch the script,  receive this error.

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl"
 in /var/www/backend/broker/GoogleBroker/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 169
[2015-05-28 15:25:35] An error has occurred: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl"




installed
Ubuntu 12.04
PHP Version 5.3.10-1ubuntu3.18
cURL support enabled
OpenSSL 1.0.1 14 Mar 2012
Soap Client enabled





Any ideas?

Anthony Madrigal

unread,
May 28, 2015, 10:53:09 AM5/28/15
to adwor...@googlegroups.com, rocs...@gmail.com
Hi,

This typically happens due to connectivity issues from the user's computer to the AdWords API server. Are these URLs accessible from the user's machine on a browser or through cURL?

Regards,
Anthony, AdWords API Team

Интернет Капитал

unread,
May 29, 2015, 2:09:34 AM5/29/15
to adwor...@googlegroups.com, rocs...@gmail.com


Thanks for the reply

in command line  wget https://adwords.google.com/api/adwords/cm/v201502/AdGroupAdService?wsdl
load file 'AdGroupAdService?wsdl'

четверг, 28 мая 2015 г., 17:53:09 UTC+3 пользователь Anthony Madrigal написал:

Anthony Madrigal

unread,
May 29, 2015, 10:24:57 AM5/29/15
to adwor...@googlegroups.com, rocs...@gmail.com
Hello,

Were you able to access the URLs on your web browser or by using cURL? 

Интернет Капитал

unread,
Jun 1, 2015, 2:27:17 AM6/1/15
to adwor...@googlegroups.com, rocs...@gmail.com


пятница, 29 мая 2015 г., 17:24:57 UTC+3 пользователь Anthony Madrigal написал:

Hello,





I can access the URL via a web browser

Anthony Madrigal

unread,
Jun 2, 2015, 11:26:57 AM6/2/15
to adwor...@googlegroups.com, rocs...@gmail.com
Hello,

If you can access the URL by your browser but not through your code, then you should check your code to see if it is running locally or from a separate machine.

You could also do some troubleshooting on the path your code is taking through your own network.

Danial Klimkin

unread,
Jun 2, 2015, 12:25:15 PM6/2/15
to adwor...@googlegroups.com, rocs...@gmail.com
Hello,


Please make sure the PHP client can reach this URL from your server. You can start trying with 'wget'. If it succeeds, try pulling via the PHP.

Most common cases are lack of SSL certificates and some kind of proxy / NAT blocking the access.


-Danial, AdWords API Team.

Stephen Yeargin

unread,
Jun 4, 2015, 11:44:17 AM6/4/15
to adwor...@googlegroups.com, rocs...@gmail.com
We are having similar errors, but they are sporadic and have been over the last week (typically works on a retry). It's a little frustrating because the SDK doesn't really give me an easy spot to hook into the flow to prompt a retry or inspect what was sent.

ERROR: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201502/CampaignService?wsdl' : Premature end of data in tag definitions line 4 in /home/capistrano_repo/releases/20150602213100/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:169
Stack trace:
#0 /home/capistrano_repo/releases/20150602213100/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(169): SoapClient->SoapClient('https://adwords...', Array)
#1 /home/capistrano_repo/releases/20150602213100/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(52): AdsSoapClient->__construct('https://adwords...', Array, Object(RavenAdWords), 'CampaignService', 'https://adwords...')
#2 /home/capistrano_repo/releases/20150602213100/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201502/CampaignService.php(7923): AdWordsSoapClient->__construct('https://adwords...', Array, Object(Raven FILE: /home/capistrano_repo/releases/20150602213100/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:169
TYPE
: 1

Stanislav Kundrát

unread,
Sep 12, 2016, 12:41:29 PM9/12/16
to AdWords API Forum, rocs...@gmail.com
Hi, have you solved this problem? I'm facing the same issue (premature end of data in tag definitions...), except the address is https://adwords.google.com/api/adwords/cm/v201607/AdGroupService?wsdl.

Shwetha Vastrad (AdWords API Team)

unread,
Sep 19, 2016, 5:59:11 PM9/19/16
to AdWords API Forum
Hi Stanislav,

Did you try what Danial suggested in the previous post? If that doesn't solve the issue, could you let me know if you can access the URLs on your web browser or by using cURL? 

Thanks,
Shwteha, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages