Forum Moderators: martinibuster
For whatever reason a PSA appears about 80% of the time on a particular home page and nowhere else in the site.
If I use the alternate color attribute I get a big open block on the page which is quite unprofessional in appearance. So I want to display the page as if there were no AdSense on it at all instead of a PSA or blank block.
Is there a way?
You can't find out if you'll get a PSA before serving AdSense because there is no callback mechanism or interface you can query - you just include Google's magic javascript and it does the rest.
That means in order to find out if you are serving up a PSA you need to have tried to serve at least one advert - in doing so you allow the iframe to be established thus forcing you into showing a potential PSA.
So what are your options for dealing with unwanted PSAs?
1) Use a custom PSA which shrinks the IFRAME its embedded in. Great idea, but I have a suspicious feeling this method could cause problems with the javascript security model. Probably worth checking out if you have time because if it worked it'd be simple & effective.
2) Use a custom PSA which track its usage on a per-page basis. Once the # PSAs served for a page hits a certain limit the adsense feed can be temporarily removed from that page. Requires some coding and a database, but it shouldn't be too complex.
3) Run a nicely targetted custom PSA which uses alternative adverts that are suited to the topic of your site. Not something I've tried but it strikes me as being practical if you can get good alternate material.
- Tony
[webmasterworld.com...]
There are some other "adsense tools" on a lot of other sites.
If you don't want an ad to show, you could make the alt be a blank page that shows your background.
Also, I have a site where the alternate ad promotes lesser trafficked sections of the same site.