This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
- An invalid Client ID no longer silently erases the saved one (which disabled ads site-wide); an admin notice is shown instead.
- The
pub-…publisher ID from the AdSense account is accepted and converted toca-pub-…; pasted whitespace is removed. crossorigin="anonymous"is now actually added to the script tag.- The "Posts page" can be excluded by its page ID; archive pages can no longer match an excluded ID by accident.
- Invalid entries in the excluded-ID list are reported instead of silently dropped.
- Prefixed the settings page callback to avoid "Cannot redeclare" conflicts with other plugins; settings page renamed to "AdSense Inject".
Install: download adsense-inject-1.12.zip and upload it via Plugins → Add New → Upload Plugin. The ZIP contains the folder adsense-inject/, so future updates replace the plugin in place.
Privacy: the plugin does not handle consent itself. See the README for notes on GDPR and Google's own CMP.