Welcome to WebmasterWorld Guest from 54.161.201.189

Forum Moderators: incrediBILL & martinibuster

Google Adsense: Displaying alternate text if Ad's are blocked

   
12:23 am on Apr 24, 2006 (gmt 0)

5+ Year Member



Is there a bit of code that can be added to the google adsense code so that if users have the ads blocked an alternate text message will display in it's place so there's not a big white space there?

Any links or info on how to do this?

1:28 am on Apr 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can specify alternate ads - see
[google.com...]
Best solution is probably to create a file with your alternate text and supply that as the html alternatice
3:00 am on Apr 24, 2006 (gmt 0)

5+ Year Member



Yeah that's not quite what I'm talking about. The issue is with browsers that block the ads. I believe there is a way to use the IF statement with the javascript or even PHP to serve up alternate text if the browser blocks the ads from displaying.

Google's solution only covers the possibility of getting rid of the Public Service ads, which isn't quite the same thing.

3:01 am on Apr 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is noscript suffice?
3:52 am on Apr 24, 2006 (gmt 0)

5+ Year Member



create a new webpage with all the text - now make that webpage as the alternate URL
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month