- 24
- Tem

<!� google_ad_section_start �>
� targeted content here �.
<!� google_ad_section_end �>
I think on this blog, since it’s focussed almost exclusively on SEO or Adsense, most ads displayed are of those nature but the code could be very useful for personal blog owners, who normally writes whatever that comes to their mind and usually have lotsa links on their sidebars. Other good candidates for this code would be forums where you can target a specific part of the discussion for the ads to show.
I’ve done abit of research as well to see how it has affected other website owners and these are some of their comments:
Also, before I forget, there’s also an option to ignore parts of the site, this will be particularly useful if you do not want a certain part of your blog/forum/site to be searched for keywords
<!– google_ad_section_start(weight=ignore) –>
…content…
<!� google_ad_section_end �>
So if you’ve decided to try this method, I’ll try to give some pointers on the implementation in blogs and forums but since templates might defer, this is just a general guide:
Wordpress
The easiest way is to install this plugin called “Google Ad Wrap” by John of Urban Giraffe. Activate it and it’ll automatically include all your comments and main post within the tags. No messy code editing.
BlogSpot
In your template, search for the term $BlogItemBody$, then include your tags as follows:
<!� google_ad_section_start �>
<$BlogItemBody$>
<!� google_ad_section_end �>
*Noted from Digital Inspiration.
PhpBB
I’m just showing one example for the topic pages here. For this example, I’m editing the file called viewtopic_body.tpl:
Find:
<a class=“maintitle” href=“{U_VIEW_TOPIC}”>{TOPIC_TITLE}</a>
Replace:
<!– google_ad_section_start–><a class=“maintitle” href=“{U_VIEW_TOPIC}”>{TOPIC_TITLE}</a><!– google_ad_section_end–>
Find:
<td colspan=“2″><span class=“postbody”>{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class=“gensmall”>{postrow.EDITED_MESSAGE}</span></td>
Replace:
<!– google_ad_section_start–>
<td colspan=“2″><span class=“postbody”>{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class=“gensmall”>{postrow.EDITED_MESSAGE}</span></td>
<!– google_ad_section_end–>
That’s it for now, if you want you can tell me if it really works on your site in the comments section!
