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.

displaying multiple Google Ads in landscape format

Discussion in 'Placement / Reviews / Examples' started by patwa, Jun 7, 2007.

  1. #1
    Hi, sorry if this is the wrong place but it concerns both Google and web design.

    I've put the script which Adsense generates onto my homepage at www.patwanet.co.uk but as you can see it's just one add and it's taking up rather a lot of space. I've chosen the small rectangle but I was wondering how can I get say three ads going across the screen in a thin banner such as you get on other sites?

    I have the main script as an include, and then have the second script (the one with the syndication.google.com/showads.js" (or similar) link) - do I just replicate this link for each ad, so put a table with three cells and that link in each cell to get my three ads?

    Source code is open to anyone who wants it.

    Thanks.

    H.
     
    patwa, Jun 7, 2007 IP
  2. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You just login to your adsense and then get the code for the banner you want, after that just replace the code that is already there with it.
     
    gobbly2100, Jun 7, 2007 IP
  3. patwa

    patwa Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks.

    I did that, and I noticed that the code was two scripts. The main script with all the parameter, and then a second script at the bottom with a link to a script hosted at google.

    I didn't want to clutter the page with all that code, so i created an include to the first script, but I didn't know how to combine the two so I put the second as a link (which you can see in the source).

    Now all I get is one add, do I have to replicate that link to the showads.js on Google's end for each add I want to show? Or do I have to replicate the whole code with the parameters for each add I want to show - that would be a lot of code replication for the same parameters.

    H.
     
    patwa, Jun 7, 2007 IP
  4. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't think there is any need to have an external file for the ads because to everything it is still going to be viewed as if it were in the page anyway.
     
    gobbly2100, Jun 7, 2007 IP