Is there a way,...well i know there is a way...but how would i display a message if someone is using adblock software. e.g. if a user can see my ad, display the ad. if the ad is being blocked, display a message instead, or other content i could display thats not an ad. i dont need an explination of the coding,..just if there is a way to do it and lead me in the right direction. Thanks! -Tim
i dont like the idea of iframes..but what about a php include? have the adsense on the top and have the content on the bottom...i believe if the ad gets blocked it shows nothing,..but do you think it will just bup the content up to the top of the include page?? ohhhhhh please say yes.
First of all, I don't think it's possible. Even if you put them in an iframe, the extension will still block the ads. And a PHP include is all done server-side, and the adblock extension works within the browser. So that's out of the question, too. Second, you probably shouldn't spend much time even trying. It won't be worth it. People who use the AdBlock extension probably wouldn't click on an ad anyway, even if it were there.
but thats the thing, if they have ad block on, i want to put other content in there so its not empty space
It's not possible from the server side. All the ad blocking is done on the client side, so there is no way for the server side to know that it is even happening. Maybe it is possible for some JavaScript to try to detect if the ad is being displayed or not, and if it isn't, it will put something else in there.
If you are a premium publisher, then I gather you can serve ads as an xml feed from within your server so that it is not blockable via the domain name. One other "trick" I once used on another site which sold its own adverts, was to use a random hash subfolder and a 404 rewrite. As each and every advert would be served from a random subfolder url, it was impossible to block.