Adsense Code Problems

Discussion in 'AdSense' started by master-yoda, Feb 1, 2012.

  1. #1
    I added the following code to my website but nothing shows up apart from 'page can not be displayed', have I missed something out?

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-3767832605612747";
    /* feb */
    google_ad_slot = "6127775487";
    google_ad_width = 728;
    google_ad_height = 15;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <p><!-- BookmarkButton.com - start -->
    <div align="center"><script type="text/javascript" src="http://bookmarkbutton.com/js/a.js"></script><a href="http://bookmarkbutton.com/" onMouseover="bb2_.dropit(this,event,'bb1_')" onclick="window.open('http://bookmarkbutton.com/b.php?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title),'BookmarkButton'); return false;"><img alt="" border="0" src="http://bookmarkbutton.com/bb.gif" /></a></div><!-- BookmarkButton.com - end --></td>
     
    master-yoda, Feb 1, 2012 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    Code seems fine to me.
     
    JamesColin, Feb 1, 2012 IP
  3. master-yoda

    master-yoda Well-Known Member

    Messages:
    1,254
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    138
    #3
    master-yoda, Feb 1, 2012 IP
  4. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #4
    This I don't know. I will click on your url..

    And I see adsense ads at the bottom, thank you for everything.

    EDIT: my mistake, I see a 728x90 ad at the bottom, but you're talking about a link unit of 728x15 at the top, yes this one I don't see.
    When I look at your source code here's what I have:

    <script type="text/javascript"><!--google_ad_client = "ca-pub-3767832605612747";/* feb */google_ad_slot = "6127775487";google_ad_width = 728;google_ad_height = 15;//--></script>

    everything on one line, maybe that doesn't play well in javascript I don't know, normally it should play well, but maybe not with the html comment signs.. So try to put it in your source code exactly as it is given by adsense with the line breaks. Like you did for the 728x90 ad unit which displays well and is in the correct format in the source code.
     
    Last edited: Feb 1, 2012
    JamesColin, Feb 1, 2012 IP
  5. master-yoda

    master-yoda Well-Known Member

    Messages:
    1,254
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    138
    #5
    Thanks again for looking and giving some advice. I will try it in a bit.
     
    master-yoda, Feb 1, 2012 IP
  6. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #6
    I see it on your site now, so it was the problem, that's wonderful, good luck with your earnings! Bye.
     
    JamesColin, Feb 1, 2012 IP