Monday, February 14, 2011

How to Place AdSense Ads in the Middle of Blogger Posts


In normal cases all blogger users can put the adsense block at the top of the post or at the bottom Only.
but the problem here is that alot of bloggers don’t get high CTR ( clicks ) by this placement,
so they should play with the ads placement,
the best solution here is to put you google ads blocks in the middle of the post in your blogspot blog.
and you have to check out Google AdSense heat map
blogger don’t offer this option by default settings, so you have to be tricky to do it,
here is easy and fast way to do it.

How to place Adsense in the middle of Blogger posts:

The solution to this problem is quite simple: you only need to move the post body around the advertising code, just with a bunch of JavaScript and a couple of DIVs (divisions). All it takes are 2 easy steps:

1. In your Blogger template: Dashboard –> Layout –> Edit HTML –> Expand Widget Templates

Find the tag <data:post.body/> and replace it with the 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>

IMPORTANT NOTICE: Do not forget to replace <!-- Your AdSense code --> with the ad code provided by Google Adsense. Also, the ad code needs to be converted
before you can insert it.

2. In every blog post:

Place the special comment
<!—adsense -->
 
in the exact spot you want the Adsense ads to appear.



2 Comments:

Unknown said...

I read you post just now and I would like to thanks you for this post because of for this useful post about Google Adsense Training as it is a best revenue-sharing opportunity for small, medium and large websites.

Unknown said...

Thanks for this small though useful post about Google Adsense Training.

Post a Comment