Sandbox Error 500 Internal

2 views
Skip to first unread message

EThaiZone

unread,
Jun 2, 2007, 2:14:02 PM6/2/07
to AdSense API Forum
Please check it.

Method Called
method: generateReport
param:
<generateReport>
<report xsi:type="ns4:AFCAggregateReport"
xmlns:ns4="http://www.google.com/api/adsense/v2">
<dateRange>
<startDate>2005-11-11T08:00:00.000Z
</startDate>
<endDate>2006-02-02T08:00:00.000Z
</endDate>
<isPredefined>false
</isPredefined>
<predefinedDateRange>AllTime
</predefinedDateRange>
</dateRange>
<outputFormat>CSV_Excel
</outputFormat>
<unit>Page
</unit>
</report>
</generateReport>

Request
POST /api/adsense/v2/ReportService HTTP/1.0
Host: sandbox.google.com
User-Agent: NuSOAP/0.7.2 (1.94)
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 958

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://
www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/
encoding/" xmlns:impl="http://www.google.com/api/adsense/v2"><SOAP-
ENV:Header><impl:developer_email>sandboxd...@google.com</
impl:developer_email><impl:developer_password>devpass</
impl:developer_password><impl:client_id></impl:client_id></SOAP-
ENV:Header><SOAP-ENV:Body><generateReport><report
xsi:type="ns4:AFCAggregateReport" xmlns:ns4="http://www.google.com/
api/adsense/v2"><dateRange><startDate>2005-11-11T08:00:00.000Z</
startDate><endDate>2006-02-02T08:00:00.000Z</
endDate><isPredefined>false</
isPredefined><predefinedDateRange>AllTime</predefinedDateRange></
dateRange><outputFormat>CSV_Excel</outputFormat><unit>Page</unit></
report></generateReport></SOAP-ENV:Body></SOAP-ENV:Envelope>
Response
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Cache-control: private
Date: Sat, 02 Jun 2007 18:10:53 GMT
Server: GFE/1.3
Connection: Close

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>No client identification was found in the headers.</
faultstring>
<detail>
<ns1:code xmlns:ns1="http://www.google.com/api/adsense/v2">103</
ns1:code>
<ns2:message xmlns:ns2="http://www.google.com/api/adsense/
v2">No client identification was found in the headers.</ns2:message>
<ns3:fault type="http://www.google.com/api/adsense/
v2:AdSenseApiException" xmlns:ns3="http://www.google.com/api/
adsense/v2">
<ns3:code>103</ns3:code>
<ns3:internal>false</ns3:internal>
<ns3:message>No client identification was found in the headers.</
ns3:message>
</ns3:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Fault Code
Fault: 1
Code: soapenv:Server.userException
String: No client identification was found in the headers.
Detail:

adsenseapi-...@google.com

unread,
Jun 4, 2007, 10:57:54 AM6/4/07
to AdSense API Forum
"<ns3:message>No client identification was found in the headers.</
ns3:message>"

This means that the client_id header was not set or perhaps was not of
a recognized format. In this case, I can see that this header was not
set in the requeset.

Cheers,
Justin
Google AdSenes Team

> ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/


> XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/
> encoding/" xmlns:impl="http://www.google.com/api/adsense/v2"><SOAP-

> ENV:Header><impl:developer_email>sandboxdevelo...@google.com</

Reply all
Reply to author
Forward
0 new messages