Ask HN: How is Kosmix hacking up Google Ads?
https://news.ycombinator.com/item?id=9289041) The ads seem query aware, and AFAIK Google adsense for search comes with its own everything (searchbox + searchresults + ads) and there is no API to simply fetch ads on the query terms. See http://www.kosmix.com/topic/Iphone_Android_Gandhi
2) The ads are embedded into the page, which means they were generated on the server.