Thursday, January 22, 2015

How to put Adsense code in the Middle of the post on Blogger?

Google Adsense is one and only high earning source for Bloggers. It is a based on CPC (Cost Per Click) which means you only get a money when the users click the ads provided by Google Adsense.

First of all you have to have a enough visitors to get enough money, but what happens when there is less numbers of visitors with no clicks to ads then we begin to customize the template and put more ads on a single blog but what happens at last you may be forwarded to disability of your adsense account.

Today I am here to share a useful tip for not Only adsense user but others also. This tip is about to put an adsense code to the middle of the post which also helps to increase the CTR of your adsense earning.

But how to do? here is the solution.

Step 1. Login to your Blogger Dashboard.

Step 2. Go to Layout >> Edit HTML and Proceed.

Step 3. Now click anywhere of the HTML editor and search for this <data:post.body/> . You may find this code several times but stop at second one.

Step 4. Now replace <data:post.body/> with below code.

<div expr:id='&quot;aim1&quot; + data:post.id'/>
<div style='clear:both; margin:10px 0'>
Your Adsense Code Here
</div>
<div expr:id='&quot;aim2&quot; + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;aim1<data:post.id/>&quot;);var obj1=document.getElementById(&quot;aim2<data:post.id/>&quot;);var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf(&quot;&quot;);if(r&gt;0){obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1)}
</script>

Step 5. Save your template then you are done.

Note:-
  • You have to first convert your adsense code into compatible form from here.
  • Replace Your Adsense Code Here with your own adsense converted code.


4 comments:


  1. Hey, very nice site. I came across this on Google, and I am stoked that I did. I will definitely be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just taking in as much info as I can at the moment. Thanks for sharing.

    Logical Softtech

    SEO company india

    ReplyDelete
  2. This ad sense code really helped me with my website and it works like a charm. So i was making a webpage for guest post backlinks and that's when i used this code. Thanks a lot, you can visit my site and look at it how i have used it, and if you still have any question then ask me.

    ReplyDelete
  3. تعد الاول افضل شركة غسيل خزانات بالمدينة المنورة تعمل على استخدام افضل ادوات تنظيف وتعقيم خزانات المياه

    ReplyDelete