Yesterday we give you a tutorial that how to add adsense codes in the left side, right side, or in center of the post which could increase your adsense CTR and but as from the many times some websites OR some blogs put their adsense in the middle of the posts, that is also increase the CTR of your adsense earning.
Read Also- Adsense Unit Placing Pack
3. Add Adsense in the Middle of the Post
Add Adsense in the Middle of the Post
- Login to Blogger > Dashborad
- Click on Drop Down Menu and select Template
- Backup your Template before making any changes to your blog
- Now Click on Edit HTML > Proceed > Expand Widget Templates
- Press Ctrl + F and search the code shown below.
<data:post.body/>
You will find two times <data:post.body/> code and You have to Replace it With the Second One
- Now replace that code with below code.
<div expr:id='"aim1" + data:post.id'/>
<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 t=s.substr(0,s.length/2);var r=t.lastIndexOf("");if(r>0){obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1)}
</script>
You Have to first Convert the Adsense Code into the Compartible Form
- Now just replace Your Adsense Code Here with your Own Asense Codes.
- Now Save Your template.
I need like this template how u developed this :)
ReplyDeleteCool Laptop Wallpapers Collections
@A . Mohamed IleeyasKeep Stay Tune with us. We will publicize soon.
ReplyDeleteThanks for your interest.
hey #hemant,, i am trying but it's is not working for me.............. plz help...
ReplyDelete@Satya P. JoshiWhat's the problem comes in?
ReplyDeleteafter converting the code replaced with second but it is not showing,,, ads space nor ads....
ReplyDeleteExcellent Tutorial. I already apply this method on my Technology blog
ReplyDeleteTekPip .
Brother when i applied this to my template it's showing tyle="font-size: x-large;">
ReplyDeletelike this text...... and it's working for me good but i don't know why it's showing some html codes in post and style font etc
so what should i do ?
Kindly tell me ? www.urfox.com visit this and and tell me thanks
Hi Hemant, I have doubt here and i want a solution. Is there a way to make the ads appear in the bottom or middle of the post or below the post title only in the first post that appears and not in every posts.. for example, if i have 5 posts per page, then in this method, the ads appear in all 5 posts, ofcourse, it is limited to 3 ads. my question is instead of appearing in all the posts in the page, i want it to appear only in first post, because i want to use other ad units in the right side like skyscraper etc. help me please.
ReplyDeleteHi,
DeleteFirst of fall Welcome to Widget Generators. We would like to help you. Your solution is here
http://www.widgetgenerators.com/2013/06/add-adsense-between-posts-on-home-page.html
This comment has been removed by the author.
ReplyDeleteThanks for sharing such a valuable code but how to change the position of the ad, please specify.
ReplyDeleteNice Post.
ReplyDeleteHow to Adsense Account Create..?
ReplyDeleteThanks for such a nice post
ReplyDeletewww.worldcup2015livenews.com
nice blog artical
ReplyDeleteThis is good for increasing revenue of a blog thanks.
ReplyDeleteHi! I have the same problem! I had another code and it worked, but I needed to write -adsense- where I wanted ad to be. I wanted fully automated and I changed it with your code- it just doesn't show. Do you have any suggestion? This is a post (long one, maybe it's good example) http://blog.madamastrology.com/2015/03/fashion-horoscope-for-zodiac-signs.html
ReplyDeletesorry sorry sorry! It wasn't the second one post.body! It's really cool! Thanx!
ReplyDeleteThank you, thank you, thank you! I've been looking for this for a while, I finally found it.
ReplyDeletethanks for your sharing
ReplyDeletethanks :)
ReplyDeleteThe guides were very helpful. This is what I was looking for on the Internet ....
ReplyDeleteYou Rock man.. Worked Like Charm..
ReplyDeletewaw..... nice artikel
ReplyDeleteIt's a impressive post that has everything to describe in it.
ReplyDeleteI read your blog post and this is nice blog post.. thanks for taking the time to share with us. have a nice day Forexsteam
ReplyDelete