How to put google adsense block in the middle of the post

Posted Posted by ADMIN in , Comments 3 comments


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.

3 comments:

steycough said...

linked here check out this site click for info click site next this website

Anonymous said...

you could try these out www.dolabuy.ru websites dolabuy ysl pop over to this web-site have a peek at this web-site

netoph said...

p6j68u8h64 e2b62n1x86 e4q96a3a55 m4f29c7n53 l9f95j2u64 r2b25d9m34

Post a Comment

sadasdasda