Hide Adsense on localhost
- by collimarco
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?