Go back to surfing session

Subscribe to our feed!
Showing posts with label inside posts. Show all posts
Showing posts with label inside posts. Show all posts

Ads inside posts without ads between posts

August 06, 2009

First please read my previous posts about placing the adsense ads:
How to insert adsense ads between posts
Adsense ads inside blogger posts

Why remove ads between posts?
My reason to remove the them is the maximum number of 3 ads on a single page, the main page of the blog is the most visited page so better place those 3 ads more wiser.
Here is a way to remove the ads placed between posts without to remove the ads placed inside posts.


1. Go to Layout , Edit HTML , check the Expand Widget Templates checkbox

2. Find the following code in your template:

<b:if cond='data:post.includeAd'> <data:adEnd/>
<data:adCode/> <data:adStart/> </b:if>


3. Replace it with one of the following codes:
Probably you have noticed that if you use ads between posts the ads are visible at the bottom of the post pages under the comments, to remove these ads ,too replace the above code with the following one:adsense ads

<b:if cond='data:blog.url ==
&quot;http://seo-tips-blogger.blogspot.com/kaka.html&quot;'>
<b:if cond='data:post.includeAd'> <data:adEnd/>
<data:adCode/> <data:adStart/> </b:if>
</b:if>
If you want to keep that ad at the bottom of post pages use the following code:
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.includeAd'> <data:adEnd/>
<data:adCode/> <data:adStart/> </b:if>
</b:if>
3. Save your template!
Related tutorials:

Adsense ads inside blogger posts

August 04, 2009

adsense ads inside postsAds inside posts have a higher CTR , higher CTR means more money. Wrapping adsense code is violating the adsense TOS, here is a way to place the ads without violating the TOS.


1. First of all place ads between posts

2. Go to Layout , Edit HTML and check the Expand Widget Templates checkbox

3. Find the line <data:post.body/>

  • If you want to place the ads right under the posts title copy the following code before the above code line
  • If you want to place the ads at the end of your posts copy the following code after the above code line

The 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. Save your template.
Related tutorials: