How to easily Add Adsense Ads in the middle of the Post.

Script to Add 2 Adsense Ad in Blogger posts, on Each Post Auto.
1. starting in post
2. Middle or Last of Post. May varies according to your theme.

How to Use this Script.
Find " <div class='post-header'>  TAG and Paste the code below it. Keep in mind that their are two Tags, one for mobile and other for genral.
and replace with below code. Make sure you know little bit editing.

In script to add AD 1 replace "<--- ADD ADSENE CODE - STARTING IN POST  ------> with your converted adsese code.
In script to add AD 2 replace "<--- ADD ADSENE CODE - MIDDLE or Bottom of post ------> with your converted adsese code.
SAVE AND SEE THE EFFECT.

<div class='post-header'>
<div class='post-header-line-1'/>

// IF here you found any addictional code in your theme. make changes according ///

</div>

<div class='post-body entry-content' expr:id='&quot;post-body-&quot; + data:post.id'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
&lt;div style=&quot;display:block;text-align:center;margin:15px auto;&quot;&gt;
<--- ADD ADSENE CODE - STARTING IN POST  ------>
&lt;/div&gt;
</b:if>
<data:post.body/>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
&lt;div style=&quot;display:block;text-align:center;margin:15px auto;&quot;&gt;
<--- ADD ADSENE CODE - MIDDLE or Bottom of post ------>
&lt;/div&gt;
</b:if>
<b:else/>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<data:post.body/>
<b:else/>
<div expr:id='&quot;p&quot; + data:post.id'>
<data:post.body/>
</div>

About kamineyhum

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment