=== Arb Ad Manager Pro ===
Contributors: arbdigital
Tags: ads, adsense, ad inserter, ad manager, advertising, banner, ad rotation, ab testing
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
Stable tag: 1.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Next-level ad management for WordPress — insert AdSense, banners and any code automatically or manually with precise targeting, A/B testing, rotation, sticky ads, lazy loading, AdBlock detection, GEO targeting, scheduling, analytics and an ads.txt editor.

== Description ==

Arb Ad Manager Pro is a complete, premium-grade ad management plugin that is powerful yet genuinely easy to use. It gives you 24 ad blocks, each with its own code, placement and targeting rules.

**Insertion positions**
* After / before any paragraph (count from top or bottom)
* Before / after content, excerpt
* Before / after the first image
* Page header (wp_head) and footer (wp_footer)
* Any custom theme action hook (e.g. WooCommerce hooks)
* Manual — shortcode `[arb_ad block="3"]`, widget, or PHP `arb_adm_block(3)`

**Targeting & conditions**
* Page types: posts, pages, homepage, category, tag/tax archives, search, 404
* Categories, tags, specific post/page IDs
* URL white/black lists (wildcards), referrers
* Devices: desktop / tablet / mobile
* User roles (show or hide)
* Scheduling: start/end dates + days of week
* GEO targeting by country (Cloudflare / GEO header)

**Premium features**
* Weighted ad rotation + A/B testing with per-variant stats
* Lazy loading (IntersectionObserver) for faster pages
* Sticky top/bottom bars and closeable floating ads
* Impression & click tracking with a clean Statistics dashboard
* AdBlock detection — show a message or fallback content
* AdSense Auto Ads + responsive unit generator
* Virtual ads.txt editor (served at /ads.txt)
* Header/footer code injection
* GDPR consent gating
* One-click import / export (JSON)

== Installation ==
1. Upload the `arb-ad-manager` folder to `/wp-content/plugins/`.
2. Activate through the Plugins screen.
3. Go to **Arb Ad Manager** in the admin menu.
4. Pick a block, paste your ad code, choose a position, enable it, Save.

== Frequently Asked Questions ==

= Does it work with Google AdSense? =
Yes. Use the AdSense unit generator in Tools, or paste your own code. Auto Ads is supported too.

= Will it slow my site down? =
No. Enable lazy loading per block; assets are tiny and only load when needed.

== Changelog ==

= 1.1.0 =
* New: Gutenberg block "Arb Ad Block" to insert any ad block visually.
* New: GDPR consent gating now enforced server-side (cookie check).
* New: Per-block "Advertisement" label toggle.
* New: Configurable paragraph tag is now honoured by the insertion engine.
* New: Disable WordPress emoji scripts (performance) option.
* New: Block toolbar — Copy a block to another slot, or Clear a block.
* New: Statistics now show an impressions-share bar per block.
* Fix: Removed broken Statistics/Settings sidebar submenu links (use the in-page tabs).

= 1.0.0 =
* Initial release.
