Código para colocar Adsense dentro dos posts do blog

Views:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='adsense-content' style='display:block;margin-bottom: 15px; margin-top: 15px;text-align: center'>
CÓDIGO DO ANÚNCIO
</div>
</b:if> 
<div id='adsense-target'><data:post.body/>
</div>
<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(&quot;adsense-content&quot;);
var target = document.getElementById(&quot;adsense-target&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;);
if (linebreak.length &gt; 0){
insertAfter(adscont,linebreak[5]);
}
</script>
Home Sobre mim Tutoriais Loja de templates Portfólio Fanpage