Problem with generating reports

3 views
Skip to first unread message

Aleksandar

unread,
Jul 1, 2009, 4:50:28 AM7/1/09
to AdSense API Forum
Hi

I'm having problems generating performance reports for the test
publisher account.
I get the following error: "An internal error has occurred. Please
retry your request."

Here is the request:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.google.com/api/adsense/v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:developer_email SOAP-ENV:actor="http://
schemas.xmlsoap.org/soap/actor/next">adsensed...@google.com</
ns1:developer_email>
<ns1:developer_password SOAP-ENV:actor="http://
schemas.xmlsoap.org/soap/actor/next">Q6R3l6a483</
ns1:developer_password>
<ns1:client_id SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/
actor/next">ca-pub-1744271982572164</ns1:client_id>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:generateReport>
<report xsi:type="ns1:AFCAggregateReport">
<dateRange>
<endDate>0</endDate>
<isPredefined>true</isPredefined>
<predefinedDateRange>
<value>AllTime</value>
</predefinedDateRange>
<startDate>0</startDate>
</dateRange>
<outputFormat>
<value>CSV_Excel</value>
</outputFormat>
<unit>
<value>Page</value>
</unit>
</report>
</ns1:generateReport>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


... and the response:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>An internal error has occurred. Please retry
your request.</faultstring>
<detail>
<axis2ns34:AdSenseApiExceptionFault
xmlns:axis2ns34="http://www.google.com/api/adsense/v3">
<AdSenseApiException>
<code>0</code>
<internal>true</internal>
<message>An internal error has occurred.
Please retry your request.</message>
<trigger>
</trigger>
<triggerDetails>
</triggerDetails>
</AdSenseApiException>
</axis2ns34:AdSenseApiExceptionFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>



Is there something wrong with my request or is it a problem in
sandbox?

Thanks

Aleksandar

unread,
Jul 6, 2009, 3:33:20 AM7/6/09
to AdSense API Forum
OK, I figured it out. This request works when I send empty strings as
values for startDate and endDate.
So, if anyone needs it, this request works:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.google.com/api/adsense/v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:developer_email SOAP-ENV:actor="http://
schemas.xmlsoap.org/soap/actor/next">adsensed...@google.com</
ns1:developer_email>
<ns1:developer_password SOAP-ENV:actor="http://
schemas.xmlsoap.org/soap/actor/next">Q6R3l6a483</
ns1:developer_password>
<ns1:client_id SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/
actor/next">ca-pub-1744271982572164</ns1:client_id>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:generateReport>
<report xsi:type="ns1:AFCAggregateReport">
<dateRange>
<endDate>
</endDate>
<isPredefined>true</isPredefined>
<predefinedDateRange>
<value>AllTime</value>
</predefinedDateRange>
<startDate>
</startDate>
</dateRange>
<outputFormat>
<value>CSV_Excel</value>
</outputFormat>
<unit>
<value>Page</value>
</unit>
</report>
</ns1:generateReport>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>





Anyway, there is still no report data for the test publisher. Hoping
it will be sorted soon.

Aleksandar





On Jul 1, 10:50 am, Aleksandar <aleksandar.bozino...@gmail.com> wrote:
> Hi
>
> I'm having problems generating performance reports for the test
> publisher account.
> I get the following error: "An internal error has occurred. Please
> retry your request."
>
> Here is the request:
>
> <SOAP-ENV:Envelope
>         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>         xmlns:ns1="http://www.google.com/api/adsense/v3"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     <SOAP-ENV:Header>
>         <ns1:developer_email SOAP-ENV:actor="http://
> schemas.xmlsoap.org/soap/actor/next">adsensedevelop...@google.com</
Reply all
Reply to author
Forward
0 new messages