About addsense Api

1 view
Skip to first unread message

Dharmendra Chaudhary

unread,
Nov 27, 2009, 7:37:56 PM11/27/09
to AdSense API Forum
Hi,
Is there report data associated with the dummy publisher account.
Using the sandbox, I login using my developer email and password and
the clientId "ca-pub-1744271982572164" but I keep seeing the
following
No any error: but data should be not retrieve.

Any help you can offer is much appreciated. Thanks.

dharmendra Chaudhary

unread,
Nov 27, 2009, 8:03:55 PM11/27/09
to AdSense API Forum
Hello Team,
These are the steps i am following
*
1. I have created one account by passing the following values (the
publisher id for this is ca-pub-1744271982572164 )*
Following is the xml
*Request*
POST /api/adsense/v2/ReportService HTTP/1.0
Host: sandbox.google.com
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 955


<?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>
<developer_email>adsensed...@google.com
</developer_email>
<developer_password>Q6R3l6a483
</developer_password>
<client_id>ca-pub-1744271982572164
</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>2009-11-26T08: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 200 OK
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 27 Nov 2009 23:38:59 GMT
Expires: Fri, 27 Nov 2009 23:38:59 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Server: GFE/2.0


<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>

<generateReportResponse
xmlns="">

<ns1:generateReportReturn
xmlns:ns1="http://www.google.com/api/adsense/v2">

<ns1:columnCount>0
</ns1:columnCount>

<ns1:data>
</ns1:data>

<ns1:rowCount>0
</ns1:rowCount>

</ns1:generateReportReturn>

</generateReportResponse>

</soapenv:Body>

</soapenv:Envelope>

Google AdSense API Support Team

unread,
Nov 30, 2009, 5:27:59 PM11/30/09
to AdSense API Forum
Dharmendra,

Due to some technical limitations in the sandbox environment, no data
is returned for the test publisher. We recommend that you save the
reporting portion of your implementation until the rest of it has gone
live. Once you have an account in the production environment,
completing your reporting implementation becomes trivial.

Cheers,
Wes
AdSense API

On Nov 27, 5:03 pm, dharmendra Chaudhary <man.dharmen...@gmail.com>
wrote:
> Hello Team,
> These are the steps i am  following
> *
> 1. I have created one account by passing the following values   (the
> publisher id for this is ca-pub-1744271982572164 )*
> Following is the xml
> *Request*
> POST /api/adsense/v2/ReportService HTTP/1.0
> Host: sandbox.google.com
> User-Agent: NuSOAP/0.7.3 (1.114)
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: ""
> Content-Length: 955
>
> <?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>
> <developer_email>adsensedevelop...@google.com
Reply all
Reply to author
Forward
0 new messages