in reply to Google Adsense ads in a Tk app.

Eww, adware. As moritz suggests, you should check the TOS. If you really want to go this route, you could try JE.

--
In Bob We Trust, All Others Bring Data.