Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense icon

Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense

v1.6.2
by MantraBrain · 5.0 (3 reviews)

Add google adsense code to your WordPress site. No need to configure too much, just put publisher ID from Settings->Google AdSense.

2K+ active installs Updated Nov 26, 2026 Tested to 7.2 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense

This plugin allows you to easily add Google AdSense code to your WordPress site by simply entering your Publisher ID. Google AdSense Auto Ads uses machine learning to place ads on your site where they will perform well and provide a good user experience. To use the plugin, install and activate it, enter your AdSense Publisher ID, and configure your ad types in your Google AdSense account.

Screenshots

Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense screenshot
Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense screenshot
Simple Google AdSense for WordPress, Google Ads – Simple Google AdSense screenshot

Changelog

1.6.2 | 2026/11/26

  • Improved: tested with WordPress 7.2, including its new default theme, Ipsum, on PHP 7.4 to 8.5.
  • Improved: “Tested up to” is now kept only in readme.txt, as WordPress.org’s Plugin Check asks.

1.6.1 | 2026/11/10

  • Fixed: on some sites the Delivery box (label, start and end dates, statistics) stayed hidden on the ad unit screen even though it was ticked under Screen Options. The box now always shows, and its fields follow the ad type; AdSense units show a short note instead.
  • Fixed: the ad unit screen now also follows type changes made by select-menu plugins.

1.6.0 | 2026/11/06

New

  • Any number of in-content ads: every N paragraphs with a maximum per post, or after any paragraph. Short posts are skipped and these ads keep their distance from other ads.
  • Place an ad before or after an HTML element by CSS selector, safe with page caching and with space reserved.
  • Conditions on every placement: device, category, tag, specific posts and language.
  • Per-post box: no ads, no Auto Ads or no manual ads. Searchable post picker for the page exclusions.
  • AMP support with the official AMP plugin (amp-ad, amp-auto-ads).
  • Elementor widget and Bricks element, plus wpml-config.xml and a language rule for WPML and Polylang.
  • Personal data exporter and eraser, and accurate privacy policy text.

Security

  • The statistics endpoint needs a page token, refuses other sites’ requests and bodies over 16 KB, and limits requests per visitor without an object cache.
  • A day’s clicks on an ad can no longer pass its impressions; extra clicks are set aside and shown in Reports. Statistics are labelled as estimates.
  • The ad list REST route is closed however the URL is written.

Fixed

  • “Load ads after consent” no longer releases ads on a timer. It reads CookieYes, Complianz and Cookiebot, and warns when a tool cannot be read. Sites with this option on get stricter behaviour: if AdFlow cannot read your consent tool, ads are held for all visitors until you act. Check the Privacy tab after updating.
  • Scheduled ads and their AdSense fallbacks now switch on cached pages.
  • “After paragraph” no longer counts paragraphs inside columns, covers, media-and-text blocks, templates or other ads.
  • With Auto Ads off, the AdSense library loads without the Auto Ads client parameter. Also turn Auto Ads off in your AdSense account.
  • Roles with “Create & edit ads” can add ads without the core Posts capability, and limited roles no longer see dead links.
  • Importer handles Ad Inserter’s rotation and Before/After post; an import no longer turns on Auto Ads; a second after-paragraph ad becomes an extra ad.
  • Dashboard and checklist tell the truth about invalid Publisher IDs and wrong ads.txt files. Uppercase PUB- IDs are accepted.
  • The redirect link no longer counts clicks in the in-page mode; unknown placements no longer create statistics rows; report dates are validated.
  • DuckDuckGo, Yandex and Pinterest apps and some phones were treated as bots.
  • Statistics no longer refuse visitors on multisite networks whose site address differs from the network domain. Ads scheduled for later stay out of RSS feeds. The ads.txt screen no longer offers serving the file on a subfolder site.
  • “Will this ad show?” for groups with nothing left to show, and it now mentions consent.
  • New blocks use the correct in-article and multiplex code. Custom-code units with a device rule no longer run on the wrong device.

Improved

  • Long reports are cached with today kept live; fewer option queries per page; uninstall removes everything.
  • Phone layouts, accessibility and contrast; plainer wording; the Pro row is gone from Site health and Pro cards can be hidden.
  • The upgrade page now says how to install Pro after buying, and its screens and claims match the current plugin.

1.5.0 | 2026/10/17

  • New: turn manual ads off on chosen content types or single posts and pages (Settings General Manual ads Turn off on), just like the Auto Ads exclusions. It covers placements, the AdFlow Ad block, widgets and shortcodes. Nothing changes until you choose something.
  • New: under both “Turn off on” ID fields, the settings show which posts and pages the IDs belong to and flag IDs that do not exist.
  • New: the Ad Inspector says when manual ads are turned off on the page you are viewing.
  • New: developer filter adflow_manual_ads_excluded.
  • Improved: an ID excluded from Auto Ads now also works for the page set as the “Posts page”.

1.4.1 | 2026/09/30

  • Improved: the built-in help, readme and notices use the real names (the “AdFlow Ad” widget, “Max manual ads per page”, “Show manual ads”) and describe the Ad Inspector states and the earnings “best performer” exactly.
  • Improved: a link to the online documentation on the Docs screen.

1.4.0 | 2026/09/28

New

  • Ad Units library – configure an ad once and reuse it in shortcodes ([adflow id="…"]), the block, the widget and placements
  • Automatic placements – before content, after paragraph N and after content, per post type
  • ads.txt manager – serves the AdSense line automatically, custom lines with validation, and a live check
  • Privacy & consent – Google Consent Mode v2 defaults and updates (WP Consent API) and “load ads after consent” for IAB TCF v2.2 messages and consent plugins
  • Your own ads – image banners and text ads with sponsored links, disclosure label, scheduling and AdSense fallback
  • Cookieless impression, viewable-impression (IAB/MRC) and click statistics for your own ads, with bot and prefetch filtering, and a Reports screen
  • Rotation groups, and optional click counting through a redirect link with tracking macros
  • Switch to AdFlow – import ads, groups, placements and statistics from Advanced Ads, Ad Inserter, AdRotate and WP QUADS; their shortcodes keep working after you deactivate them
  • Roles and permissions, and an approval workflow: ads from users without “Publish ads” wait for review and reviewers are emailed
  • Ad Inspector in the toolbar, “Will this ad show?” diagnostics, failsafe rendering and Dashboard health checks with a setup checklist
  • Auto Ads exclusions by post type and by post/page ID, and an option to hide ads from logged-in administrators
  • Optional “Advertisements” / “Sponsored Links” ad label
  • Custom code ad units for other networks (requires the unfiltered_html capability)
  • AdFlow Ad widget for classic sidebars
  • Docs – the complete AdFlow and AdFlow Pro documentation under AdFlow Docs, searchable
  • Redesigned admin with its own menu (Dashboard, Ad Units, Placements, Reports, Settings, Docs); the old Settings AdFlow URL redirects

Improved

  • “Matched Content” is now called Multiplex, as in AdSense; old shortcodes still work
  • Rotation groups only pick among ads that may show right now (schedule, days/hours, frequency cap)
  • Multisite uninstall respects each site’s “delete data” choice; Dashboard checks no longer slow the screen down
  • The MantraBrain news dashboard widget is opt-in (mantrabrain_show_dashboard_widgets filter), admin-only, and no longer forces itself to the top

Fixed

  • In-article ads were missing Google’s data-ad-layout="in-article" markup
  • In-feed ads can now carry the required data-ad-layout-key (layout_key shortcode attribute and block field)
  • Pages excluded from Auto Ads could still get Auto Ads when they contained a manual ad
  • Custom code with a schedule, country or frequency rule could load before the rule hid it
  • Tracking macros such as {ad_id} in a destination URL were removed when the ad was saved
  • Frequency caps now work with statistics turned off
  • Keyboard users tabbing into an ad frame were counted as clicks
  • Importing a Publisher ID on a new site could switch ads off
  • A malformed Publisher ID no longer outputs ad code that Google would reject; the settings screen says what is wrong with it

Security

  • Users who may create but not publish ads can no longer change or remove live ads without review
  • The shortcode ad_client override is only honoured in content from users who can post unfiltered HTML; shortcode style/class are sanitized; ad units are no longer listed over the public REST API

Changed

  • Uninstalling keeps your data unless you opt in to deleting it (Settings General Your data)

Developers

  • New hooks: adflow_should_display_ad, adflow_ad_markup, adflow_placement_types, adflow_ads_allowed, adflow_ad_types, adflow_render_ad_type, adflow_fx_config, adflow_imported and more
  • The settings screen keeps its simple-google-adsense-settings slug (hook suffix adflow_page_simple-google-adsense-settings)

1.3.0 | 2026/08/21

  • FIXED: Manual Ads never displayed unless Auto Ads was also switched on – the AdSense library is now loaded whenever a shortcode or block renders an ad
  • FIXED: Turning off “Enable Auto Ads” had no effect; the setting was not saved when the box was unticked
  • FIXED: A Publisher ID pasted as “ca-pub-XXXX” produced an invalid “ca-ca-pub-XXXX” ad client. Both forms, and a bare ID, are now accepted
  • FIXED: Configuration errors were printed into the page for logged-out visitors; they are now shown only to users who can change the settings
  • SECURITY: The Publisher ID is escaped before it is written into the page, and all admin screen output is escaped
  • NEW: Auto Ads now uses Google’s current snippet over HTTPS, replacing the deprecated enable_page_level_ads call
  • NEW: The block is registered from block.json using Block API v3
  • IMPROVED: Tested up to WordPress 7.1; now requires WordPress 6.3+ and PHP 7.4+
  • IMPROVED: The ad stylesheet and AdSense library load only on pages that actually contain an ad
  • IMPROVED: Translation files load from the plugin’s /languages folder, which previously pointed at a folder that did not exist
  • IMPROVED: The settings page no longer hijacks other admin forms, and its misleading “Auto-saving…” indicator has been removed

1.2.0 | 2025/07/28

  • NEW: Added Manual Ads support with shortcodes and Gutenberg blocks
  • NEW: Implemented comprehensive documentation sidebar
  • NEW: Added multiple shortcode types (banner, in-article, in-feed, matched content)
  • NEW: Created Gutenberg block with visual editor integration
  • NEW: Enhanced error handling and user guidance
  • NEW: Added Publisher ID and Ad Slot ID creation guides
  • IMPROVED: Modern, responsive admin interface design
  • IMPROVED: Better Auto Ads integration and configuration
  • IMPROVED: Enhanced CSS styling for all ad types
  • IMPROVED: Added help links to official Google documentation

1.1 | 2024/03/22

  • Tested with version 6.5
  • Basic Auto Ads functionality

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…