how to insert ads in blogger post | How To Place Adsense Ads In Middle of The Post

Google introduced new kinds of native ads for its publishers to increase revenue and a good user experience. According to Google, these native kinds of ads can increase AdSense revenue by 60%. But as per our experience, we’ll advise placing “Text and Image” type of AdSense Ads for better results.

But here, you can add any ad unit using our code provided below to implement ads in the middle of a Blogger blog. Just copy the provided code, change ad unit values and place it as suggested in this article.

how to insert ads in blogger post | How To Place Adsense Ads In Middle of The Post


Placing adsense ads in middle of all the posts will give a high CTR which eventually increases earnings. In word press, There are customized plugins available for placing ads in middle of the posts. But in case of blogger it is some what tricky part to place adsense ads in middle of all the posts. We have developed a script which can place adsense ads in between the post exactly in the middle of the content. The procedure for placing adsense ads in middle of  the posts in blogger is shared below.

Place Adsense Ads Automatically In Middle of All The Posts In Blogger:

Follow The below process to place adsense ads in Middle of all the posts automatically in blogger.

Step 1:

Login to Your Blogger Account

Go to Template >Edit HTML

Step 2:

Search For Below Code in your template.
<data:post.body/>

You will get multiple codes similar to above code. You have to select the second code which is similar to above code in order to make the script work properly.

Step 3:

Replace The above Code With The Below Code.


<div id='xdflix'>
 <data:post.body/>
</div>
<div id='xdflix-content1'>
<div style='margin:15px 0;text-align:center;clear:both;'> Place Your Ad Code Here </div> </div> <div id='xdflix-content2'>
<div style='margin:15px 0;text-align:center;clear:both;'> Place Your Ad Code Here </div> </div> <div id='xdflix'> <script type='text/javascript'> function insertAfter(addition,target) { var parent = target.parentNode; if (parent.lastChild == target) { parent.appendChild(addition); } else { parent.insertBefore(addition,target.nextSibling); } } var adscont = document.getElementById(&quot;xdflix-content1&quot;);
var target = document.getElementById(&quot;xdflix&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;); if (linebreak.length &gt; 0){ insertAfter(adscont,linebreak[2]); } </script> <script type='text/javascript'> function insertAfter(addition,target) { var parent = target.parentNode; if (parent.lastChild == target) { parent.appendChild(addition); } else { parent.insertBefore(addition,target.nextSibling); } } var adscont = document.getElementById(&quot;xdflix-content2&quot;);
var target = document.getElementById(&quot;xdflix&quot;);
var linebreak = target.getElementsByTagName(&quot;p&quot;); if (linebreak.length &gt; 0){ insertAfter(adscont,linebreak[2]); } </script> </div>

 

Step 4

 
Replace
The Place Your Ad Code Text With Your Adsense Ad Code in the above code and save your template.


Post a Comment

Previous Post Next Post