Ads Manager Pro WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/marselnikolli/wp-ads-manager/archive/refs/heads/master.zipProfessional ad management system with desktop/mobile versions, analytics, click tracking, CTR reporting, scheduling, and rotation.
Description
Ads Manager Pro is a comprehensive WordPress plugin for managing advertisements on your website. With support for both desktop and mobile versions, advanced analytics, click tracking, and beautiful Monokai-themed admin interface.
Key Features
Ad Management
- Separate desktop and mobile ad versions
- Support for image and code-based ads (Google AdSense, custom HTML, etc.)
- Click-through links for image ads
- Scheduled ad campaigns with start/end dates
- Toggle ads on/off without deleting
- Bulk operations and ad duplication
- Import/Export functionality for easy migration
Analytics & Reporting
- Real-time impression tracking
- Click tracking with CTR (Click-Through Rate) calculation
- Beautiful charts and visualizations
- Date range filtering
- Performance metrics by ad and placement
- Export analytics data
Auto-Injection
- Automatically inject ads into post content
- Multiple position types: after/before paragraph, before/after content, after/before CSS element
- Per-placement ad limits
- Works with any registered placement
Performance Optimized
- Query caching with WordPress Transients (5-minute cache)
- Batched impression logging to reduce database load
- Automatic data cleanup (configurable retention period)
- Optimized database indexes for fast queries
- CRON-based background processing
Security First
- XSS protection with wp_kses sanitization
- SQL injection prevention with prepared statements
- Nonce verification on all AJAX requests
- Input validation and error handling
- User capability checks
Developer Friendly
- PSR-4 autoloading
- Singleton pattern for core classes
- Separated concerns (Model, View, Controller)
- Namespace support
- Well-documented code
- WordPress Coding Standards compliant
Beautiful UI
- Monokai color theme
- Fully responsive admin interface
- Smooth animations and transitions
- Intuitive drag-and-drop interface
- Real-time search and filtering
Usage
Auto-Injection (recommended) Configure rules in Ads Manager > Ad Spaces > Auto-Injection Rules to automatically inject ads into post content based on position rules (after paragraph N, before content, after CSS element, etc.).
Template Tag <?php echo ads_manager_display('header'); ?> <?php echo ads_manager_display('sidebar', 3); ?>
Placements
Define your own ad placements in the "Ad Spaces" tab. Common placements:
- header
- sidebar
- footer
- content-top
- content-bottom
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6 or higher
Installation
- Upload the
ads-managerfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to 'Ads Manager' in the WordPress admin menu
- Create your first ad placement in the "Ad Spaces" tab
- Add your first ad in the "Ads Setup" tab
- Configure auto-injection rules in "Ad Spaces" under Auto-Injection Rules, or use the template tag
<?php echo ads_manager_display('header'); ?>in your theme
Frequently Asked Questions
Can I use different ads for mobile and desktop?
Yes! Each ad has separate desktop and mobile versions. You can use different images or code for each device type.
Does it support Google AdSense?
Absolutely! Just paste your AdSense code in the "Code" field for either desktop or mobile versions.
How does ad rotation work?
Ads in the same placement will automatically rotate with a smooth fade transition. You can configure the rotation interval in Settings.
Can I schedule ads for specific dates?
Yes! Set start and end dates for each ad. Ads will automatically activate and deactivate based on these dates.
How is click tracking implemented?
Click tracking uses AJAX to log clicks without disrupting the user experience. CTR is calculated as (Clicks / Impressions) × 100.
How does auto-injection work?
Auto-injection hooks into WordPress's the_content filter. You define rules specifying which placement to use, where to inject (after/before paragraph, before/after content, after/before CSS element), and an optional limit on ads. Rules are processed in order.
Will this slow down my site?
No! The plugin uses intelligent caching (5-minute transients), batched database operations, and optimized queries to minimize performance impact.
Can I export my ads for backup?
Yes! Use the Import/Export tab to export all ads to JSON format and import them on another site.
How long is analytics data kept?
By default, impression and click data is retained for 90 days. You can customize this in the Settings tab.
Is it GDPR compliant?
The plugin logs minimal user data (IP address and user agent for clicks). You should disclose this in your privacy policy if required by GDPR.
Screenshots
- Main ads management interface with Monokai theme
- Create/Edit ad form with desktop and mobile versions
- Analytics dashboard with charts and CTR metrics
- Ad placements configuration with auto-injection rules
- Global settings panel
- Import/Export functionality
Changelog
2.2.0
- NEW: Auto-injection system — automatically inject ads into post content
- NEW: Position types — after/before paragraph, before/after content, after/before CSS element
- NEW: Auto-injection rule management in admin UI
- CHANGED: Deprecated shortcode and widget in favor of auto-injection
- CHANGED: Updated template tag to custom function ads_manager_display()
2.0.0 - 2026-01-08
Major Update - Complete Rewrite
- NEW: Click tracking and CTR analytics
- NEW: Advanced analytics dashboard with Chart.js visualizations
- NEW: Import/Export functionality (JSON format)
- NEW: Ad duplication feature
- NEW: Search and filter in ads list
- NEW: Global settings for rotation interval and data retention
- NEW: Monokai color theme for admin interface
- NEW: Responsive mobile-friendly admin panel
- NEW: Database schema versioning system
- IMPROVED: Complete code refactoring with MVC architecture
- IMPROVED: Singleton pattern for all core classes
- IMPROVED: PSR-4 autoloading
- IMPROVED: Namespaced code (DiginvictusAdsManager)
- IMPROVED: Query caching with WordPress Transients (5-min cache)
- IMPROVED: Batched impression logging for better performance
- IMPROVED: Optimized database indexes
- IMPROVED: XSS protection with wp_kses sanitization
- IMPROVED: SQL injection prevention with prepared statements
- IMPROVED: Comprehensive input validation
- IMPROVED: Better error handling and user feedback
- IMPROVED: CRON-based automatic data cleanup
- IMPROVED: Lazy loading for ad images
- IMPROVED: Smooth fade transitions between ads
- FIXED: Security vulnerabilities (XSS, SQL injection)
- FIXED: Performance issues with large datasets
- FIXED: Memory leaks in impression logging
1.0.0
- Initial release
- Basic ad management
- Desktop/Mobile versions
- Placement system
- Simple analytics
- Scheduling support
Upgrade Notice
2.2.0
Adds auto-injection system. Shortcode and widget are removed. If you were using [ads_manager] shortcode or the widget, migrate to ads_manager_display() template tag or configure auto-injection rules in the admin.
2.0.0
Major update with breaking changes. The database schema has been updated with new tables and indexes. Backup your database before upgrading. All existing ads will be preserved, but you'll get new analytics features and improved performance.
Support
For support, feature requests, or bug reports, please visit: https://github.com/diginvictus/ads-manager/issues
Credits
- Developed by Diginvictus.com
- Chart.js for analytics visualizations
- Monokai color scheme by Wimer Hazenberg
Privacy Policy
This plugin stores the following data:
- Ad content and settings
- Impression timestamps
- Click timestamps with IP address and user agent
The plugin does NOT:
- Share data with third parties
- Use cookies
- Track users across sites
License
This plugin is licensed under the GPLv2 or later: https://www.gnu.org/licenses/gpl-2.0.html
Releases
3 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.