How to put adsense code in blogger post body template
Table of Contents
Best pacement adsense can increase CTR (Click through rates) so they try to different placement to get for targeting adsense revenue from adsense google product have. Many people follow the heat map placement adsense area that many people are most clickuer on blog an website, trying place adsense ads inside the content for more clicks whatever in the midle posting, above post title or below contents you can test, placement adsense on every content like news, forum and blog are different based by google said.
This how to put ads adsense code inside of blog post blogger blogspot, everywhere you like in google blogger templates on your article, Google earn money from visitor that click your ads banner or ads link, it can increasing adsense revenue.
Parse your adsense code here so not contain pop up error when editing or uploading template. Put and paste adsense ads code you have parser in "ads code" and Copy code above, removing <data:post.body/> in blogger template paste in. 1st <data:post.body/> for mobile and 2nd for desktop.<div expr:id='"adstarget1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<div style="clear:both; margin:10px 0">
Adsense code
</div>
</b:if>
</b:if>
<div expr:id='"adstarget" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adstarget1<data:post.id/>");
var obj1=document.getElementById("adstarget<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>
This code work just puting <--adsense--> in article post. This meant that where you put <--adsense--> ads will view. If you not put it adsense will view in the bellow post title of blogger. You can change <div style="clear:both; margin:10px 0"> for left use <div style="float:left"> or right using style <div style="float:right">
Thanks Guy for reading.
Post a Comment