1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Changing the adsense code

Discussion in 'Placement / Reviews / Examples' started by xyz, Oct 12, 2006.

  1. #1
    I know they say that you arent allowed to change any of the code, but just wondering if anyone has done this, or if it makes any difference at all..


    I've been trying for a day to get adsense to display properly on my site. It wont work with the code given to me by adsense.

    However, if I remove the <!-- and the //--> ...

    It works perfectly. Think its OK to leave those parts out?


    just to be clear, I removed the red parts in the code below:


    <script type="text/javascript">
    <!--
    google_ad_client = "pub-xxxxxxxxxxxxxxxxxx";
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = "120x600_as";
    google_ad_type = "text";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "184289";
    google_color_text = "000000";
    google_color_url = "000000";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
     
    xyz, Oct 12, 2006 IP
  2. MarketingInstitute

    MarketingInstitute Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, AdSense says that you are not allowed to modify the code at all. I have not tried to leave out those parameters & don't see why removing them would make it display any better.
     
    MarketingInstitute, Oct 13, 2006 IP
  3. xyz

    xyz Peon

    Messages:
    370
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well the site isnt going public until I figure what to do...

    Does anyone have any ideas why it would display properly without the <!-- and the //--> but display incorrectly with them?
     
    xyz, Oct 13, 2006 IP
  4. affihq

    affihq Peon

    Messages:
    329
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    there wouldn't be any problem imo to leave those out. there kind of a start/stop thing but they don't really affect the code.
    I say go for it, but don't blame me if you get banned. I take no responsibility, and you idemnify me by reading this post.
     
    affihq, Oct 13, 2006 IP
  5. spider28

    spider28 Guest

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't think thats a problem...
     
    spider28, Oct 13, 2006 IP
  6. svtmook

    svtmook Peon

    Messages:
    170
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i thought anything between <!-- and --> wasn't even html tags, but rather used for labelling html tags.
     
    svtmook, Oct 13, 2006 IP