List and create AdSense ad units using Google API.
Anyone knows how to do this?
Thanks!
As an AdSense publisher with regular AdSense account, you can't use AdSense for Host API.
AdSense Host API is for host partner websites (Blogger, WebAnswers, DocStoc, etc.) and it enables site-owners to share revenue with their users.
https://developers.google.com/adsense/host/featuresbenefits https://developers.google.com/adsense/host/become-a-host#eligibility
You can use AdSense Management API adsense.accounts.adunits.list
to retreive the list of your units. (But, you can't create new units with Management API.)
https://developers.google.com/adsense/management/v1.4/reference/accounts/adunits/list