How to add In-article ad in 2nd Paragraph of blogger post – GOSPO TIMES
How to add In-article ad in 2nd Paragraph of blogger post

This article contains full details on how to insert in-article ad in 2nd paragraph of blogger post. In-article ad is one among of new tools that Adsense offers their publishers to increase revenue.  Bloggers are supposed to create good and attractive content to make more visitors read all posts to gain income through this ad. This ad is the best because it placed where many visitors engage to content.

Conditions on implement In-article ad in blog;

  •  Do not place this ad in sidebars
  •  Do not place this ad in blog homepage
  •  Do not place this ad in footer
  •  Place this ad 2nd Paragraph of blog post or more paragraphs
  •  Do not float ad

Steps to Place In-article ad in blog;

  1. Create in-article ad from Adsense dashboard
  2. Copy in-article ad codes then parse it into Adsense Converter
  3. Go to blogger dashboard then click edit theme to view HTML codes
  4. Click inside HTML then press Ctrl+F key buttons to pop search box within HTML
  5. Find <data:post.body/> in HTML of post which could be 1st for google themes or 2nd or 3rd or 4th depending of style of your template
  6. Replace above codes with the following codes;
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='dt-target'>
<data:post.body/>
</div>
<div id='ad-content'>
<div style='margin:15px 0;text-align:center;clear:both;'>
“AD-CODE”
</div>
 </div>
<div id='dt-target'>
<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;ad-content&quot;);
var target = document.getElementById(&quot;dt-target&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;);
if (linebreak.length &gt; 0){
insertAfter(adscont,linebreak[2]);
}
</script>
</div>
</b:if>
<b:if cond='data:blog.pageType == &quot;static_



  1. Replace a word “AD-CODE” with your parsed In-article
  2. Save your theme then everything will work fine and automatically no need for other steps

Leave a Reply

Your email address will not be published. Required fields are marked *