Blogspot and adsense inside the posts

Discussion in 'Blogging' started by mh0000, Sep 16, 2009.

  1. #1
    I searched a lot for how to install adsense code inside the blogspot posts and not between the posts and i am lost from all the results i found and i got no result, so my question and please give a clear answer is it possible to install the code inside the post and how?
     
    mh0000, Sep 16, 2009 IP
  2. dmssrinivas

    dmssrinivas Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    To be clear, I need to put the screenshots here. Let me tell you lightly,

    If you put the code directly in the post, it may or may not work, I don't know the factors. But you can shift the between posts adsense element in to in-post. To do this,

    Find "adStart" (case sensitive) in your template with the expand elements checked. You will see a small three line code, cut the code from there and paste it just above "data: post.body" line.

    This is it, when you edit the adsense format from the Body Page element, you can see the changes take effect in your in-post adsense element in the blog.
     
    dmssrinivas, Sep 16, 2009 IP
  3. dmssrinivas

    dmssrinivas Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
          <b:if cond='data:post.includeAd'>
            <b:if cond='data:post.isFirstPost'>
              <data:defaultAdEnd/>
            <b:else/>
              <data:adEnd/>
            </b:if>
            <div class='inline-ad'>
              <data:adCode/>
            </div>
              <data:adStart/>
          </b:if>
    Code (markup):
    This is the code you need to cut from its place and paste it before
    <data:post.body>
    Code (markup):
    Hope this is what you needed.
     
    dmssrinivas, Sep 16, 2009 IP
  4. kidding

    kidding Peon

    Messages:
    166
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Inserting Adsense in Blogger post is very easy . The tutorial as given by @dmssrinivas is almost correct . But you would need to parse your Adsense code with services like postable ,before applying this hack . Read this tutorial to know more on this .
     
    kidding, Sep 16, 2009 IP
  5. bergluke

    bergluke Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    read and try this
     
    bergluke, Sep 16, 2009 IP
  6. mh0000

    mh0000 Guest

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you so much guys for your help, I will try it now.
     
    mh0000, Sep 16, 2009 IP