Google adsense ads more display in blogger inner posts automatically, We have developed custom script code for more adsense ads show on blogger post, it's code 100% working for multiple adsense ads display in blogspot posts, your article in should be used html tags example - <br/> tags, <p>..</p> tags, <h1> to <h6> tags etc, basicly this ads code show reading your html tags used in blogger post, if you are not using any html tags in blogger articles, otherwise this code will be not properly work.
You can do multiple adsense ads show in blogger inner post according your post on using html tags, this is the best or simple trick for automatic multiple google ads view in middle all articles.
How to display multiple adsense ads in inside blogger all articles
Steps below do following for insert in article multiple adsense ads in blogspot all posts auto ads showing - 100% code working
- Sign in to Blogger Website.
- Left menu tools, click on theme option.
- Top section on down arrow icon, click on there Edit Html option.
- First do keep backup your theme template.
- Find this code <data:post.body/> in blogspot theme template.
- Open your google adsense ads account .
- Copy your adsense ads unit code for convert in xml format - ads unit code converter here .
- After then adsense ads code copy xml format from coverter tool box.
- We have created below on code three (3) unique div ids names - custom-ads-content1 and custom-ads-content2 and custom-ads-content3 in paste xml format adsense ads code.
- See below on custom script code getElementsByTagName("br") and getElementsByTagName("p") and getElementsByTagName("h3")
we used 3 html elements tags on code br, p, h3 you can do change this elements names according your post design on html tags. - Complete process after then replace below ads code with <data:post.body/> in blogger theme template
- Click on Save button after replaced custom script adsense ads code.
How to adsense ads show in middle blogger single articles between text paragraph
Copy this code -
<b:if cond='data:blog.pageType == "item"'>
<div id='custom-ads-target'>
<data:post.body/>
</div>
<div id='custom-ads-content1'>
<div style='margin:15px 0;text-align:center;clear:both;'>
<!--adsense ads xml format code past here--->
</div>
</div>
<div id='custom-ads-content2'>
<div style='margin:15px 0;text-align:center;clear:both;'>
<!--adsense ads xml format code past here--->
</div>
</div>
<div id='custom-ads-content3'>
<div style='margin:15px 0;text-align:center;clear:both;'>
<!--adsense ads xml format code past here--->
</div>
</div>
<div id='custom-ads-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("custom-ads-content1");
var target = document.getElementById("custom-ads-target");
var linebreak = target.getElementsByTagName("br");
if (linebreak.length > 0){
insertAfter(adscont,linebreak[3]);
}
</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("custom-ads-content2");
var target = document.getElementById("custom-ads-target");
var linebreak = target.getElementsByTagName("p");
if (linebreak.length > 0){
insertAfter(adscont,linebreak[3]);
}
</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("custom-ads-content3");
var target = document.getElementById("custom-ads-target");
var linebreak = target.getElementsByTagName("h3");
if (linebreak.length > 0){
insertAfter(adscont,linebreak[0]);
}
</script>
</div>
</b:if>
<b:if cond='data:blog.pageType == "static_page"'><data:post.body/></b:if>