Adsense alternate ads layout code

Discussion in 'Placement / Reviews / Examples' started by Tranix, Sep 3, 2005.

  1. #1
    I would love to add another alternate ads with my current adsense but not so sure how to add the code within it. I've found this line of code somewhere on the net but don't see instructions how to add another ads with adsense.

    google_alternate_ad_url = "/adsense-alternate-ad.shtml";

    Any helps would be appreciated.

    Tranix
     
    Tranix, Sep 3, 2005 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    You place that line in the AdSense JavaScript, between the line that sets the google_ad_client and the line that sets the google_ad_width.

    The Google AdSense for Content page will place this line in there for you through their web-based GUI.

    Then...

    You must actually create the "/adsense-alternate-ad.shtml" file and put some other ads (of a similar size and shape) inside it.
     
    Will.Spencer, Sep 3, 2005 IP
  3. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #3
    When logged into my AdSense account there is a box near the upper right that says "Search AdSense Help". I typed "alternate ad" into the box and the first result titled How do I implement an Alternate Ad? seemed to answer the question you are looking for.
     
    tflight, Sep 3, 2005 IP
  4. Tranix

    Tranix Peon

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks a lot Spencer and tflight ;-)
     
    Tranix, Sep 3, 2005 IP