AdSense Ads In Middle of The Post in Blogger

Views:
AdSense Ads In Middle of The Post in Blogger


How To Place AdSense Ads In Middle of The Post in Blogger-Any Template Work Around Method
Placing AdSense ads in the middle of all the posts will give a high CTR which eventually increases earnings. In word press, there are customized plugins available for placing ads in the middle of the posts. But in case of the blogger, it is somewhat tricky part to place AdSense ads in the middle of all the posts. We have developed a script which can place AdSense ads in between the post exactly in the middle of the content or where you want to show the Ads.

We can manipulate the location of the ads to be displayed by adding a script inside the template and using a tag inside our post to where we want the AdSense ad to appear. Once added, we can place the ads anywhere, be it between paragraphs or in the middle of the content etc.

The process of inserting script into your template is quite easy Just follow these steps



Adding AdSense Ads in the Middle or Anywhere inside Blogger Posts
Before proceeding, it is recommended to back up your template; I hope you know how to back up your template but still I am writing the process for those who still don’t have any idea:
Go to "Template" and click on the "Backup/restore" button to save a copy on your PC hard drive/ Pen drive.
Now, your template is backed up and we are ready to proceed.
Adding the script
Step 1. First thing we need to do is to parse the AdSense code and convert it to plain text. Then go to "Template", click on the "Edit HTML" button and click anywhere inside the code area to search using CTRL + F keys for this tag:
<data:post.body/>


Step 2. Replace <data:post.body/> with this code:


" <div expr:id='"adsmiddle1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<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> "


<!-- Add here the code of your ad -->
annotation, then save the changes by clicking on the "Save template" button. 

Note: For centering the ads, add the <center></center> tags before and after the AdSense code, like this
==
" <div style="clear:both; margin:10px 0">
<center> 
<!-- Add here the code of your ad -->
</center>
</div> "



Step 4. When you create a New Post, add this annotation inside the "HTML" section to where you want the Google AdSense ads to appear:
<!-- adsense -->


So this is the easy steps by following which you may know, how we can add AdSense ads in the middle or anywhere inside our Blogger posts. Don't worry about violating the Google's Terms of Service because applying this method will not modify the ad' structure.
المقال التالي المقال السابق
لا تعليقات
إضافة تعليق
رابط التعليق