Forum Moderators: martinibuster
You could also set up that if anyone arrives at the printable version without having a referrer from the AdSense variation of the page, they could be automatically redirected to the one with AdSense first.
AdSense is Javascript base. So the method can be also Javascript based.
I load on all my pages a JavaScript with
document.body.onbeforeprint=print_init;
document.body.onafterprint=print_exit;
All pages are based on
<div style=top:left:height:width>
You can in
print_init move the <DIVs> with the AdSense out of the area and move them back at print_exit
Put the Google ads in a div with a class:
<div class="ads">Google code here</div>
Define a stylesheet for print media with:
div.ads { display: none; }
And attach it to your pages with:
<link rel="stylesheet" type="text/css" href="path/to/print.css" media="print" />
Google for: printer friendly pages css.