How To Add Adsense Ads Inside Blogger Blog Posts

Reliable Web Hosting in Nigeria by DomainKing.NG

How To Add Adsense Ads Inside Blogger Blog Posts

Adsense which is only the highest paying ads program for blogger and webmaster.  There are several policies of Adsense program that you cannot put more than 3 ad units on a particular page.
So, the placement is too necessary for high CPM and more clicks. But  there are a few bloggers who are not able to add Adsense ads code anywhere on the blogger due the lack of knowledge of coding.

How to

1.  Log in to your blogger account

2.  Go to  Dashboard > Template > Edit Template.

3.  Now, find out    <data:post.body/>  Now Replace the above code with the below code,

 

         

<div expr:id='"adsmiddle1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0">

<!-- Add here the code of your ad -->

</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<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>

Customization :- Replace the  your adsense code here with the ADSENSE CODE .

4. Now, Save  your template .

5.  Now, when you will make a blog post, then add the below code where you want in HTML  area of blog post

<!-- adsense -->  

6. Now you have done. See below picture.

How To Add Adsense To Blogspot Blog Posts

                          

Read Also:  How to Build an Online Community Around Your Blog? A Step by Step Guide!

6 Comments

  1. johndik July 14, 2019
  2. mrfash July 14, 2019
  3. Murtala Muhammed August 4, 2019
    • mrfash August 4, 2019
  4. Sally August 19, 2019
  5. Sally August 19, 2019

Leave a Reply

%d bloggers like this: