Put adsense inside Blogger Beta post

Discussion in 'Blogging' started by protesto, Nov 7, 2006.

  1. #1
    Use this method if you want to show adsense ads inside a blogger beta post:

    # Find the line:

    <div class='post-header-line-1'/>
    Code (markup):
    # Add this code after that line:

    [U]<b:if cond='data:blog.homepageUrl != data:blog.url'>[/U]
    <script type="text/javascript">[B]<!--[/B]
    google_ad_client = 'YourAdsenseID";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "006699";
    google_color_text = "000000";
    google_color_url = "006699";
    [B]//-->[/B]</script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    [U]</b:if>[/U]
    Code (markup):
    # Remove bolded part from the code ( <!-- and //--> )

    You're finished.

    # If you want to show adsense on the main page as well (up to 3 ads), remove underlined parts too.

    Click to my sig for a working example. Original code can be found here.
     
    protesto, Nov 7, 2006 IP
  2. bnts

    bnts Well-Known Member

    Messages:
    2,329
    Likes Received:
    310
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Nice post..:) Will just try this out...Thanks.
     
    bnts, Nov 8, 2006 IP
  3. The_FoX

    The_FoX Peon

    Messages:
    666
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man. god post. ive been looking for this one.
     
    The_FoX, Nov 8, 2006 IP
  4. medic2424

    medic2424 Peon

    Messages:
    494
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Will this work with regular blogger as well?

    Ed
     
    medic2424, Nov 8, 2006 IP
  5. protesto

    protesto Peon

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No, it works on blogger beta only.
     
    protesto, Nov 12, 2006 IP
  6. nvkrishna

    nvkrishna Active Member

    Messages:
    207
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #6
    It is against adsense rules. you should not change even a single pice of adsense code. Yoy will be banned. read ADSENSE TOS.
     
    nvkrishna, Dec 3, 2006 IP
  7. protesto

    protesto Peon

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    protesto, Dec 5, 2006 IP
  8. northbeach23

    northbeach23 Banned

    Messages:
    135
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You did it man but are you sure that we don't get banned editing adsense code.
     
    northbeach23, Dec 5, 2006 IP
  9. asapcorp

    asapcorp Banned

    Messages:
    725
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You are correct

    I contacted Google few days back and they told we should not change the adsense code.

    I think I can contact once again and let you know
     
    asapcorp, Dec 5, 2006 IP
  10. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #10
    thanks man was looking for this a long time
     
    vic_msn, Dec 5, 2006 IP
  11. louislim2

    louislim2 Banned

    Messages:
    888
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Dear nvkrishna,

    I have send an email to google adsense about this matter and here the reply:

    Hello Louis,

    Thanks for your email. We are aware of this situation. You are permitted
    to remove the comment tags.
    However please keep in mind publishers are not
    allowed to alter the AdSense ad code for any reason. Once you've generated
    the ad code in your AdSense account pages, you may not alter any portion
    of the code or manually change the layout of the ads.

    In addition, I understand you are having issues with the relevancy of ads
    displayed on your site.

    Please understand because crawling is done automatically by our bots, we
    can't control how often your pages are indexed. When you update a page, it
    may be 1 or 2 weeks before the changes are reflected in our index. Due to
    the dynamic nature of a blog it might difficult for the ads to be relevant
    to the current content of your site.

    One suggestion may be to implement section targeting. Section targeting
    allows you to suggest sections of your text and HTML content that you'd
    like us to emphasize or downplay when matching ads to your site's content.
    By providing us with your suggestions, you can assist us in improving your
    ad targeting. We recommend that only those familiar with HTML attempt to
    implement section targeting.

    To implement section targeting, you'll need to add a set of special HTML
    comment tags to your code to mark the beginning and end of whichever
    section(s) you'd like to emphasize or ignore for ad targeting. The tags
    and instructions for adding them to your HTML code can be found at
    http://www.google.com/support/adsense/bin/answer.py?answer=23168 .

    As you may know you can also prevent Google ads from up to 200 sites from
    showing on your site by using the Competitive Ad Filter.

    I also wanted to let you know about the AdSense preview tool, which will
    help you easily determine the destination URL of any ad you wish to
    filter. Since clicking on the ads on your own site is strictly against our
    program policies, I encourage you to use the 'Show selected URLs' feature
    of the preview tool to determine the destination URL. For more
    information, please see
    https://www.google.com/support/adsense/bin/topic.py?topic=160.

    I hope these suggestions will resolve your targeting issues. Thanks for
    your understanding.

    Sincerely,

    Sunil
    The Google AdSense Team

    Wish all happy blogging and make a lot of money with adsense.Huray~~!!My secret not a secret now!
     
    louislim2, Dec 5, 2006 IP
  12. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #12
    it is not working i am using beta blogger
    <div class='post-header-line-1'/>
    is noy available in my template
     
    vic_msn, Dec 5, 2006 IP
  13. louislim2

    louislim2 Banned

    Messages:
    888
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #13
    May you email me your template codes?(copy after you expand widget)
     
    louislim2, Dec 5, 2006 IP
  14. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #14
    i got it now i didn't expand in the beginning thanks
     
    vic_msn, Dec 5, 2006 IP
  15. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #15
    may i know why we should remove comments tag
     
    vic_msn, Dec 5, 2006 IP
  16. nooneown2

    nooneown2 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    there is no need of removing the google adsense comment tag, which should against TOS.

    This is the solution

    http://bloggerdigest.blogspot.com/2006/12/adsense-code-in-blogger-beta-template.html

    to embedding google adsense code in beta blogger post body without tampering adsense code.
     
    nooneown2, Dec 13, 2006 IP