Hack your way to better Adsense ad placement

Listen to article

Daytoy ti maysa a naipangruna a panunot a kayatko a ibaga kadagiti agturong iti Wordpress nga addaan dagiti tema a saan a addaan iti "single.php" a panid. Ti problema dagitoy a tema ket, no ania man a ad a pasetenyo iti index.php, daytoy ket mapagpaganakanna met laeng iti main page ken iti full entry page. Ta, no kayatmo nga agusar kadagiti naipangruna a sukat ti ad (336x280), masapulna ti layout ti blogyo. Dagiti sabali a nagtultuloy ket agusar laeng iti standard a 486x60 wenno agusar iti comments template (nga saan a maysa a nasayaat nga solusion).

Kanayon nga sursurokmo ayo ti admo a makita laeng iti bukod a panid ti artikulo ken saan idiay pangunay a panid, masapulmo a mangaramat kadagiti simpla a hacking a mangiraman iti kaaduan a 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>
");

?>

echo function) laeng no adda daytoy iti full entry page.

Isurat ti nasayaat a panangipalubong iti backslash (\) a naikkat babaen kadagiti dua a panagsilpo (") iti imatang nga Adsense kodigo.

React to this article:
Written by
Abe Olandres

Abe Olandres

Editor-in-chief

Abe is the founder and Editor-in-Chief of YugaTech with over 20 years of experience in the technology industry. He is one of the pioneers of blogging in the country and is considered by many as the Father of Tech Blogging in the Philippines.

View all posts by Abe Olandres →

10 Comments

T2
t2ZK5NKWey · 20 years ago

Hi! Very nice site! Thanks you very much! p1wTH6Z1GFsZh

Reply
ME
mediamaster · 20 years ago

take a look at my blog on adsense. It covers how google javascript works and how you can maximize your ad revenue by behavorial targeting ads. It is a series of tutorial like articals. you comments are welcome.

Reply
MA
markku · 20 years ago

I think the more recent archives earn more than new entries, specifically those around a month old.

Reply
AB
Abe Olandres Editor-in-chief · 20 years ago

I am actually doing a month-long experiment to see if the archives are earning mroe than the current entries. A quick PHP snippet would do the trick, I suppose.

Reply
MA
markku · 20 years ago

This works best in varying the appearance of your entry pages. I think we should compile more adsense tricks. ;)

Reply

Leave a Reply

Loading next article...