How To Display AdSense ads anywhere of Inside Blog Post? - My Blogger Market

Breaking

Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

4/06/2013

How To Display AdSense ads anywhere of Inside Blog Post?

This is about an old trick that how to display your AdSense ads inside the blog posts. This post is to cover all the AdSense related information. Though I am trying to cover all the topic in my blog so you will get some basic topic that already most of the blogger knows.


How To Display AdSense ads anywhere of Inside Blog Post?


But this is very effective trick for the newbie. Placing AdSense ads inside the blog posts can generate more click on it, which means more revenue for you. So just follow the below steps to place the AdSense ads inside anywhere of your blog posts.

Step #1: Log in to your blogger account and Click on Template ->Edit HTML-> Proceed

Step #2: Click on  Now click on -> Template -> Edit HTML-> 


Step #3: Now find <data:post.body/> by Pressing Ctrl+F (Windows) or CMD+F (Mac)    

You will find 3/4 time this code go for second one.

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


 
<div expr:id='&quot;adsmiddle1&quot; + data:post.id'/>
<div style='clear:both; margin:10px 0'>
<!-- Place Your Ads Here (Already Parsed) -->
</div>
<div expr:id='&quot;adsmiddle2&quot; + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;adsmiddle1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;adsmiddle2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>

Customization

  • Replace <!-- Place Your Ads Here (Already Parsed) -->with your AdSense Code.

Learn how to display AdSense ads anywhere of the Blog posts?

For display ads you have to use the below code. That mean wherever you place the below code there your AdSense code will display.

<!-- adsense -->

Customization

  • Change left with right or center
  • Change right with left for margin


Congratulation you have successfully applied the trick.

You can show up AdSense ads anywhere within your Blog content. Such as, after first paragraph or second paragraph. And the benefits of using this trick it will generate more income from your ads. Because visitors will prompt to click on ads when it will display inside content area. Thank you.

No comments:

Post a Comment

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. Make sure to click the "Subscribe By Email" link below the comment to be notified of follow up comments and replies.
2. Please "Do Not Spam" - Spam comments will be deleted immediately upon our review.
3. Please "Do Not Add Links" to the body of your comment as they will not be published.
4. Only "English" comments shall be approved.
5. If you have a problem check first the comments, maybe you will find the solution there.

Post Top Ad

Responsive Ads Here