Why Adsense Switch?
Sometimes you do not want to show Google Adsense ads on your pages/posts:
When you want to keep page clean or
When you have affiliate pages and adsense puts the same product ads as your affiliate product
Or could be other reasons. Since Google Adsense is not providing a way to manage in which page or post to show ads, you had to write PHP code to handle it. Adsense Switch makes your job easy with simply tick/untick check box in each page or post.
Download
Search “Adsense Switch” in the “add new plugin” page on your site or download file from wordpress.org.
General Settings
Go to Settings->Adsense Switch.
Adsense Script URL
Google gives you set of code to put ads on your site and this javascript is a part of it. Adsense Switch removes this URL on adsense disabled pages/posts, so no adsense ads will appear there. Do not change this URL unless you are sure your URL is different to the default one.
Disable Adsense for All Pages
Tick this if you want to disable adsense on all pages. This option has more priority than individual page settings, so if you tick this option, ads will not appear whether you enable or disable ads on each page.
Disable Adsense for Alll Posts
Tick this if you want to disable adsense on all posts. This option has more priority than individual post settings, so if you tick this option, ads will not appear whether you enable or disable ads on each post.
Disable Adsense with Category
Tick this if you want to disable adsense on posts with category. This option has more priority than individual post settings, so if you tick this option, ads will not appear whether you enable or disable ads on each post.
Individual page/post settings
Above menu will appear on right side bar on each page/post. You can disable adsense individually here.
Shortcode
In case you want to know if adsens is disabled or not on page/post, use “get_adsense_switch_ad_removed” shortcode.
It will return TRUE when ad is disabled. FALSE otherwise.
Donation
If you like this plugin, please donate with PayPal. I would appreciate your contribution! 🙂