How to place ads in the middle of Blogger blog post?
Placing an AdSense ad in a Blogspot blog is a bit difficult but if you take a little care then it becomes easy. In this article, I will tell you how to add ads in the middle of a blogger's blog post? Placing ads in the middle of blog posts gives a high CTR, which also increases earnings. So let us know how to Place Adsense Ads in Between (Middle) of Post in Blogger.
There are many plugins to place ads in WordPress posts but placing ads in a Blogspot blog is a bit difficult or tricky part, you can place ads in Blogger posts by using some tricks.
Generally, to place an ad in Blogger, one has to manually insert the Adsense ad code in every post, in which bloggers sometimes face problems, placing an ad in the post every time makes the mind nervous.
If you adopt some tips & tricks then you can place ads simultaneously in all the posts of bloggers like the above post, the below post, the bottom of the post and the middle of the post.
How to place AdSense Ads in the post middle of a Blogger Blog?
<div id='jobmiddlenew'>
<data:post.body/> </div>
<b:if cond='data:blog.pageType == "item"'>
<style> #addcodemiddle{display: none;} </style>
<div id='addcodemiddle'> Place Your Ad Code Here </div>
<script type='text/javascript'> var str1=document.getElementById("jobmiddlenew").innerHTML; var str2=str1.length; var str3=str2/2; var substr = str1.substring(str3, str2); var n = substr.search("<br>"); if(n<0) { n = substr.indexOf('.'); if(n<0) { n=0; } var firsthalf = str1.substring(0, str3+n+1); var secondhalf = str1.substring(str3+n+1, str2); } else { var firsthalf = str1.substring(0, str3+n+4); var secondhalf = str1.substring(str3+n+4, str2); } var addcode="<center>"+document.getElementById("addcodemiddle").innerHTML+"</center><br/>"; var newbody=firsthalf+addcode+secondhalf; var strnew=document.getElementsByClassName("post-body entry-content"); strnew[0].innerHTML=newbody; document.getElementById("addcodemiddle").innerHTML=""; </script>
</b:if>
Good