It’s ok to search your own site with AdSense for search, but…

Many bloggers and site owners have Google Adsense for Search installed on their blogs. This ensures that you can provide relevant results to your blog users while simultaneously making some money on the side. While, there is no issue with other users using the search box, however, the question arises on the legality of you using the same.