WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Spacetime v2.8.18

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer code, PHP code, global custom fields

Ad Inserter

The facts

Rating
4.9★ from 2,428
Active installs
300k+
Price
Free
Last updated
27 Jul 2026
Added
Nov 2010
Requires WP
6.0
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
19,187,274

Our analysis

AI-assisted

Ad Inserter is a WordPress plugin designed for managing advertisements on your site. It allows you to insert various types of ads, including Google AdSense and Google Ad Manager, at optimal positions within your content. The plugin offers advanced options for customising ad placements, including the ability to use CSS selectors and manage ads on both desktop and mobile devices.

This plugin is suitable for users who need a flexible and powerful solution for ad management. It provides features for inserting ads in multiple locations, tracking performance, and ensuring compliance with advertising guidelines. It is particularly useful for site owners looking to maximise their ad revenue through precise placement and control over their advertising strategy.

Best for: Website owners and marketers looking for advanced ad management capabilities.

What it does well

  • Supports various ad types including Google AdSense and Media.net
  • Advanced options for inserting ads at specific positions
  • Includes a visual HTML element selector for precise placements
  • Offers features for GDPR compliance and ad blocking detection
  • Allows for custom code insertion including JavaScript and PHP

Where it falls short

  • No specific pricing information provided
  • Limited details on user experience or ease of use

Verdict

Ad Inserter provides a comprehensive set of features for managing ads effectively. It is a suitable choice for those seeking detailed control over ad placements and performance.

From the developer

Spacetime's own description of Ad Inserter, lightly tidied.

Ad management plugin with many advanced advertising features to insert ad codes at optimal positions.

Supports all kinds of ads including Google AdSense, Google Ad Manager (DFP – DoubleClick for publishers), Media.net , Infolinks and rotating banners.

This plugin is more than AdSense plugin or plugin for ads. It provides many advanced options to insert opt-in forms, header scripts, Javascript, CSS, HTML, PHP, analytics, tracking or advert code anywhere on the page.

Insert ads where other plugins fail.
It’s all about the settings.

Plugin reviews:

I’ve been using another ad placement manager for a couple years and just recently started using Ad Inserter.

I’m blown AWAY with the power and flexibility of it.

I can HIGHLY recommend this plugin to anyone looking for an easy way to manage ads within WordPress.

Difficult to choose, but certainly top 3 plugins I’ve ever used in WordPress, ever.

Features – check documentation for the complete list

  • AdSense integration
  • Support for Google Ad Manager (DoubleClick for publishers)
  • Syntax highlighting editor
  • Plain JavaScript code on front-end – no library dependencies
  • Code preview with visual CSS editor
  • Automatically inserts ads on posts and pages
  • Insert before or after post
  • Insert before or after content
  • Insert before or after paragraph
  • Insert before or after random paragraph
  • Insert before or after multiple paragraphs
  • Insert before or after image
  • Insert before or after comments
  • Insert before or after excerpt
  • Insert near any element on the page (using CSS selectors)
  • Insert above the header (after <body> tag)
  • Insert in the footer (before </body> tag)
  • Insert at relative positions in posts
  • Insert between posts on blog pages (in-feed AdSense)
  • Insert between excerpts on blog pages
  • Insert between comments
  • Insert at custom hook positions (do_action () WP function)
  • Insert before or after any HTML element using CSS selectors
  • Visual HTML element selector (DOM explorer)
  • Avoid inserting ads near images or headers (AdSense TOS)
  • Disable ads on individual posts or pages
  • Insert header (<head> section) and footer code
  • Insert raw HTTP response header lines
  • Insert Google Analytics, Matomo (Piwik) or any other tracking code
  • Insert images, HTML, CSS, Javascript or PHP code
  • Insert into Ajax, RSS and REST requests
  • Insert with Gutenbeg blocks
  • Code generator for banners and placeholders
  • AdSense code generator
  • Support to detect, hide or replace blank AdSense blocks
  • Visual advert editor – create adverts from scratch
  • Manual insertion: widgets, shortcodes, PHP function call
  • Sticky (fixed) widgets (sticky sidebar – the sidebar does not move when the page is scrolled)
  • Custom alignments and styles
  • Insert different ad codes on AMP pages
  • Custom CSS class name for wrapping divs to avoid ad blockers
  • Use shortcodes from other plugins
  • Use custom fields as defined in posts
  • Use post title, tags or category names to create contextual adverts
  • PHP code processing
  • Ad labels – show customized label above adverts
  • ads.txt editor
  • Global custom fields
  • Support for GDPR consent checks
  • Support for IAB TCF 2.0 GDPR consent API (used by Quantcast Choice)
  • Ad rotation (server-side and client-side – works with caching)
  • Timed ad rotation – define times to rotate adverts in a single ad block
  • Create rich media ads with standard WordPress TinyMCE editor
  • Ad blocking detection – popup message, page redirection
  • Desktop/mobile device detection (server-side and client-side – works with caching)
  • Blacklist/Whitelist categories, tags, taxonomies, post IDs, urls, url query parameters, cookies, referrers, browsers, operating systems
  • Easy copying and pasting ads or settings using internal clipboard
  • Use it with Google Site Kit or replace it to have more control over ad placement
  • Simple troubleshooting with many debugging functions
  • Function to visualize inserted blocks
  • Function to visualize AdSense ads with ad names and IDs
  • Function to visualize available insertion positions
  • Function to visualize HTML tags
  • You name it 🙂

Review on WP Mayor

The Best WordPress Ad Management Plugin?

Review on ShoutMeLoud

Both Google and Amazon recommend this plugin for inserting ads, which is a testament to its quality

Endorsed by GoogleHow to insert ad code in your WordPress site

If you’re new to AdSense, one of your first tasks is to connect your site to AdSense. This requires you to copy the code on your AdSense homepage and paste it into the HTML of your page, between the <head> and </head> tags.

  • Geolocation using internal or MaxMind databases (works also with caching)
  • Country, state, region and city level geotargeting
  • Blacklist/Whitelist IP addresses or countries/cities (works also with caching)
  • Ad impression and click statistics (works also with <iframe> Javascript ads like Google AdSense)
  • Statistics reports for clients in PDF format or public web pages
  • External tracking via Google Analytics or Matomo (Piwik)
  • A/B testing – discover adverts and settings that perform best
  • Frequency capping – limit impressions or clicks
  • Click fraud protection
  • reCaptcha v3 score check to hide ads from invalid traffic
  • Delayed loading of ad scripts until user interacts with the website
  • Lazy loading – delayed loading of ad scripts until the page is scrolled
  • Sticky ads with optional close button
  • Sticky sidebar ads (stick to the screen or to the content)
  • Floating slide-in banner adverts
  • Sticky (floating) ads with animations (fade, slide, turn, flip, zoom)
  • Animation trigger for sticky ads (page scroll in % or px, HTML element becomes visible)
  • background ads (skin ads)
  • Parallax ads
  • Support for sticky ad bar
  • Support for scheduling date and time with fallback option
  • Support to show ads as soon as the GDPR consent is given
  • Support for ads in iframes
  • Anti ad blocking features – replace ads, protect content
  • Ad blocking statistics
  • Multisite options to limit settings on the sites
  • Individual post/page exception management
  • Export and import of settings
  • Support via email

Run a WordPress related blog? Have experience with AdSense? Interested in reviewing the plugin or would like to become an affiliate? Introduce yourself.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for ads and banners.

Advanced Ads

The only complete toolkit for all ad types. Grow your revenue with AdSense, Amazon—or any affiliate network. G...

Free 100k+ installs 4.9★ (1,461)
Quads Ads Manager for Google AdSense

Ads &amp; AdSense plugin supporting Media.net, DFP, ads.txt, Web Stories ads, click fraud protection, revenue...

Free 20k+ installs 4.9★ (1,087)
Ads.txt Manager

Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, like any other content asset.

Free 100k+ installs 4.7★ (15)
Quick Adsense

Quick Adsense offers a quicker &amp; flexible way to insert Google Adsense or any Ads code into a blog post.

Free 20k+ installs 3.9★ (74)
Actirise

Premium advertising solution to grow your WordPress site revenue with no code and real-time insights.

Free 200+ installs 5★ (13)
Ad Commander

Ad manager for WordPress. Insert image banners, AdSense, Amazon, and affiliate network ads. Sell ads. Rotate,...

Free 200+ installs 5★ (4)