WordPress plugin
Ad Inserter Pro
Ad Inserter Pro lets you configure where advertising and other code appears on a WordPress website. It works with Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. Blocks can also contain opt-in forms, analytics and tracking code, images, HTML, CSS, JavaScript, PHP, and raw HTTP response header lines.
Manage ads and code across WordPress
Ad Inserter Pro lets you configure where advertising and other code appears on a WordPress website. It works with Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. Blocks can also contain opt-in forms, analytics and tracking code, images, HTML, CSS, JavaScript, PHP, and raw HTTP response header lines.
Choose placement rules for each block
Insert code before or after posts, content, paragraphs, images, comments, or excerpts. Rules can target random or multiple paragraphs, or place blocks between posts, excerpts, and comments. For layout-based placement, use CSS selectors or the visual HTML element selector. Relative positions within posts, custom WordPress hooks, and Gutenberg blocks provide other options.
Blocks can go in the head, after the opening body tag, or in the footer. Ad Inserter Pro can also insert code in feeds and Ajax, RSS, or REST requests, and use different ad code on AMP pages. For manual placement, use widgets, shortcodes, or PHP function calls. Custom fields, post titles, tags, and categories can inform contextual placements.
- Use the visual advert editor to make adverts, or the code generator for banners and placeholders.
- Preview code and adjust its presentation with the visual CSS editor, custom wrapping classes, labels, alignments, and styles.
- Disable ads on selected posts or pages, and use shortcodes from other add-ons.
- Manage ads.txt, check consent conditions, and detect, conceal, or replace blank AdSense blocks.
Pro targeting and ad management
Geolocation can use an internal or MaxMind database and target by country, state, region, or city. These location rules and IP, country, or city blacklists and whitelists are designed to work with caching. Pro also supports ad scheduling with fallback settings, A/B testing, frequency caps, and impression or click limits.
Track impressions and clicks for JavaScript adverts, including Google AdSense. Prepare statistics reports for clients as PDFs. Other ad controls include delayed or lazy loading of ad scripts, ad-blocking detection and responses, and sticky formats such as sidebars, floating banners, and ad bars. Sticky ads can use close buttons or animations.
Setup and placement checks
After installing the plugin in WordPress, add the advertising or other code to a block and select its insertion position and conditions. Review the preview, labels, styles, targeting, and exclusions before publishing. Check the resulting page source and visible placements after saving, since the configured code determines what the blocks, header, and footer insert.
