We use an outside system to serve ads on our site. Currently in our header files, we have some js which uses jquery to insert the data to our ad holder which is a div that appears on every page, i.e.
$("#adSpot").prepend('put my ad here');
Our third party ad system just started using Google Ad Server another system to serve ads so now have given us some JS to call. I'd like to use our header files and not have to touch every file but I'm not having luck inserting js that is then executed so:
$("#adSpot").prepend('GA_googleFillSlotWithSize("ca-pub-981", "Page_1", 468, 60)');
Basically, I'd like to use the header file so when the page is loaded, it injects this js code into the div where we want the image placed and then the js is executed so the image will appear in the spot. Now it does push the code to the div but the js isn't executed.
Thanks!