How to Insert an AdSense Ad code Inside a Blog Post

Follow following simple steps to insert Google AdSense code into your blog.


Step 1.   Go to blogger.com and sign in into your account
Step 2.   Now go to >>Template page and click on >>Edit HTML(before editing template download your template by clicking on back up template)
Step 3.   Then search 'Blog Posts' in template using (CTRL+F)
Step 4.   Then expand widget template (click on ➤ Button in the same line of 'Blog Posts')
Step 5. Then search code using search box (CTRL+F).
Note: select second search of 

Step 6. Place your cursor after the line 
and press the Enter some space bar button from your key board in-order to keep some space.

Now, delete the below line.
 <data:post.body/> 
Step 7. Now copy the below code and paste it in the space created in step 5. below the line of  <div class='post-body entry-content'>

while convert your AdSense ad code to Parsed AdSense code from here


 <!--BEGIN Code to place ad ANYWHERE inside post-->

<div expr:id='&quot;aim1&quot; + data:post.id'/>
<div style='clear:both; margin:10px 0'>

<!--START of AdSense code -->
PASTE PARSED ADSENSE CODE HERE!
<!--END of AdSense code -->

</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 r=s.search(/x3C!-- adsense --x3E/igm);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>

<!-- END OF CODE to place ad anywhere inside blog post -->


  • 5 Recomended Tips to Become a Sucessfull Blogger
  1. My Secret Formulas for Writing Quality Content To Stand Out Real High
  2. How to Backup and Restore your Blogger Template
  3. Search Engine Optimization Tips For Bloggers 2013
  4. 7 Basic On Page SEO Tips For Blogspot Blogs
  5. Optimize Blogger Blog Well for Search Optimization Without Any SEO Plugin

1 comments: