Restrict ads to one post on blogger

Discussion in 'Google' started by Packer, Aug 9, 2008.

  1. #1
    Hello all, can someone help know how to control the number of times an ad will be shown on blogger post? what I mean is, I know how to place ad just below the post heading but how do i restrict it to be shown only for one post in case more then one posts are shown on a page? Please help
     
    Packer, Aug 9, 2008 IP
  2. salman4raza

    salman4raza Peon

    Messages:
    373
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you better ask this in some programming / scripting head.
     
    salman4raza, Aug 10, 2008 IP
  3. dfourss

    dfourss Well-Known Member

    Messages:
    1,271
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Don't put it below the post heading. Put it above the post box on Layouts
     
    dfourss, Aug 10, 2008 IP
  4. Packer

    Packer Member

    Messages:
    69
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    48
    #4

    I didnt quite get it. Actually I want ad to come below the post heading. I can do it by editing the tempelate but then it shows up for all posts on the page while I want it to happen for only for first post
     
    Packer, Aug 10, 2008 IP
  5. dfourss

    dfourss Well-Known Member

    Messages:
    1,271
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    128
    #5
    It's because you edited the template. So whatever happens for one post will happen to all
     
    dfourss, Aug 10, 2008 IP
  6. Packer

    Packer Member

    Messages:
    69
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    48
    #6
    well i got it, but to make any ad appear on the individual post page we add a condition
    <b:if cond='data:blog.pageType == "item"'>
    </b:if> and place our ad inside it. I am looking a similar condition which I can use to check the post number being shown on the page. so I can make my ad display only if it is first post. Hope I am clear with my words. Does anyone know the condition ?
     
    Packer, Aug 10, 2008 IP