Anyone can answer this. I am not able to insert my code such that ads appear only when full post is seen like on amits blog. I dont want the ads to be seen on main page, but should be seen only when openned. Please comment and direct me to the needed source.
Thanks.
john
Help Center » Blogging
Inserting ads within post
(8 posts)-
Posted 1 year ago #
-
<b:if cond='data:blog.pageType == "item"'>
put your AdSense code here
</b:if>Posted 1 year ago # -
Thanks Rupesh - perfect solution for new Blogger XML templates
John if you are still on the classic blogger template, try putting the code inside ItemPage tags.
Insert AdSense in Blogger Templates
Another discussion here.
Posted 1 year ago # -
Thanks for the suggestions. I already have that in my posts, but they show an error message. Please check this link.
http://aurmoth.blogspot.com/2007/12/jumping-genes-new-research-finding-on.html
Thanks.
John.Posted 1 year ago # -
And how to add a adsense referral such as Firefox within the post you are writing, I wrote an article about firefox and wanted to add the adsense referral within the post, I copied and pasted the code but that code turned some other adsense on my page and not firefox with google toolbar product I wanted. Do I have to parse the code before pasting it on the post or what?
ThanksPosted 1 year ago # -
Read this : Insert AdSense Code in Blogger Templates
Posted 1 year ago # -
@Fatos,
I have checked your blog and found it to be widget based (not classic templates). So, Amit's method won't work for you. Well, I have solution for you.1)To insert ads in between Post title and body:
http://fundubytes.blogspot.com/2007/08/wrap-adsense-code-inside-blog-post.html2)To insert(target) referral ads within blog post (read Tip #4):
http://fundubytes.blogspot.com/2007/11/tips-tricks-to-earn-more-through.htmlif you find them useful spread the words.
Posted 1 year ago # -
I still have probs on this one. This is my code. Please let me know where I am doing a mistake. I am not able to see ads at the end of the post when I clik on individual post. Appreciate ur comment. Happy new year in advance to all.
</b:if>
<div class='post-header-line-1'/>
<div class='post-body'>
<p><data:post.body/></p>
<b:if cond='data:blog.pageType == "item"'>
<script type='text/javascript'>
<!--google_ad_client = "pub-xxxxxxxxxxxxxxx";
//250x250, created 12/3/07
google_ad_slot = "xxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;//--></script>
<script src='http://pagead2.googlesyndication.com/pagead/show_ads.js' type='text/javascript'>
</script>
</b:if>Posted 1 year ago #
Reply
You must log in to post.