WordPress plugin
Ad Inserter Pro
Ad Inserter Pro lets you configure where advertising and other code appears on a WordPress site. It supports Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. Blocks can also contain opt-in forms, analytics and tracking code, pictures, JavaScript, CSS, HTML, PHP, and raw HTTP response header lines.
Ad Inserter Pro lets you configure where advertising and other code appears on a WordPress site. It supports Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. Blocks can also contain opt-in forms, analytics and tracking code, pictures, JavaScript, CSS, HTML, PHP, and raw HTTP response header lines.
Choose where each block appears
Set automatic insertion before or after posts, content, paragraphs, images, comments, or excerpts. Rules can target random or multiple paragraphs, and blocks can appear between posts, excerpts, or comments. For layout-based placement, use CSS selectors or the visual HTML element selector and DOM explorer. Relative positions, custom WordPress hooks, and Gutenberg blocks provide other ways to work with page layouts.
Place code in the head, above the header 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 various ad code on AMP pages. Manual settings include widgets, shortcodes, and PHP function calls. Use custom fields, post titles, tags, or categories for contextual placement, and disable ads on selected posts or pages. Rules can also avoid inserting ads near images or headings.
The code preview includes syntax highlighting and a visual CSS editor. A visual advert editor can help create adverts, while code generators create banners, placeholders, or AdSense code.
Control delivery and presentation
Ad rotation can run server-side or client-side and works with caching. Timed rotation lets you set when adverts change within a block. Pro scheduling can set dates and times with a fallback option. Device detection supports desktop and mobile targeting on either the server or client, including with caching.
Presentation options include ad labels, custom alignment and styles, and wrapping classes. Sticky formats include fixed widgets and sidebars, floating slide-in banners, animated sticky ads, background or skin ads, parallax ads, and a sticky ad bar. Sticky ads can have a close button. Ad scripts can load after a user interacts with the website, or load when the page is scrolled.
Frequency capping can limit impressions or clicks. Click fraud protection can use a reCAPTCHA v3 score check to hide ads from invalid traffic. Ad blocking detection can display a popup or redirect; Pro also supports replacing ads or protecting content and tracking ad blocking statistics.
Target audiences and measure results
Geolocation can use internal or MaxMind databases to target by country, state, region, or city, including on cached websites. You can blacklist or whitelist IP addresses, countries, and cities. Other conditions can filter by category, tag, taxonomy, post ID, URL, URL parameter, cookie, referrer, browser, or operating system.
Ad Inserter Pro supports GDPR consent checks, including the IAB TCF 2.0 consent API, and can show ads when consent is given. On cached websites using cookie-based conditions, set dynamic blocks to client-side insertion so the cookie check runs in the visitor's browser.
For JavaScript adverts, including Google AdSense, Pro delivers impression and click statistics. Client reports can be prepared as PDFs or public web pages. External tracking can use Google Analytics or Matomo, and A/B testing can compare adverts and settings.
Install and verify placements
Install Ad Inserter Pro in WordPress, add advertising or other code to its blocks, then configure the insertion positions. Before publishing, review the preview, placement rules, labels, styles, targeting, and exclusions. After saving, check the page source and displayed placements. The extension inserts the code configured in its blocks, header, and footer.
Debugging functions can show inserted blocks, available insertion positions, and HTML tags. You can export or import settings, manage post and page exceptions, and limit settings across a multisite installation.