Google uses javascript to at least invoke the ad server, if not to actually serve the ads... I have no idea what's behind their show_ads.js javascript, but it clearly is javascript being called.
Here's a typical adsense call:
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxx";
google_ad_slot = "yyyyyyyyy";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.google
</script>
Main Topics
Browse All Topics





by: dbruntonPosted on 2008-12-14 at 01:56:33ID: 23167161
Well no. You won't do it in javascript. That's client based stuff.
You'll do the ad stuff on the server. You'll have a server that supports one of the scripting languages; don't ask me which one; others will comment on that.
The server/scripting language will increment the ad index every time a request is made for the html page and dish out the correct page.