AdSensical

Make money online with the Google
AdSense™ advertising program.

Friday, June 09, 2006

Place Ads in Middle of Blogger Posts

Enlighten People:     


When you make a Blogger template, you can place ads in the sidebar and on top. However, the positions of the ads are static. The main point is that you cannot place an advert inside a post. Correct?
Incorrect! Using a bit of Javascript techno-wizardry you can place AdSense ads in the middle of your Blogger posts easily. I don't promise, but it should increase your CTR. Let me show you how:
  • Log in to Blogger and go to Template
  • Find the <$BlogItemBody$> tag in your template
  • Replace it with:

<p>
<ItemPage>
<div id="adsensical<$BlogItemNumber$>start"></div>

<div style="margin:5px 0 -5px 10px">
<!--PLACE YOUR AD CODE HERE-->
</div>

<div id="adsensical<$BlogItemNumber$>end">
</ItemPage>
<div id="adsensical<$BlogItemNumber$>body"><$BlogItemBody$></div>
<ItemPage>
</div>

<script language="JavaScript">
//AdSensical Place Ads in Middle of Blogger Posts
//By hackman_3vilGuy http://adsensical-adsense.blogspot.com
//hackman {AT}caller {DOT}me {DOT}uk

var topbit=document.getElementById("adsensical<$BlogItemNumber$>start");
var bottombit=document.getElementById("adsensical<$BlogItemNumber$>end");
var s=document.getElementById("adsensical<$BlogItemNumber$>body").innerHTML;
var regexIndex=s.search(/<!--adsense-->/igm);
if(regexIndex>0) {topbit.innerHTML=s.substr(0,regexIndex);bottombit.innerHTML=s.substr(regexIndex+14);}
</script>
</ItemPage>
</p>

Copy this code
  • Replace <!--PLACE YOUR AD CODE HERE--> with your real Adsense code you want to put in
  • Now in every post place <!--adsense--> somewhere in the HTML (click Edit HTML) of the post where you want the ad to appear!
That's it! If you implement this you should hopefully get a greater CTR and therefore more cash and the method is within the ToS. This only displays the ads on item pages. If you want to display them on all pages then get rid of the ItemPage tags but watch out that you only have 3 ads per page. If you forget to put the tag in, your ad will appear just before the article. Enjoy, just please don't forget to link back here.

Labels: , , ,

17 Comments:

At December 3, 2007 at 5:42 PM , Blogger Mario C. Delgado said...

thanks! hope this works to get me more money heh

 
At December 3, 2007 at 11:37 PM , Blogger Unknown said...

nice job friend...


kantor-online.blogspot.com

 
At December 24, 2007 at 9:18 AM , Blogger Kevin Philip said...

Nice work. Please give information about Page rank improvement.



Jamsheed
http://www.getnowonline.blogspot.com

 
At January 1, 2008 at 11:57 AM , Blogger fresher and exp walkin job said...

hi,i have created a new forum about adsense,

here it is
http://www.adsensetalk.exofire.net/phpBB3/

i want to add your article of placing ads in middle of blogger posts with all the links and source ,please let me know your opinion? , or u can directly post in my forum with all the backlinks

thanks

 
At February 28, 2008 at 10:54 AM , Blogger Ace Of Adsense ~ said...

i couldnt manage to place ads in the middle of the posts.....although i have pasted my code.....ads aint showin up? is it coz i already have 3 ads or the wrong procedure....do lemme know...leave a comment on my blog plz

 
At March 8, 2008 at 11:28 PM , Blogger Unknown said...

Visit for more information on
Complete Walk through & Guide For Adsense

 
At May 4, 2008 at 6:06 AM , Blogger DJYano said...

Java Made Easy may be yours is a new blogger beta not the old one. Copy and paste the link below, i will teach you on how to put the code for new blogger beta. Have a nice day.

http://djyano.blogspot.com/2008/03/put-your-adsense-in-middle-of-post.html

 
At May 11, 2008 at 4:36 AM , Anonymous Anonymous said...

Dear admin,
Iam new in the blogger world but by tring every thing I tried to change my layout HTML code but when ever I changed every thing and saved the new changes the page never complete downoading
I hope you tell me how to Change in my HTML code and how to put a new design?
Thanks,
Yours hopeful

 
At September 1, 2008 at 6:21 PM , Blogger Unknown said...

Are you crazy for earning the money.Google AdWords advertisers can now advertise on your site with video ads as a new addition to the line up of text, Flash and image adverts currently available according to the AdWords blog. If you have selected image ads, you are able to receive these new video ads.

Mike vutler













http://www.changeyourfuturetoday.net

 
At December 8, 2008 at 5:35 AM , Blogger Mithu said...

Great hint, by the way check my blog Real Estate Facts - Real Estate Book and let me know if ads are on good place

 
At March 19, 2009 at 6:26 PM , Blogger ratnaveera said...

Dear friend, Thanks for your idea to post ads inside a blog! I'll try this.

 
At November 30, 2009 at 8:44 PM , Blogger Unknown said...

thanks a lot for this information , but I can't find the <$BlogItemBody$>
what could be the alternative tag?

that's my XML file:
http://www.mediafire.com/?e2znionnn2z

 
At September 7, 2010 at 7:24 PM , Blogger atanium said...

That’s was nice suggestion placing at the middle rather than on sidebar.. I’m sure I got lots of hits from that. Thanks for the idea! | ffxiv gil

 
At December 24, 2010 at 12:50 PM , Blogger Beso said...

I couldn't find the <$BlogItemBody$> tag in my DLE Support site...

 
At September 19, 2011 at 2:59 AM , Blogger Stephenwilliams said...

Hey that's really a great post and a wonderful description out here, I really like the way things are being executed and discussed here.

Classified Software

 
At December 20, 2011 at 10:52 PM , Blogger mazan said...

Nice info about "Place Ads in Middle of Blogger Posts". Good knowledge about make money with adsense

 
At November 21, 2012 at 12:42 AM , Blogger toink said...

Nice article.. it help me alot, did you try also to make money just by uploading files online?, try also this one on ho to "make money online" tai 3

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home