Advertising

by Philip Greenspun, July 2008

Google Ads

All of the code to add Google ads to static .html pages is in /tcl/ad-html.tcl.

Turning Ads off for one page

Insert <!--AD_NOADS-->

Turning Ads on for one page

Insert <!--AD_INSERTADS-->

Turning Ads on for one directory

Add a glob pattern to the procedure ad_google_ad_patterns.

Amazon Ads

A comment inside the .html file should expand into an Amazon ad or a text link to amazon. The tags below need to be wrapped in !-- and -- (standard HTML comment syntax).

AMAZON_CANON_EOS_SYSTEMexpands into a big ad wrapped in P and CENTER tags


philg@mit.edu