Skip to content

Results for: google_ad_type

January 09, 2007

Adsense Image Ads + Text Ads = Higher CTR?

Google Adsense stirred probloggers last month when they made a statement about images aligned beside Adsense ads. I thought the Adsense Beautifier plugin was probably the culprit.

So, I got this idea of aligning an image-only ad and text-only ad side by side when I reviewed my photo gallery. Take a look at these screenshot:

Image Ads

To just show image ads, make sure to have this line in your Adsense code: google_ad_type = “image”;

Text Ads

To just show text ads, make sure to have this line in your Adsense code: google_ad_type = “text”;

Basically, you’ll end up with an image ad beside a text ad and there’s no policy against this in the new Adsense TOS. Would love to hear from an Adsense Rep how this one fares with them.

April 10, 2006

Hack your way to better Adsense ad placement

This is a quick tip I’d like to share to those running WordPress with themes that do no have a “single.php” page. The problem with those themes is that whatever ad you paste in the index.php will both appear on the main page and the full entry page. Thus, if you want to use the high performing ad sizes (336×280), it’ll ruin your blog’s layout. Others resort to just using the standard 486×60 or use the comments template instead (which doesn’t completely solve the problem).

If you want your ads to show up just in the full entry page and not in the main page, you will need to do some simple hacking which involves a little PHP:

<?php
if($single)
echo(”
<script type=\”text/javascript\”><!–
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = \”336x280_as\”;
google_ad_type = \”text_image\”;
google_color_border = \”FFFFFF\”;
google_color_bg = \”FFFFFF\”;
google_color_link = \”333333\”;
google_color_url = \”999999\”;
google_color_text = \”333333\”;
//–></script>
<script type=\”text/javascript\”
src=\”http://pagead2.googlesyndication.com/pagead/show_ads.js\”>
</script>
“);

?>

The PHP function if($single) is just a condition that tells the page to show the ads (echo function) only when it is on the full entry page.

Take note of the backslash (\) added just before each double quotes (“) in your original Adsense codes.