NuSOAP - association - multiple servives

16 views
Skip to first unread message

Florian

unread,
May 21, 2007, 6:35:05 PM5/21/07
to AdSense API Forum
Hi Justin,

I'm the developer of flixya..

In your mail you wrote

"- Associating an account doesn't seem to work, it looks like it
succeeds,
but then where it should show my publisher id, it is blank. I forget
if
you're using PHP and NuSOAP, but if so, be aware that NuSOAP returns
an
object if the SOAP response has only one object, but an array of
objects
if more than one object is returned (eg. if the user is signed up for
multiple services)."

I use NuSOAP with PHP

can you give me a hint for this

when there is only one service I get the adsense-pub-ID in response
$response['associateExistingAccountReturn']['id']

how would the object/array look if there are multiple objects returned
$response[n]['associateExistingAccountReturn']['id']
where n = 0... max-index ?

I could not generate a case where this would happen. When would this
case actually be - if a user has a personal and a business account
with one email-address? Also in that case must the user be promted to
pick one of the accounts?

regards,
Flo

adsenseapi-...@google.com

unread,
May 21, 2007, 8:43:08 PM5/21/07
to AdSense API Forum
Actually, its

$reponse[n]['id'] where n = 0...max-index.

More than one id is returned if the user is signed up for multiple
services, say AdSense for Content and AdSense for Search. This is also
true if you sign the user up for more than one service with the
createAdSenseAccount request.

Cheers,
Justin
Google AdSense Team

Florian

unread,
May 22, 2007, 3:44:57 AM5/22/07
to AdSense API Forum
thanks
Reply all
Reply to author
Forward
0 new messages