SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201609/LabelService?wsdl' : Extra content at the end of the document

858 views
Skip to first unread message

PR

unread,
Oct 6, 2016, 6:16:26 AM10/6/16
to AdWords API Forum
Hello, is this just for me or error on Google's side?
Nothing changed on our site, affecting 201607 version too.. Thank you

rob....@euautomation.com

unread,
Oct 6, 2016, 9:53:47 AM10/6/16
to AdWords API Forum
I'm getting this error too.

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201607/CampaignService?wsdl' : Extra content at the end of the document
 in /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:154
Stack trace:
#0 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(154): SoapClient->SoapClient('https://adwords...', Array)
#1 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(51): AdsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'CampaignService', 'https://adwords...')
#2 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/CampaignService.php(8031): AdWordsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'CampaignService', 'https://adwords...')
#3 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(161): CampaignService->__construct('https://adwords...', Array, Object(AdWordsUser))
#4 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(85): SoapClientFactory->GenerateServiceClient('CampaignService')
#5 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsUser.php(131): SoapClientFactory->GenerateSoapClient('CampaignService')
#6 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php(229): AdsUser->GetServiceSoapClient('CampaignService', Object(AdWordsSoapClientFactory))

I'm also getting a different error sometimes too.

exception 'ErrorException' with message 'gzinflate(): data error' in /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:178
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'gzinflate(): da...', '/var/www/html/a...', 178, Array)
#1 [internal function]: gzinflate('????????????Qo?...')
#2 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(178): SoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1)
#3 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(72): AdsSoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1)
#4 [internal function]: AdWordsSoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1, 0)
#5 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216): SoapClient->__soapCall('mutate', Array, NULL, Array, Array)
#6 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(86): AdsSoapClient->__soapCall('mutate', Array)
#7 /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/FeedItemService.php(6213): AdWordsSoapClient->__soapCall('mutate', Array)


Christian H.

unread,
Oct 6, 2016, 10:31:58 AM10/6/16
to AdWords API Forum
Dear Adwords-Team,

Is it possible, that this error is related to my problem https://groups.google.com/forum/#!topic/adwords-api/Epxf03OZ2cA ?

My problem is, that I sometimes get an invalid XML-response that looks like an (de)compression-issue.

An example-outline of that messed up decompressed response is "</biddingStrategyN5BategyTyAssiseiingStddin+Red+Rebel%5308>TARGET_CPA</biddingStrategyType>"

Christian

Vishal Vinayak (Adwords API Team)

unread,
Oct 6, 2016, 1:46:29 PM10/6/16
to AdWords API Forum
Hello All, 

Thanks for providing the details of the error. I'm trying to debug the issue on our side. Meanwhile if any of you happen to have the SOAP XML request and response logs for the failed API call, please send it across. Please click on Reply privately to author when responding.

Regards,
Vishal Vinayak, AdWords API Team

Thanet Knack Praneenararat (AdWords API Team)

unread,
Oct 7, 2016, 6:29:56 AM10/7/16
to AdWords API Forum
Hello All,

Thanks for your information.
We'll investigate this and keep you posted.

Best,
Thanet, AdWords API Team

Thanet Knack Praneenararat (AdWords API Team)

unread,
Oct 25, 2016, 3:26:21 AM10/25/16
to AdWords API Forum
Hello All,

Do you happen to face with this issue after you reported this?
Our engineers can't find anything wrong on our configuration settings and servers.
They suspect that this would be something related on the client sides.

Best,
Thanet, AdWords API Team

rob....@euautomation.com

unread,
Oct 25, 2016, 3:39:19 AM10/25/16
to AdWords API Forum
Hi Thanet,

I'm not having this issue anymore and I didn't change the way I was dealing with the API. It seems like it has gone away on its own.

Thanet Knack Praneenararat (AdWords API Team)

unread,
Oct 25, 2016, 4:16:25 AM10/25/16
to AdWords API Forum
Hello Rob,

Thanks for information.
Please let us know if this happens again.

Cheers,
Thanet, AdWords API Team

Radim Kleinpeter

unread,
Mar 10, 2017, 5:19:41 AM3/10/17
to AdWords API Forum
Hi,
my solution after almost a day of exploration is use libxml_disable_entity_loader(false); before SOAP call.
Then everything works like a charm.

Dne čtvrtek 6. října 2016 15:53:47 UTC+2 rob....@euautomation.com napsal(a):

Radim Kleinpeter

unread,
Mar 10, 2017, 5:19:41 AM3/10/17
to AdWords API Forum
Hello,
my solution after almost a day of exploration is use libxml_disable_entity_loader(false); before SOAP call.
I spent on it almost all day and this works like a charm.

Dne čtvrtek 6. října 2016 15:53:47 UTC+2 rob....@euautomation.com napsal(a):
I'm getting this error too.
Reply all
Reply to author
Forward
0 new messages