WapForum | No1 Online Public Forum
How To Add Adsense Ads Inside Blogger Blog Posts - Printable Version

+- WapForum | No1 Online Public Forum (https://wapforum.com.ng)
+-- Forum: Webmaster (https://wapforum.com.ng/Forum-webmaster)
+--- Forum: Blogging Tricks & Tips (https://wapforum.com.ng/Forum-blogging-tricks-tips)
+--- Thread: How To Add Adsense Ads Inside Blogger Blog Posts (/Thread-how-to-add-adsense-ads-inside-blogger-blog-posts)



How To Add Adsense Ads Inside Blogger Blog Posts - mrfash - 13-07-2019

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
<code> <data:post.body/></code>
Now Replace the above code with the below code,




<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"></code>

<!-- 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.

Source------- https://bloggersng.com/how-to-add-adsense-ads-inside-blogger-blog-posts/