How To Put Your Adsense In The Middle of The Post

How to SEO your ads,want to make more money by your blog,There is a way is Puting Your Adsense In The Middle of The Post, There is a simple way to solve this problem: move post body around the advertising code, just with a bunch of JavaScript , a couple of DIVs, a wordpress plugins-AdMan . Ok Let’s Go

In your Blogger template: In 2 easy steps:

FOR OLD BLOGGER

Find the tag <$BlogItemBody$> and replace it with following code:

<div id=”prv<$BlogItemNumber$>”></div>

<div style=”clear:both;margin:10px 0″>

<!– Your AdSense code –>

</div>

<div id=”fst<$BlogItemNumber$>”>

<$BlogItemBody$>

</div>

<script type=”text/javascript”>
var obj0=document.getElementById(“prv<$BlogItemNumber$>”);
var obj1=document.getElementById(“fst<$BlogItemNumber$>”);
var s=obj1.innerHTML;
var r=s.search(/\x3C!– adsense –\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}

 

FOR NEW BLOGGER

Find the tag <data:post.body/> (you must check Expand Widget Templates in Blogger console) and replace it with following code:

<div expr:id=’”aim1″ + data:post.id’></div>

<div style=”clear:both; margin:10px 0″>

<!– Your AdSense code here –>

</div>

<div expr:id=’”aim2″ + data:post.id’>

<data:post।body/>

</div>

<script type=”text/javascript”>
var obj0=document.getElementById(“aim1<data:post.id/>”);
var obj1=document.getElementById(“aim2<data:post.id/>”);
var s=obj1.innerHTML;
var r=s.search(/\x3C!– adsense –\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>

Note that you must replace <!– Your AdSense code –> with block code provided by Google.

wordpress plugins-AdMan : Put the ads either come before your content, or after your content, or in your sidebar. But never directly mixed with the content.

Download: AdMan (latest version)

Installation: Just download the above link and unzip it in your wp-content/plugins . Don’t forget to visit Options/Adman in your admin panel. That’s it!

Comments

  1. Do you use the wordpress plugins-AdMan??

  2. Sorry! If you have test the “FOR OLD BLOGGER” and “FOR NEW BLOGGER” But it’s not Success. I can’t help you do more. If you are use WordPress, so I can help you. I know the WordPress!