Insert Adsense Within Posts: Later On The Kickoff Paragraph
Sunday, January 24, 2016
Edit
Want to know which component division of your site or weblog volition direct you lot to a greater extent than profit? Add AdSense within posts as well as thence banking concern check out the famous Google AdSense oestrus map. Recent studies, however, showed that placing AdSense subsequently the showtime paragraph of a site or weblog is i of the best AdSense placement. Unfortunately, the default Blogger platform offered past times Google doesn't permit placement of promotion subsequently the showtime paragraph. But because it has move i of the almost profitable areas, enough of webmasters possess got tried to possess got payoff of the best AdSense placement. How tin you lot relish the same score of profit?
To solve the problem, nosotros volition only deed the locations of the ads to live displayed past times adding JavaScript as well as DIVs. With the next script, you lot tin easily direct the paragraph or heading subsequently which you lot desire to inject the promotion to. This way, you lot won't possess got to manually alter every post.
2. Once the editor has opened, click anywhere within the code expanse as well as press the CTRL + F keys (or Command + F) on your keyboard to opened upwardly the editor' search box. Search the next trace of piece of work (press Enter to honor it):
3. Add the below DIVs inwards cerise earlier as well as subsequently similar this:

a) Align AdSense on the left - alter <div id='adsense-content' style="display:block;text-align: center"> with:

b) Align AdSense promotion on the correct of the content - alter <div id='adsense-content' style="display:block;text-align: center"> with:
- To insert the promotion subsequently the minute paragraph, alter "0" from the trace of piece of work inwards cerise amongst "2".
- If you lot desire to pose AdSense only below the heading h2 or heading h3 of a post, supervene upon br from "br" amongst h2 or h3.
6. Click "Save template" to relieve the changes as well as you're done.
With this trick, you lot tin insert AdSense subsequently the showtime paragraph automatically inwards Blogger amongst ease. Now it's your plough to produce upwardly one's take away heed which format plant best on your site.
To solve the problem, nosotros volition only deed the locations of the ads to live displayed past times adding JavaScript as well as DIVs. With the next script, you lot tin easily direct the paragraph or heading subsequently which you lot desire to inject the promotion to. This way, you lot won't possess got to manually alter every post.

How to Display AdSense Ads subsequently the First Paragraph inwards Blogger
1. Log into your Blogger account, select your weblog as well as click "Template" on the left side. Open the Template editor using the "Edit HTML" button.2. Once the editor has opened, click anywhere within the code expanse as well as press the CTRL + F keys (or Command + F) on your keyboard to opened upwardly the editor' search box. Search the next trace of piece of work (press Enter to honor it):
<data:post.body/>Note: You volition honor multiple occurrences of <data:post.body/> but you lot ask to halt at the minute one, or if you lot don't encounter whatever changes, exam the final one.
3. Add the below DIVs inwards cerise earlier as well as subsequently similar this:
<div id='adsense-target'><data:post.body/></div>4. Copy the AdSense code that you lot desire to exhibit as well as occupation this tool to convert it into patently text. After conversion, add together the next HTML as well as supervene upon the "ADSENSE CODE HERE" text amongst the converted promotion code only higher upwardly the trace of piece of work that nosotros only found:
<b:if cond='data:blog.pageType == "item"'>
<div id='adsense-content' style="display:block;text-align: center">ADSENSE CODE HERE</div></b:if>

Align AdSense Left or Right
By default, the Google AdSense promotion unit of measurement volition seem inwards the middle only subsequently the showtime paragraph. If you lot are unhappy amongst the results as well as desire to twine text to a greater extent than or less the ad, you lot tin direct i of the options below:a) Align AdSense on the left - alter <div id='adsense-content' style="display:block;text-align: center"> with:
<div id='adsense-content' style="display: inline-block;float: left;margin:15px 15px 15px 0px">After modifying it, the promotion volition display something similar this:

b) Align AdSense promotion on the correct of the content - alter <div id='adsense-content' style="display:block;text-align: center"> with:
<div id='adsense-content' style="display:inline-block;float:right;margin:15px 0px 15px 15px">5. Finally, correct subsequently <div id='adsense-target'><data:post.body/></div> from pace 2, add together this script:
<script type='text/javascript'>Note:
purpose insertAfter(addition,target) {
var raise = target.parentNode;
if (parent.lastChild == target) {
parent.appendChild(addition);
} else {
parent.insertBefore(addition,target.nextSibling);
}
}
var adscont = document.getElementById("adsense-content");
var target = document.getElementById("adsense-target");
var linebreak = target.getElementsByTagName("br");
if (linebreak.length > 0){
insertAfter(adscont,linebreak[0]);
}
</script>
- To insert the promotion subsequently the minute paragraph, alter "0" from the trace of piece of work inwards cerise amongst "2".
- If you lot desire to pose AdSense only below the heading h2 or heading h3 of a post, supervene upon br from "br" amongst h2 or h3.
6. Click "Save template" to relieve the changes as well as you're done.
With this trick, you lot tin insert AdSense subsequently the showtime paragraph automatically inwards Blogger amongst ease. Now it's your plough to produce upwardly one's take away heed which format plant best on your site.