WordPress plugin

Ad Inserter Pro

Ad Inserter Pro manages the placement of ads and other configured code on WordPress sites. It supports Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. You can also insert opt-in forms, analytics, tracking code, JavaScript, CSS, HTML, PHP, pictures, and raw HTTP response header lines.

Ad Inserter Pro

Control where ads and code appear

Ad Inserter Pro manages the placement of ads and other configured code on WordPress sites. It supports Google AdSense, Google Ad Manager, Media.net, Infolinks, and rotating banners. You can also insert opt-in forms, analytics, tracking code, JavaScript, CSS, HTML, PHP, pictures, and raw HTTP response header lines.

Choose a placement method

For content-based placement, insert before or after posts, content, paragraphs, images, comments, or excerpts. Target random or multiple paragraphs, or place content between posts, excerpts, and comments. Custom WordPress hooks and positions in feeds or Ajax, RSS, and REST requests cover other insertion points.

For layout-based placement, use CSS selectors or the visual HTML element selector to target page elements. Relative positions and Gutenberg blocks offer other ways to work with a post layout. Manual options include widgets, shortcodes, and PHP function calls. Contextual rules can use custom fields, post titles, tags, and categories.

  • Add code in the page header, above the opening body content, or in the footer.
  • Use various ad codes on AMP pages or disable ads on selected posts and pages.
  • Create banners and placeholders with code generators, or build adverts in the visual advert editor.
  • Review code in the preview, adjust CSS in the visual editor, and set custom alignments, styles, labels, and wrapper classes.

Configure ad behavior

Ad Inserter Pro supports sticky widgets, including sticky sidebars, and can detect, conceal, or replace blank AdSense blocks. It includes an ads.txt editor and GDPR consent checks, and can use shortcodes from other extensions. Ad rotation can execute on the server or client side and work with caching. Scheduling and frequency capping are available for campaigns that need time or impression limits.

Target audiences and review activity

Geolocation can use internal or MaxMind databases for country, state, region, or city targeting, including with caching. IP addresses, countries, and cities can be added to blacklist or whitelist rules. Impression and click statistics are available for JavaScript adverts, including Google AdSense, and reports can be prepared as PDFs for clients.

Set up and check placements

Add ad or other code to a block, pick its insertion position, then configure styles, labels, targeting, and exclusions. Review the preview and placement rules before publishing. After saving, check the page source and displayed placements. Ad Inserter inserts the code configured in its blocks, header, and footer; the code itself may determine where an ad appears when it uses an automatic placement service.