How To Add Adsense Ads In Middle Of Post On Blogger

Join AchCodeTech Telegram Channel For your latest free Network cheat, Tech news, Andriod Tips, Blogging Tips and many more by clicking HERE

Check out the REASONS why you should always comment on posts HERE

How To Add Adsense Ads In Middle Of Post On Blogger

I know you’ve been searching for how to add AdSense ads in middle of your blog on blogger. I remember those days when my blog used to be on blogger/blogspot it wasn’t easy cos one had to always be working on template every now and then. I actually enjoyed using blogger.

Even though i still got vast knowledge of blogger and I’d be helping fellows who are still on blogger with some tutorials to guide and make blogging easy for them.

Yeah I’d be showing you guys how to add AdSense codes in middle of post on Blogger. It’s not really as difficult as you guys think, when I did it on my blogger blog, I was just like “wow, so this stuff is even easy”. The thing is if you’re on WordPress, you don’t have to go through all these stress all you have to do is install a plugin, insert your AdSense codes and you’re done. To do so, follow the guide below:

How To Insert Ads into Middle of Post Content
How To Insert Ads into Middle of Post Content

Adding AdSense codes into Blogger template
First of all backup your template before you make any changes.

1. Now search for this code <data:post.body/> in your Blogger template and replace it with the code below –
<div id="PostBody"><data:post.body/></div><div id="AdCode"><div style='margin:5px 0;text-align:center;clear:both;'><!-- Ad Unit Code Here --></div></div>
Most times you’d find this code appearing more than once like 2 or 3 times. We’ve found out that the 2nd one is most times the right code
2. Now search for closing </body> tag and put the code below above it.
<b:if cond='data:blog.pageType == &quot;item&quot;'><script>$AdCode = $("#AdCode").html();$("#PostBody br:lt(1)").replaceWith($AdCode);$("#AdCode").remove();</script></b:if>
3. Save the changes you’ve made in Blogger and watch your AdSense ads appear in the middle of your blog posts.
Join AchCodeTech Telegram Channel For your latest free Network cheat, Tech news, Andriod Tips, Blogging Tips and many more by clicking HERE

Check out the REASONS why you should always comment on posts HERE

Author Image

About Afolabi Achiever
AchCodeTech is a site about Trending Tech, Network News, Technology News, Blogging Tip, Android Tips, Games

1 comment:

  1. Thanks admin for the informative and well written article

    ReplyDelete

Powered by Blogger.