If you want to make money with Google Adsense and want to minimize your visitor's annoyance, you can use the following trick:
Many of the more advanced Internet users have javascript disabled (or blocked on your site if it's not vital). Usually they see an empty Box titled "ads" or the like.
You can avoid this by printing the frame or box using javascript.
An example: On my site the source code looked like this:
<div class="sideBox RHS">
<span>Ads</span>
<script type="text/javascript"><!--
google_ad_client = "pub-3564070552657348";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQicPz_gEaCCtDYGucRVo4KKGJ4YcB";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
To avoid annoyance to visitors with disabled Javascript I modified it to look like this:
<script type="text/javascript"><!--
document.writeln("\<div class=\"sideBox RHS\"\>");
document.writeln("<span>Anzeigen<\/span>");
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-3564070552657348";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQicPz_gEaCCtDYGucRVo4KKGJ4YcB";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript">
document.writeln("\<\/div\>");
</script>
Now that <div> that encloses the will only be
seen if the user has enabled javascript.
It is important not to modify the AdSense code, only to wrap it intelligently. A modification would violate Google AdSense's Terms of Service.
top