Add the Ads In the Middle of the post
The web developers are developing the Web Pages by using different keywords and related information about the topic. Every website has the 50 and above Web Pages in different fields. So then who can apply the Google Adsence for the website, First they are checked for copy content and the website has any other information about the topic.
Once the Google Adsence approved by the google you can apply to the all the your websites. Here I'm showing how to add the ads in the middle of the web pages.
I will show you step by step process:
Step1:
Then click on the code
Press the CTRL+F and search for the <data: post. body/>
Step2: Add the below code on <data: post. body/>
<div expr: id='"adsmiddle1" + data: post. id'></dev>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
step3:
Save the template
NOTE:
Add the center Tag for the before and after the code
<div style="clear:both; margin:10px 0">
<center>
<!-- Add here the code of your ad -->
</center>
</div>
Step4:Where you want the ads in the new post, you can insert the adsence tag in the middle of the post<center>
<!-- Add here the code of your ad -->
</center>
</div>







0 comments:
Post a Comment