authenticate with live account, make API call with sandbox account

84 views
Skip to first unread message

Group Participant

unread,
Dec 13, 2012, 9:34:39 PM12/13/12
to adsen...@googlegroups.com
I was told this by email.

If you just need to run some quick tests, you can use the same developer credentials you already have, but authenticate with your real, live account. That should give you access to all the functionality, on your live account.

Read: authenticate with your live developer account, make API calls with the sandbox developer credentials, access data from your live account, i.e. live data.

Issue the first, doing this always returns a 403 error.

Then, something that just doesn't make sense, if this is able to be done, doesn't that suggest that any developer account can be used for authentication by any other developer?  My live account and sandbox account have no apparent relation that would allow access to each other; they seem to be distinct accounts (the associated emails are different and I don't see any other commonalities).  Why is it possible for developer A to authenticate with developer B's account?

Lastly, if live data can be revised using this roundabout method and the live account is only needed for authentication, what reason does one have to go through Google's review process to activate v4 on the live account?

Jose Alcérreca (AdSense API Team)

unread,
Dec 17, 2012, 6:47:21 AM12/17/12
to adsen...@googlegroups.com
Hi there,

You'll need your developer credentials to query the host API and an AdSense account to act as the publisher.

In order to access publisher data, an Association has to be performed. If you try to access someone else's data, you'll get a 403.

My guess is that you're using your live data IDs but you haven't associated the account.

About your last note: you'll be able to access data but you can't show ads if you're using the host API from a sandbox account. That means that you'll receive empty reports but it's handy in order to check for implementation errors, create ad units, channels, etc.

Cheers,
Jose

---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers .google.com/adsense

Group Participant

unread,
Dec 18, 2012, 1:06:46 AM12/18/12
to adsen...@googlegroups.com
You'll need your developer credentials to query the host API and an AdSense account to act as the publisher.

The AdSense account to act as the publisher in this case being the live development account?


In order to access publisher data, an Association has to be performed.

This is done by logging in to Google as the live development user, then going through the Adsense Host signup process for the sandbox account?  If this assumption is correct, I'm imagining the live development account will be associated as a publisher with the sandbox development account.
 
2012年12月17日月曜日 20時47分21秒 UTC+9 Jose Alcérreca (AdSense API Team):

Jose Alcérreca (AdSense API Team)

unread,
Dec 19, 2012, 6:42:48 AM12/19/12
to adsen...@googlegroups.com
Hi,

"Developer" and "host" roles are different things, we put them on the same sandbox account for convenience. There is no "developer sandbox account".

Correction to my previous post: a sandbox host account can only be associated to a sandbox publisher account. 

If you want to use your live account you'll be able to create channels and report on the host's performance, but not on the publishers': No publisher ad units will be seen from the host.

Cheers,
Jose


---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers .google.com/adsense


Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages