Debug Headers

2 views
Skip to first unread message

Bargok

unread,
Apr 10, 2008, 10:35:58 AM4/10/08
to AdSense API Forum
Hello,

Debug headers are not functioning properly.
Anyone else experiencing this problem?

Any change this is related to the 'not a valid developer url' ealier
this week?

I have policy review tonight...and now I cannot test..which is very,
very annoying.

Thanks in advance,

adsenseapi-...@google.com

unread,
Apr 10, 2008, 1:22:49 PM4/10/08
to AdSense API Forum
Can you be more specific on what you mean when you say that debug
headers are not functioning? Please describe the behavior you're
seeing in detail and steps to reproduce it.

Cheers,
Justin
Google AdSense Team

Wesley van Opdorp

unread,
Apr 11, 2008, 3:09:58 AM4/11/08
to AdSen...@googlegroups.com
Hi Justin,

debug_headers have always worked:

$debug = "<impl:debug_association_type>Active</impl:debug_association_type>";
               $debug .= "<impl:debug_zip>1234AB</impl:debug_zip>";
               $debug .= "<impl:debug_phone>12345</impl:debug_phone>";

I can verify this has been added in our requests as ive done extensive testing.
The problem lies that getAssociationStatus returns pending.

Hope this helps,


adsenseapi-...@google.com

unread,
Apr 23, 2008, 1:58:22 PM4/23/08
to AdSense API Forum
Wesley,

I have just tried creating a publisher and associating it with my
developer account and it appears to work. Are you still having
issues? If so, it would be helpful if you could post the entirety of
your xml request/response (minus sensitive information, of course).

Cheers,
Wes
Google AdSense Team

Wesley van Opdorp

unread,
Apr 23, 2008, 2:02:16 PM4/23/08
to AdSen...@googlegroups.com
Hello,

First of All, me and bargok are the same person.
To be honest we havnt tested the issue recently since we passed the review the night after posting this ;)
Since a new account was created for the review, i am assuming it was working just perfectly fine!

Warm regards,

Bargok

MrBrian

unread,
May 31, 2008, 1:46:30 AM5/31/08
to AdSense API Forum
I'm getting this same problem. I'm trying to set a newly created
account as NotAssociated, but getAssociationStatus returns 'Pending'
Here is my api call to create the account:

Request

POST /api/adsense/v3/AccountService HTTP/1.0
Host: sandbox.google.com
User-Agent: NuSOAP/0.7.2 (1.94)
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:createAccount"
Content-Length: 1212


<?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:ns0="http://www.google.com/api/adsense/v3">
<SOAP-ENV:Header>
<developer_email>adsensed...@google.com
</developer_email>
<developer_password>xxxxxx
</developer_password>
<client_id>
</client_id>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:createAccount
xmlns:ns1="http://www.google.com/api/adsense/v3">
<loginEmail>oko...@whatever.com
</loginEmail>
<entityType>
<value>Individual
</value>
</entityType>
<websiteUrl>xxxxx.com
</websiteUrl>
<websiteLocale>en
</websiteLocale>
<usersPreferredLocale>en_US
</usersPreferredLocale>
<emailPromotionPreferences>true
</emailPromotionPreferences>
<synServiceTypes>
<value>ContentAds
</value>
</synServiceTypes>
<synServiceTypes>
<value>SearchAds
</value>
</synServiceTypes>
<developerUrl>http://code.google.com
</developerUrl>
<debug_association_type>
<value>NotAssociated
</value>
</debug_association_type>
<debug_phone>12345
</debug_phone>
<debug_zip>12345
</debug_zip>
</createAccount>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Date: Sat, 31 May 2008 05:41:53 GMT
Expires: Sat, 31 May 2008 05:41:53 GMT
Cache-Control: private, max-age=0
Server: GFE/1.3


<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:createAccountResponse
xmlns:ns="http://www.google.com/api/adsense/v3">
<return>
<type>
<value>ContentAds
</value>
</type>
<id>ca-pub-2094408963699681
</id>
</return>
<return>
<type>
<value>SearchAds
</value>
</type>
<id>partner-pub-2094408963699681
</id>
</return>
</ns:createAccountResponse>
</soapenv:Body>
</soapenv:Envelope>

MrBrian

unread,
May 31, 2008, 1:51:02 AM5/31/08
to AdSense API Forum
Disregard this. I found the problem was that the debug wrappers do not
belong in the params, they need to be sent in the headers!

On May 30, 10:46 pm, MrBrian <evilka...@gmail.com> wrote:
> I'm getting this same problem. I'm trying to set a newly created
> account as NotAssociated, but getAssociationStatus returns 'Pending'
> Here is my api call to create the account:
>
> Request
>
> POST /api/adsense/v3/AccountService HTTP/1.0
> Host: sandbox.google.com
> User-Agent: NuSOAP/0.7.2 (1.94)
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "urn:createAccount"
> Content-Length: 1212
>
> <?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:ns0="http://www.google.com/api/adsense/v3">
> <SOAP-ENV:Header>
> <developer_email>adsensedevelop...@google.com
Reply all
Reply to author
Forward
0 new messages