Saturday, 28 December 2013

// // Leave a Comment

How to Add Adsense ads between blog posts



1.Sign in to your blogger dashboard>layout>Edit html
Check the box next to 'Expand Widget Templates'

2.Scroll down the window till you see this code
<b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if>

3.Replace that code in the template with the below code
<b:if cond='data:blog.pageType != "item"'> <b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if>

4.Again,scroll down the template and find out data-post body tag and paste the below code just above that code{this will show ads above the post body.If you want ads to show below the post,paste the code below that tag.
Here is the code to paste:-
<b:if cond='data:blog.pageType == "item"'> <b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if>
That's it!

How to place adsense ads between Blog posts:

1.Sign in to your blogger dashboard>click on the layout link

2.Click on the Edit link in the "Blog Posts' column
..............a pop up window opens..........

3.Check the box next to 'Show ads between Posts'
next,configure the ads,choose the format,colours,etc and SAVE THE CHANGES.
That's it! Now your adsense ads will show between blog posts.


by Prasant...

0 comments:

Post a Comment