Hide Adsense on localhost

Posted by collimarco on Stack Overflow See other posts from Stack Overflow or by collimarco
Published on 2009-09-06T17:31:17Z Indexed on 2010/05/26 16:11 UTC
Read the original article Hit count: 143

I have a site built in Ruby On Rails which has many ads in different templates and views. It is hard to actualy remove each ad between tests and deployments.

I don't know whether Google approves many impressions (even if without clicks) on localhost.

How do you deal with this issue?

Maybe it is a good solution to set a variable/constant available everywere to enable/disable ads easily. Do you think it is a good solution? If so, how do I declare a global variable for views?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about best-practices