воскресенье, 8 марта 2015 г.

How to Add Google AdSense to Blogger Below Post Titles


If you want to display AdSense in the middle of Post, follow 8  simple Steps :

  1. Go to Blogger's Template.
  2. Click on Edit HTML button.
  3. Attention! Take Backup your blog template before doing any changes. (Copy all the template code and paste it to notepad file, save it)
  4. Press Ctrl+F and search for  <data:post.body/>
search for <data:post.body/>

  1. Then find the line, which is above  <data:post.body/> 
 <div class='post-body entry-content' expr:id='&quot;post-body-&quot; +     data:post.id' itemprop='articleBody'>      

  1. Paste your  encoded Adsense code bettwen these lines. Before this step You need covert your AdSense code  - you can use this Convert
  2. You get:   

  <div class='post-body entry-content' expr:id='&quot;post-body-&quot; +     data:post.id' itemprop='articleBody'>  

Your encoded AdSense code 

<data:post.body/>

  1. Click on save template button (This will be visible on all the pages)
Note: If you don't get result, try with other <data:post.body/> in Templates code.




If you want to wrap text around Google Adsense ads like this

Then paste below code to Templates code (this will be visible on all the pages)

<div style=”float:left; margin:10px 25px 10px 0px;”>
Your encoded AdSense code  </div>

If you want to show Adsense only on posts pages, insert this code

<b:if cond='data:blog.pageType == &quot;item&quot;'><div style=”float:left; margin:10px;”>
Your encoded AdSense code  </div>
</b:if>


Комментариев нет:

Отправить комментарий