Line: 202, file: aw_api_php_lib_2.7.1/src/Google/Api/Ads/Common/Lib/
AdsSoapClient.php
Exception: SOAP-ERROR: Encoding: Error calling callback from_xml
Backtrace:
#0 xxxxx/aw_api_php_lib_2.7.1/src/Google/Api/Ads/Common/Lib/
AdsSoapClient.php(202): SoapClient->__soapCall('get', Array, NULL,
Array, Array)
#1 xxxxx/aw_api_php_lib_2.7.1/src/Google/Api/Ads/AdWords/v201109/
AdGroupService.php(4489): AdsSoapClient->__soapCall('get', Array)
#2 xxxxx/bootstrap.php(71): AdGroupService->get(Object(Selector))
The server is debian with PHP5.2
The same script is working without problem on Win7 + PHP5.3
Below some details about the request:
request_info.log:
[Nov 30 2011 10:46:00.u - ERROR] email=adw...@xxxx.xx
effectiveUser=402-xxx-xxxx service=AdGroupService method=get
operators={IN: 2} responseTime=441
requestId=0004b2f0b4696d900a11391100002df3 operations=1 units=1
server=adwords.google.com isFault=true faultMessage=SOAP-ERROR:
Encoding: Error calling from_xml callback
soap_xml.log:
[Nov 30 2011 10:46:00.u - ERROR] POST /api/adwords/cm/v201109/
AdGroupService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.0-8+etch11, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 810
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v201109">
<SOAP-ENV:Header>
<ns1:RequestHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="ns1:SoapHeader">
<ns1:authToken>*****</ns1:authToken>
<ns1:clientCustomerId>402-XXX-XXXX</ns1:clientCustomerId>
<ns1:developerToken>T8GIbqlW5X9_c36wDEeuKA</ns1:developerToken>
<ns1:userAgent>AwApi-PHP-2.7.1-XXX S.r.l. XXX</ns1:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get>
<ns1:serviceSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="ns1:Selector">
<ns1:fields>Id</ns1:fields>
<ns1:fields>Name</ns1:fields>
<ns1:predicates xsi:type="ns1:Predicate">
<ns1:field>CampaignId</ns1:field>
<ns1:operator>IN</ns1:operator>
<ns1:values>60403254</ns1:values>
</ns1:predicates>
<ns1:predicates xsi:type="ns1:Predicate">
<ns1:field>Status</ns1:field>
<ns1:operator>IN</ns1:operator>
<ns1:values>ENABLED</ns1:values>
</ns1:predicates>
<ns1:ordering xsi:type="ns1:OrderBy">
<ns1:field>Name</ns1:field>
<ns1:sortOrder>ASCENDING</ns1:sortOrder>
</ns1:ordering>
</ns1:serviceSelector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 30 Nov 2011 09:53:16 GMT
Expires: Wed, 30 Nov 2011 09:53:16 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 307
Server: GSE
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v201109">
<requestId>0004b2f0b4696d900a11391100002df3</requestId>
<serviceName>AdGroupService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>441</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns="https://adwords.google.com/api/adwords/cm/
v201109">
<rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>AdGroupPage</Page.Type>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>
Best,
Francesco