How To Put Adsense Inside Blog Post

How To Put Adsense Inside Blog Post

In this post we made a valuable tutorial for hardcore Google Adsense users. This time, i will teach you how do you put adsense ads on the center position or anywhere in the blog post.

Original position ads in blogger is actually less strategic and revenue is not very lucrative future results.

But, what if we want to place ads inside or in the middle of a blog post? certainly interesting right?

This time we are trying to help you solved problem by giving some tips to change the position of the ad. The most strategically on the blog post, middle, and at the bottom of the blog post.

Before changing the code in the template please backup your template first (go to Template> click on the Backup / restore)

Step 1. First we have to Parse adsense ad code before insert to template html code. It won't work if you don't parse that code. Click here to parse your code. After parse HTML code to XML code go to Template, click on the Edit HTML, click on any part of the code and find the code below by pressing (CTRL + F) to find that code.


Note: You will find this code and make sure you change the code in the 2nd. If nothing change repeat the same steps on the 3rd code.

Step 2. Change code <data: post.body /> with code below:

<div expr:id='"adsmiddle1" +'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0">
<!-- Insert adsense code here -->
<div expr:id='"adsmiddle2" +'>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<>");
var obj1=document.getElementById("adsmiddle2<>");
var s=obj1.innerHTML;
var\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
Step 3. Change adsense code that has been parsed earlier in the <!-- Insert adsense code here -->.

Note: If you want to place the ad in the center position please enter the following code:

<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
Step 4. You can place adsense ad in any place on your blog post by entering below code via HTML edit.

<!-- adsense -->

Note: If you do not put this code into the HTML ad will automatically on the top of blog post.

Do not worry. This code is valid and does not violate any rules of google adsense.

1 comment:

Trendslink © 2013-2016. Powered by Blogger.