How to add AdSense code between Post in blogger

In this post, we will tell you how you can put Google Adsense ads inside your blogger's post, we will also show you how you can show Google ads on all your posts by putting a single advertisement. It is very easy to put Google Adsense Ads in WordPress because you only need a google ads plugin in it, with that plugin you can easily add your ads in all your posts.


But this does not happen in Blogger, you get a separate HTML code in Blogger, you have to paste it in the blog, within your post only then you can show your Adsense ads to your visitors.


Let me tell you that you need HTML code for blogger which Google Adsense provides you, you just have to paste this code inside your post, after paste, you will see that your AIDS post starts showing up.


But let us tell you that it is not easy if you have already posted more than 100 articles on your blogger. Because you have to go to your all posts and paste the AdSense code so that a lot of your time can be wasted.


So here we are going to tell you how you can show Google Aids in all the posts of the blog with just a simple Html code trick. 


There are three methods you can add google ads between posts.


How to add AdSense code between the Post in blogger


First Method to add AdSense code between the post in blogger:

  • First of all, open the blogger website
  • Then sign in and come to your blogger's dashboard
  • Click on the left side, select your blog, and open the blog on which the Adsense code is to be installed.
  • Now open any post on your blog by clicking on that post
  • Now your post is open, click on the left side of the post, and convert it from compose view to HTML view so that you can put your Adsense HTML code in it.
  • Now paste your HTML code below the title of your post, you are done, in a short time, google ads will start appearing in the post.

Second method to add AdSense code between the post in blogger:

  • Open your blogger account
  • Log in to the Blogger dashboard.
  • Look for the blogger theme option then click on it.
  • Then go to the custom template to make a backup of your blog in case you do some mistake and can not get back to your blogger's old theme.
  • Now again Go to Template and take backup your template then click Edit HTML.
  • Now you have open the HTML view page of blogger, now Paste the following code just above the </head>

<script type='text/javascript'>

$(document).ready(function(){

$(&#39;a[name=&quot;more&quot;]&#39;).before($(&#39;#abtadsense&#39;).html());

});

</script>


Now search for <data:post.body/> and paste the following code just below it. 


<b:if cond='data:blog.pageType == &quot;item&quot;'>

<div id='abtadsense'>

<br/>

<center>

Place Adsense Code Here </center>

<br/>

</div>

</b:if> 

That's it, now you have to make some modification to correct working of this code.

Modification:


You have to pass your Adsense code from the HTML encoder tool for its correct working. Just paste your Adsense code in the coder then click the button encode text it will automatically change your text in blogger format.


 And then place that code in place of Place Adsense Code Here.


Third method to add AdSense code between the post in the blogger


This method is easiest if you are using the 2020 blogger template of your blog, by this method you just have to paste your Adsense code in Html and your google ads automatically start showing in all posts.

  • To do this you just have to go to your blogger dashboard
  • Then click on the theme option and go to the template and click on Edit Html.
  • Now you have to press the ctrl + f  button and type in the sidebar <data: post.body />
  • Now Paste your Adsense code above the second <data: post.body /> that will come here. And if you want to show ads below the post, then paste your Google ads code below <data: post.body /> .
  • And keep in mind one thing, you can try the up-down experiment with <data: post.body /> with google ads code within the  <data: post.body />  tag. In case if ads do not appear on your blogger template.

Final words:


If you like our post then do not forget to share it with your friends and also tell your views about this post and subscribe to our blog of new posts so that when we publish a new post, you will be the first to know.

Post a Comment

Post a Comment (0)

Previous Post Next Post