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";
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.
https ://www. google.com/support/adsense/bin/static.py?page=alternateads.html#html Sorry, can't post a link. Just remove spaces.
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
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
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.
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.
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...
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.
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.
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?
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... 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...