Deprecation of the default namespace in the AdSense Management API

112 views
Skip to first unread message

Jose Alcérreca (AdSense API Team)

unread,
Feb 27, 2014, 7:13:35 AM2/27/14
to adsen...@googlegroups.com
TL;DR Projects using the AdSense Management API should now check for accounts with multiple AdSense/AdX accounts and let users pick instead of using the default namespace, as it will be disabled for some accounts.

API users with access to more than one AdSense or AdX accounts will receive an error when using the default namespace due to cases of ambiguity. We expect a very small percentage of users to have this problem, as this functionality is restricted to a limited set of accounts.

To avoid complications, make sure you're not using the default account namespace adclients.list, adunits.getAdCode, etc. and specify an account ID for every call. For that, use accounts.adclients.list, accounts.adunits.getAdCode, etc. You’ll find the whole list of calls in the API reference pages.

The flow you should always use from now on is:
- Authenticate
- Call accounts.list
- Show a publisher account picker if there's more than one account
- Do the rest of the requests using the account ID

If you have questions about this change or need help with updating your code, you can reply on this thread.

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
Reply all
Reply to author
Forward
0 new messages