Forum Moderators: martinibuster

Message Too Old, No Replies

Suspend Google Ads in one place?

Is this possible?

         

surfgatinho

12:25 pm on Nov 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



After my earnings going down from ~$100 per day to $20 or less in a week I really want to disable Adsense throughout my network as I don't think the compromise of having their ads on my site is worth it.

As I have around 10 sites running Adsense I don't really want to manually comment out code plus I will probably want to reinstate Adsense at some later point.

So what I'm lokking for is the most efficient way of disabling all Google ads - in one go if possible.

casua

1:23 pm on Nov 17, 2007 (gmt 0)



The only thing Google provides for that is:

Add a non-existent domain name (e.g. vfguhneiouffaofuaw.com) to the "Allowed Sites" list and remove your domain names from it (if you had them there). The ads will still show but you won't earn any money (Google probably will).

The bottom line, yes, Google should really implement a "master switch".

Bddmed

2:14 pm on Nov 17, 2007 (gmt 0)

10+ Year Member



There are plenty text editors available that can search/replace multiple files in one go. Make sure to replace the Adsense code with an 'placeholder' so you can put them back in later.

iwannano1

2:40 pm on Nov 17, 2007 (gmt 0)

10+ Year Member



If you know sed and little shell scripting UNIX stuff, you can do the same.

surfgatinho

4:22 pm on Nov 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sounds like regex hell!

Maybe there's a way to do it via .htaccess?

wrgvt

6:36 pm on Nov 17, 2007 (gmt 0)

10+ Year Member



I know this is too late to make this suggestion for you, but this is one of the reasons I put all my ads in server side include files. I can update the ad or change it to an an affiliate ad or just leave it blank, just by changing one file and it changes the ad on every page it runs.

jomaxx

10:36 pm on Nov 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not really up to Google to provide a feature like this. After all, publishers would normally want to put something else in that space, not simply blank out the ad blocks.

If you're capable of text-editing your pages, use a power editor like Textpad, or any multi-file search-and-replace tool. Personally I would stay far away from doing the editing on the Linux side.