What is AdSanity plugin?
AdSanity is a premium WordPress ad management plugin designed for publishers and local businesses that sell or manage advertising directly — placing HTML5 banner ads, self-hosted image ads, or ad network codes on their site with clean organization, scheduling, and click/impression statistics. Unlike Advanced Ads or Ad Inserter (which prioritize ad network flexibility and code injection), AdSanity is designed for the media publisher use case: managing ad spots that clients pay for, scheduling campaigns with start and end dates, and providing basic reporting to advertisers.
Starting at $49/year, AdSanity provides a dedicated ad post type, two ad expiry options (date-based and infinite), built-in click and impression statistics, and placement via widgets, shortcodes, and template tags. The plugin is intentionally lightweight — no complex targeting or rotation by default — keeping the plugin size and database footprint minimal. Add-ons extend functionality with Google Analytics integration, AdSense network support, ad groups/rotation, and network ad integration.
AdSanity’s primary audience is local news sites, niche publications, and community websites that sell direct ad placements to local businesses rather than running programmatic advertising. For these publishers, AdSanity’s clean campaign management and scheduling provides a more professional ad management experience than manually inserting image tags or using a code injection plugin.
Need Help With AdSanity Setup, Troubleshooting, or Customization?
Need help with AdSanity? Whether you are dealing with errors, broken functionality, styling problems, plugin conflicts, or advanced customization, we can help you fix the issue and get the plugin working properly on your WordPress site.
Get AdSanity Expert HelpKey Features
- Dedicated Ad custom post type for organized ad management
- Ad expiry types: date-based campaigns with start/end dates, or infinite (run until removed)
- Click and impression tracking per ad
- Placement via widget, shortcode [adsanity id=X], and PHP template tag
- Ad groups for rotation (via add-on)
Pros & Cons
Pros
- Purpose-built for direct ad sales — date-based scheduling is ideal for campaign management
- Built-in click and impression stats provide basic reporting for advertisers
- Extremely lightweight plugin with minimal performance impact
Cons
- Premium-only ($49/year) for a plugin with limited free functionality compared to Ad Inserter free
- Advanced rotation and targeting require paid add-ons
Free vs Premium
No meaningful free version. $49/year base plugin. Add-ons available separately for Google Analytics, rotation groups, and specific ad network integrations.
Common Problems & Fixes
AdSanity ads with a past end date are still displaying on the site. How do I ensure expired ads stop showing?
AdSanity date-based ads should automatically stop displaying after their end date. If expired ads continue: (1) verify the ad type is set to “Date Based” (not “Infinite”) in the ad settings; (2) check that the WordPress timezone setting (Settings → General → Timezone) matches your expected time — a mismatch between server time and configured timezone can cause ads to expire at unexpected times; (3) clear all page and object caches — cached pages continue showing ads that have expired until the cache is rebuilt; (4) verify the end date is saved correctly by reopening the ad and checking the stored date.
AdSanity ad click statistics are not being recorded — the click count stays at zero even after confirmed clicks. How do I fix click tracking?
AdSanity click tracking uses an AJAX call when an ad is clicked. If tracking is not working: (1) check if an ad blocker is intercepting the tracking AJAX call — test in incognito without browser extensions; (2) verify the WordPress AJAX URL is accessible — go to AdSanity → Settings and check the configured AJAX URL; (3) a security plugin may be blocking the AJAX tracking request — check for “blocked POST request” entries in security plugin logs; (4) test on the same device as the claimed clicks to verify the click tracking fires in your own browser environment.
AdSanity shortcode is not displaying the ad in the post — [adsanity id=X] outputs a blank space. How do I fix the shortcode?
A blank shortcode output indicates: (1) the ad ID is incorrect — verify the ID in AdSanity → All Ads matches the shortcode ID; (2) the ad is expired (past its end date) or not yet active; (3) the ad has no image/HTML content — open the ad edit screen and verify content is saved; (4) a plugin conflict is stripping shortcode output — test on a default WordPress theme with other plugins deactivated; (5) the ad is set to display in certain locations but the post type is excluded. Use [adsanity id=X show_if_expired=false] to verify display with explicit settings.
Customization & Developer Notes
How do I create a date-based ad campaign for an advertiser running a 30-day promotion?
Go to AdSanity → Add New Ad. Upload the advertiser’s banner image or paste their ad code in the HTML field. Set Ad Type to “Date Based.” Configure the Start Date (campaign start) and End Date (30 days later). Add the ad to the desired widget area, or copy the shortcode [adsanity id=X] and place it in the post or page where the ad should appear. The ad automatically displays starting on the Start Date and stops appearing after the End Date — no manual intervention needed to pause the campaign at expiry.
How do I create an ad rotation group in AdSanity?
Ad rotation in AdSanity requires the Ad Groups add-on. After installing: go to AdSanity → Ad Groups → Add New Group. Name the group and add the ads to include in the rotation. Each time the group’s placement is displayed, one ad from the group is shown based on the configured rotation method (random or sequential). Use the group shortcode [adsanity_group id=X] to place the rotation wherever needed. Rotation groups are useful for A/B testing different advertiser creatives or rotating multiple advertisers in a single ad slot.
Frequently Asked Questions
Is AdSanity better than Advanced Ads for a local news site selling direct advertising?
AdSanity’s campaign management workflow (date-based scheduling, per-ad statistics, clean advertiser-focused reporting) is more purpose-built for direct ad sales than Advanced Ads, which is more oriented toward programmatic network ad management. For a local news site with 5-20 direct advertising clients, AdSanity’s simplified ad management and built-in campaign scheduling is a better workflow fit. For a site running primarily AdSense, Media.net, or other network ads with complex targeting, Advanced Ads’ network integration and visitor targeting are more valuable.
Does AdSanity support Google AdSense ads?
AdSanity supports Google AdSense through a dedicated add-on (AdSense add-on) that allows connecting an AdSense account and placing AdSense ad units within AdSanity’s management interface. Without the add-on, AdSense code can still be manually pasted into AdSanity’s HTML ad field as a custom HTML ad — but auto-optimization features and AdSense-specific formatting require the dedicated add-on.
Can AdSanity break after updates?
Yes, that can happen, especially on older sites with many plugins. This usually happens when the plugin, theme, and add-ons are updated out of sequence. In most cases, testing on staging catches the issue before it reaches the live site. From experience, backups and changelog reviews save a lot of cleanup time.
What should I check before installing AdSanity?
Start by checking whether another plugin already does the same job. In most cases, overlap is what creates avoidable conflicts and performance issues. A common issue is installing a plugin because it looks convenient without checking the stack first. From experience, a short compatibility review avoids most of the pain later.