My advise:
As Gideon is described, process module is a module in order to intervene in the basic (overall) operation of the Q2A. For example, it is used by caching plugin which I am developing now.
Quote:
A process module (requires Q2A 1.5+) can perform any task at specific stages of Q2A's response processing. For example, process modules could provide logging, implement a page cache, change database settings, or perform extra user authentication.
adsense plugin is small widget module. So, more appropriate approach for you would be to intervene in the widget control of Q2A.