Title: [Plugin: Ad Injection] Ad Filtering
Last modified: August 20, 2016

---

# [Plugin: Ad Injection] Ad Filtering

 *  [xaotikdesigns](https://wordpress.org/support/users/xaotikdesigns/)
 * (@xaotikdesigns)
 * [14 years ago](https://wordpress.org/support/topic/plugin-ad-injection-ad-filtering/)
 * Most of my site is SFW, but there are a few pages that are NSFW.
 * I see where I can set it up to have my top banner ad be filtered to not show 
   on the NSFW pages. This is good since most ad networks frown on those sorts of
   shenanigans, however, I was thinking of monetizing these pages as well if I could
   find a suitable NSFW friendly advertiser that won’t try to cover my page with
   porn.
 * What I don’t see the ability to, is filter ads so that ad network A will show
   on all categories except “NSFW” while ads from category B will only show on category“
   NSFW”.
 * I could do this by running one as a top ad and the other as bottom or such, but
   I would rather have the ads in the same place, just pulling the different network
   based on the filter. Is this possible?
 * [http://wordpress.org/extend/plugins/ad-injection/](http://wordpress.org/extend/plugins/ad-injection/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [reviewmylife](https://wordpress.org/support/users/reviewmylife/)
 * (@reviewmylife)
 * [14 years ago](https://wordpress.org/support/topic/plugin-ad-injection-ad-filtering/#post-2783354)
 * Hi xaotikdesigns, As you’ve spotted you could do this using a top ad for one 
   and a bottom ad for the other. That isn’t ideal though.
 * You can fully support this using widget ads but it sounds like you want to do
   it for in-content ads.
 * Your only other option would be to use PHP in the ad boxes to differentiate between
   the categories (there are some examples in the FAQ). This will only work in direct
   insertion mode – not mfunc mode.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Ad Injection] Ad Filtering’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ad-injection.svg)
 * [Ad Injection](https://wordpress.org/plugins/ad-injection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-injection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-injection/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-injection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-injection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-injection/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [reviewmylife](https://wordpress.org/support/users/reviewmylife/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-ad-injection-ad-filtering/#post-2783354)
 * Status: not resolved