SEO (search engine optimization)
How to Insert In Article Ads in Blogger Post Middle Ads
Show your blogger Post Article Ads show on Middle
Show Articles Middle Ads in Blogger Post: If you want to have more than one AdSense ad in your Blogger post, replace the code below rather than the code of your template.Now open blogger.com and select “Theme”Now click on “Edit HTML”And now Ctr+F search This code <data:post.body/> Your Adsense Code. converts to Prased Adsense Code.
Step Guide
Copy This Code
<b:if cond='data:blog.pageType == "item"'> <div id='blog-target'> <data:post.body/> </div> <div id='blog-content1'> <div style='margin:15px 0;text-align:center;clear:both;'> <!--Place Your Prased Adsense Adcode here--> </div> </div> <div id='blog-content2'> <div style='margin:15px 0;text-align:center;clear:both;'> <!--Place Your Prased Adsense Adcode here--> </div> </div> <div id='blog-target'> <script type='text/javascript'> function insertAfter(addition,target) { var parent = target.parentNode; if (parent.lastChild == target) { parent.appendChild(addition); } else { parent.insertBefore(addition,target.nextSibling); } } var adscont = document.getElementById("blog-content1"); var target = document.getElementById("blog-target"); var linebreak = target.getElementsByTagName("br"); if (linebreak.length > 0){ insertAfter(adscont,linebreak[2]); } </script> <script type='text/javascript'> function insertAfter(addition,target) { var parent = target.parentNode; if (parent.lastChild == target) { parent.appendChild(addition); } else { parent.insertBefore(addition,target.nextSibling); } } var adscont = document.getElementById("blog-content2"); var target = document.getElementById("blog-target"); var linebreak = target.getElementsByTagName("p"); if (linebreak.length > 0){ insertAfter(adscont,linebreak[2]); } </script> </div> </b:if> <b:if cond='data:blog.pageType == "static_page"'><data:post.body/></b:if>
Show Articles Middle Ads in Blogger Post
Note: There can be 2 or 4 or more results for <data:post. body />, you will have to paste and test method by checking all <data: post.body />. In most templates, it works on the third and four results of <data:post.body />.