Don't miss

How to Put Adsense or Adverts in the Middle of Blog Posts


Statistics show that adverts in the middle of posts produce the highest CTR (click through rate) meaning more $$$ or £££ for you.


When I found out how to put adsense or bitvertiser, or any advert in the middle of the blogger post, I was found the same answer:


This applies for the new blogger
Go to your blogger dashboard, then design, then edit HTML, then check the 'expand widget' button.
After that, click 'control' and 'f' to make it easier to search in the HTML code.
Search for <data:post.body/> or data:post:body and replace it with the following code:


<div expr:id='"aim1" + data:post.id'></div>

<div style="clear:both; margin:10px 0">
<!-- Your AdSense code here -->
</div>

<div expr:id='"aim2" + data:post.id'>
<data:post.body/>
</div>

<script type="text/javascript">
var obj0=document.getElementById("aim1<data:post.id/>");
var obj1=document.getElementById("aim2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>



Now, where it says above 'Your adsense code here', place your advert whatever that may be, in parsed form. To parse your ad, click here.


Now, everyone seems to think that if you place '<!-- adsense -->' in your blog post where you want the advert to display it will.


However, for me that's not the case and my adverts only ever show up at the top of the post? I can't explain this. If the above works for you and your blog, good. If not, then here's my method of placing ads in the middle or where ever you want them to be in your post.


I experimented many times and came up with this:


Now, you have your adsense code or ad code, copy it and do not parse it. The code only works in its original form.


Now, go to your post and click 'edit HTML' near the compose button. wherever you want your ad to appear in the post, copy it there. Just don't copy it in between 'scripts' or 'spans'. I found it best to identify the paragraphs in my post that's in HTML and paste the code there. To prove this actually works I'll do it twice in this post. As you can see, there's an ad near the top and an ad below, all done through copying the ad code into HTML of the post. It's really that easy! If you have any questions, feel free to contact me at ainc@hotmail.co.uk :) Happy pay-per-clicking! 

About Will Green

A student in England studying Automotive Engineering with Motorsport, Will created Ask Will Online back in 2010 to help students revise and bloggers make money. You can follow AskWillOnline via @AskWillOnline.

0 comments so far:

Post a Comment