You should refer to the AdSense Policy guide
to check what use cases are supported by AdSense. Based on your description, it sounds like the relevant information is under the "Ad placement" section. Specifically, "Google ads, search boxes or search results may not be integrated into a software application (does not apply to AdMob) of any kind, including toolbars."
If you have further AdSense product and/or policy questions, the best place to get answers is the Google AdSense Help Community
. This forum is for technical questions related to the AdSense Management API and the AdSense Host API.
Donovan McMurray, AdSense API Team