How to make "who sees Ads" insert code into themes

I am using a different range of themes which do not have the "Who Sees Ads" code by default. How can I make this plugin to insert the ad code before or after all posts without the need to manually insert the code into every theme?