google_alternate_ad_url

Discussion in 'AdSense' started by emil2k, Nov 26, 2005.

  1. #1
    Can somebody tell me more about this?

    I thought it was supposed to show the ads of the page that is input there not the page in an iframe its pretty weird...


    Can you tell me what the problem is with my code...

    google_alternate_ad_url = "http://www.gig4free.com";
     
    emil2k, Nov 26, 2005 IP
  2. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There's nothing wrong with your code. It does exactly what it's supposed to. It doesn't redirect to another page.

    Basically what you need to do is create a ad to match your ad unit. Eg. 480 x 90 or whatever the case may be, create a page containing the banner image that links to whatever site you want it to go to. Let's say you name it Ad1.html

    Each time AdSense shows a default it will show the banner ad contained in Ad1.html in the IFrame.
     
    Crusader, Nov 26, 2005 IP
  3. coredump

    coredump Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    https ://www. google.com/support/adsense/bin/static.py?page=alternateads.html#html
    Sorry, can't post a link. Just remove spaces.
     
    coredump, Nov 26, 2005 IP
  4. sunzfan

    sunzfan Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    very useful. I dont' know how often the alternates show up, but i've noticed they help a bit if you can show an add to another page or use another service like chitika
     
    sunzfan, Nov 26, 2005 IP
  5. ravianz

    ravianz Notable Member

    Messages:
    1,536
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    250
    #5
    Surely its usefull; it ensures that now there will be no PSA; i am using it for some other text to be displayed in place of ad when a PSA is expected
     
    ravianz, Nov 26, 2005 IP
  6. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That' s exactly what it's for. If your are registered with Casale or Fastclick, you can even use that to show one of their ads every time a PSA would have shown. Just make sure that you are within their layout guidelines for their ads though.

    Works like a charm.
     
    Crusader, Nov 26, 2005 IP
  7. kawebspy

    kawebspy Peon

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you must specify the URL of the ad that you want to use as your alternate for the Adsense.

    for example if your adpage is http://mydomain.com/ad.html then on the code it should be written


    ....
    google_alternate_ad_url = "http://mydomain.com/ad.html";
    ...

    And if you are using a script it should be written:

    ....
    google_alternate_ad_url = "http://mydomain.com/myadscript?someotheroptions1234";
    ...

    And it is true that the alternate ad is placed in an iframe that Google Adsense automatically created.

    So in your case, you are using this code:

    the URL that you use is not actually an ad page but a base domain of a website. You must change that with the URL of an ad page or ad script.
     
    kawebspy, Nov 27, 2005 IP
  8. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #8
    but i thiought it was againts TOS to make pages just for Google Ads...

    Wouldn't I have to then make some hidden text so the ads would be targeted to something I want, also isnt that againts TOS...
     
    emil2k, Nov 27, 2005 IP
  9. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I think you are totally misunderstanding this. The alternate ads is used to display an ad for another company or even your own private ad each time that Google AdSense doesn't have an ad to display.

    The alternate ad doesn't use keywords or anything. It's just basically a linked image to whatever site you want to advertise, and is only shown when Adsense doesn't have an ad to display.
     
    Crusader, Nov 27, 2005 IP
  10. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #10
    Oh ok then Ill make a banner for my site and I'll put it up as the alt ad...thanks guys
     
    emil2k, Nov 27, 2005 IP
  11. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Just make sure it's the same size as your ad unit. E.g if you use 468x60 then you need to create a 468x60 banner.

    Then all you need to do is create a html file for example. myad.html and insert the following code into the file:
    And you should be all set.
     
    Crusader, Nov 27, 2005 IP
  12. web-spy

    web-spy Active Member

    Messages:
    127
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #12
    I put a amazon link with content-based keywords in the alternate url... today I saw it first time on my site (since normally adsense is always displayed), and it looks not bad...
    What do you think about this?
     
    web-spy, Nov 27, 2005 IP
  13. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #13
    see I run a freehosting site and the ads look like this, so instead of that 160x600 i will have a huge banner for my free hosting site, I actually like that maybe Ill get some extar people to sign up...

    [​IMG]

    BTW You like how the ad looks?

    It took a long time to make... I had to learn htaccess, some php, and modify adsense code just to have that ad show up like that and targeted, it looks very nice on some test sites i put it on Ill tell you'll if it gets good CTR as soon as I switch hosts...
     
    emil2k, Nov 27, 2005 IP