Trouble adding adsense code into css site

Discussion in 'CSS' started by xyphlo, Sep 16, 2011.

  1. #1
    I've been trying to add the adsense code, but it keeps changing from this:

    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxx";
    /* 250x250, created 9/16/11 */
    google_ad_slot = "xxxxxxxxx";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    to this:

    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxx";
    /* 250x250, created 9/16/11 */
    google_ad_slot = "xxxxxxxxxxx";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    // --&gt;
    // --&gt;</script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

    I think the extra // --&gt;
    // --&gt; that's being added is not allowing the ads to display correctly. My account has been under review for almost 2 weeks and I believe it's because the code is wrong.

    The site is html with css styling. I tried to add it in through css style sheet too by adding a class for the code. That didn't work either. I'm not sure how to keep it from changing.
     
    xyphlo, Sep 16, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    Is your site using a CMS platform?
    If not then it wouldn't be an idea to use the CSS stylesheet to add anything like that. However the &gt; may be being added to the code by a setting on your hosting or in your text editor...

    cheers,
    T
     
    Toycel, Sep 22, 2011 IP
  3. sburst

    sburst Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    which editor are you using to add the code, this is the most likely cause.
     
    sburst, Sep 23, 2011 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    A "CSS site"?
     
    drhowarddrfine, Sep 23, 2011 IP