Header Ads Widget

ad728

How to Put Adsense Code in Blogger Post Body

 I will show you How to Put Adsense Code in Blogger Post Body. do you want to increase your incomes revenue to extend your click rate, follow this Tutorial.


There Are the Following Steps:-

Step 1: Login to your blogger account and select the blog you want to edit.
How to Put Adsense Code in Blogger Post Body

Step 2: Go to Theme and click on Edit HTML. 
How to Put Adsense Code in Blogger Post Body
Step 3: Press Ctrl+F from the keyboard to open a search bar.

How to Put Adsense Code in Blogger Post Body
Step 4: Now search <data:post.body/> code and replace this code in your template with the below code.

Note: Inside of your template, you will find <data:post.body/> code multiple time depending on the template used, try one by one until the ad appears on the article page. 
How to Put Adsense Code in Blogger Post Body
<div expr:id='"mad1" + data:post.id'/>
<div style="margin:20px auto;text-align:center;overflow:hidden;">
<!-- Add your ad code here -->
</div>
<div expr:id='"mad2" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>
varobj0=document.getElementById(&quot;mad1<data:post.id/>&quot;);varobj1=document.getElementById(&quot;mad2<data:post.id/>&quot;);vars=obj1.innerHTML;vart=s.substr(0,s.length/2);var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
Customize: Replace <!-- Add your ad code here --> with your Adsense or other any kind of ad code.

Step 5: Click on Save theme and see the result.

I hope you enjoy this post and the photos. How to Put Adsense Code in Blogger Post Body
Categories:
Similar Videos

0 Comments: