Adsense Section Targeting for Bloggers

The purpose of adsense section targeting is to suggest sections of your text and HTML content that you'd like Adsense to emphasize what matching ads to your site's content. It will direct to the relevant ads to be displayed on your website or blog.

You need to add a set of special HTML comment tags to your code in order to take effect. These tags will mark the beginning and end of whichever section you'd like to emphasize or de-emphasize for ad targeting.

You need to insert the code before and after post titles and post content to get relevant ads. See sample below and take note the inserted code mark in red:

ADD THE CODE TO POST TITLE

<b:includable id='post' var='post'>
<div class='post uncustomized-post-template'>
<a expr:name='data:post.id'/>
<b:if cond='data:post.title'>
<h3 class='post-title'>
<b:if cond='data:post.link'>
<a expr:href='data:post.link'><!-- google_ad_section_start --><data:post.title/><!-- google_ad_section_end --></a>
<b:else/>
<b:if cond='data:post.url'>
<a expr:href='data:post.url'><!-- google_ad_section_start --><data:post.title/><!-- google_ad_section_end --></a>
<b:else/>
<!-- google_ad_section_start --><data:post.title/><!-- google_ad_section_end -->
</b:if>
</b:if>
</h3>
</b:if>

ADD THE CODE TO POST CONTENT

<div class='post-body'>
<p><!-- google_ad_section_start --><data:post.body/><!-- google_ad_section_end --></p>
<div style='clear: both;'/>:<!-- clear for photos floats -->
</div>


Leave a comment if you think this post is helpful.




1 comments:

How can i target a particular section of my content? Any idea?

Post a Comment