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>