Adsense, what a great little revenue generating monster. I don’t personally know of anyone that hates it, most love it and typically the only people you hear bitching about it are the ones who have been kicked out of the program for policy violations. As for me personally, I love it because the ads are relevant, non obtrusive and if used properly they can be an excellent additional source of revenue while providing value for my site visitors.
Ideally the ads will show content that is contextually related to whatever I happen to want to write about at that time with no effort on my part above and beyond writing the content itself, but I bet you have all seen sites where you are amazed because the post is about needle point patterns but the Adsense contextual ads that are showing on the page are for WordPress themes or some other items that are in no way related to the content of the page, so you ask how can this happen? Well, it is actually quite easy because Adsense takes a minute or three to come to your site, see what’s on the page and figure out what ads to serve on that particular page and it may have a hard time figuring out exactly what the “guts” of your page is supposed to be, so it will guess and sometimes it could guess wrong.
All you have to do, is specify what content you want your ads targeted for with a simple start and stop code that google provides but most Adsense users never find out about. You simply have to open up your theme files and place this code into the file wherever the content you want your ads to relate to is like so:
at the start of the content section insert this:
<!-- google_ad_section_start -->
and at the end of the content section insert this:
<!-- google_ad_section_end -->
If you wanted to use this on your single.php file (displays single post pages) you could put the start code just before the
<?php if (have_posts()) : ?> line and place the stop code just after the
<?php endif; ?> statement that ends the post content, by doing this you are telling Adsense to look closely at everything between these two codes. You can also add more information to the same code to tell it to ignore sections if you prefer that approach, the start code would simple look like
<!-- google_ad_section_start(weight=ignore) --> instead.
I hope this information is helpful, please post any questions, comments or ideas you have about this topic.