add adsense on posting blog

15 March 2010

Posted by gumbung on 3:25 PM

After get the adsense code, coverted / parse with xhtml code, you can put adsense on the blog post. placing adsense on posting can increase CTR of your blog. her way to do it. from blogger dasboard click layout > edit html > expand template widget.

find this code


click here


[SPOILER CONTENT]

<p><data:post.body/></p>


example


click here

[SPOILER CONTENT]

<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/>
<a expr:href='data:post.url'><strong>readmore...</strong></a></p>
</b:if>



add adsense code like this


click here


[SPOILER CONTENT]


<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>

<br /> <br />
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--

google_ad_client = &quot;pub-xxxxxxxxxxx&quot;;

google_ad_slot = &quot;0123456789&quot;;
google_ad_width = 480;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt; &lt;/script&gt;

<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/>
<a expr:href='data:post.url'><strong>Selengkapnya...</strong></a></p>
</b:if>


if you placed above from this code <p><data:post.body/></p> , adsense will appear below the post title.



if you placed below, it will appear at the bottom from your post.