Sunday, 15 November 2015

// // Leave a Comment

How To Place AdSense Ad Just Below The First Paragrapgh ?

AdSense is the great source of earning money from a blog but there seems to be a major impact on earning due to the placement of ads on different places in the blog. Bloggers keeps on trying different techniques to get more clicks on their ads. You can try many places like headers, inside blog post, bottom of the post, sidebars etc. One of the best place to get more clicks is to put AdSense ad below the first paragraph of your post.

How To Place AdSense Ad Just Below The First Paragrapgh ?


It is not possible to directly put AdSense ad below the first paragraph. You have to make certain changes to avail this feature in your blog. In this post, I will guide you step by step to use this thing on your blog too. Just follow the below steps carefully.

Place AdSense Ad Just Below The First Paragraph

Step 1 : Open your blogger dashbaord. Go to Template  and edit the template in HTML form.

Step 2 : Search for <data:post.body/> using Ctrl+F. You may find it more than once, just stick to the second occurrence.

Step 3 : Now, replace it with the following given code.
             <div id='target'><data:post.body/></div>

Step 4 : Copy and paste the following code just below it.
              <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;content&quot;);
var target = document.getElementById(&quot;target&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;);
if (linebreak.length &gt; 0){
insertAfter(adscont,linebreak[0]);


Step 5 : Add this code above the code given in step 3.
             <b:if cond=’data:blog.pageType == &quot;item&quot;’>
<div id='content'>
Adsense code placing center
</div>
</b:if> 

Step 6 : Replace the red text with your AdSense ad code.

Step 7 : Save the template and that's it. You are done.

Congrats !! You have successfully added the AdSense ad below the first paragrapgh of your every post.

I hope you liked this guide on adding AdSense ad below the first paragraph. If you faced any problem or have any confusion in any of the above steps then feel free to ask in the comments below. I will be happy to help you.
Thanks for reading