I was surfing PPP Random 10 the other night and chanced upon Tek-Works.com who also writes a SEO blog call SEO and Marketing Review .
I often found it annoying to see all sorts of irrelevant Google Adsense on my blog. For example, I keep getting this Cat’s urine ad on it. On a food blog! Normally, I use Competitive Ad Filter on Google Adsense to filter out those ads I do not want to see. But it gets tiring because I have almost utilised all the numbers allocated. Before I go on, I did an experiment and took away my list of competitive ad filter and inserted this codes from Tek-Works. So far, so good. No decrease on my adsense income. And maybe a bit increase? Not very sure about that, of course.
So, hope over to Tek-Works.com and learn the trick to get your ads targetted according to the keywords in your post and not any of the keywords on your plugins, sidebar, comments etc.
This is part of what Tek-Work.com said in the post WordPress and Google Adsense:
The way to stop Adsense from seeing everything on your page and just the relevant data is to add a small strip of code to your template.
These are the before and after codes:
(the code won’t show on my blog here, so hop over to the original post)
In your index, single post and anyother page template that has a post in it, add the first piece of code before where the post starts and then the second where it ends.
I like discovering new blogs and added Tek-Works.com to my sidebar already. Thanks Tek-Works. Simple explanation like yours make non-techie people like me very happy. :P
BTW, maybe you guys already knew about this, but it is new to me. So.
7 thoughts on “Neat code to to add and make your Google Adsense more relevant”
KennyP
(May 13, 2007 - 11:04 pm)Why don’t you show the code here? :D
lilian
(May 14, 2007 - 12:16 am)Kenny – Cos I dunno how. I typed in, it disappeared on the published post.
papajoneh
(May 14, 2007 - 3:18 am)Thanks again Lilian. Great stuff. I should have come to this blog for more great info earlier. From now on, it will be in the Feeds.
For info, it does not displayed becoz of the coding of php language.
the “
papajoneh
(May 14, 2007 - 3:22 am)See, it cannot be displayed..LOL. I tried but cannot too. but you can, using the
<!-- google_ad_section_start -->
<!-- google_ad_section_end -->
Let see whether this displayed correctly. :)
papajoneh
(May 14, 2007 - 10:22 am)Lilian, u can try this http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/
I hope it can help ;)
Andrew Ooi
(May 14, 2007 - 11:15 am)Lilian: It can be shown because it is HTML comments. Invisble to the web browser.
HTML comments start with
papajoneh : It’s not PHP code but just HTML. I know because I’m a PHP programmer :)
Anyway, Lilian, I “curi” your problogger theme and found the code already embedded in that theme for the pages index.php, pages.php and single.php. Looks like Tim Yang already thought of that when he wrote it.
papajoneh
(May 14, 2007 - 11:24 am)thanks andrew… somewhere along the coding. I can’t differentiate between css or php or html… but the included address can solved that. I’ve known this coding problem long time ago but with the attached address, should be easy to understand. Sorry Lilian. i hope i didn’t confused you.
Comments are closed.