=== Ref4 Campaign Manager ===
Contributors: khademhosseini
Tags: ads, advertising, context ads, campaign, marketing, ad management, monetization, post targeting
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Author: khademhosseini
Author URI: https://ref4.com

Ref4 Campaign Manager lets you manage campaigns and inject targeted ads based on post context.

== Description ==

Ref4 Campaign Manager provides:

* Campaign management with priority.
* Title keyword and category targeting.
* Mobile/Desktop device rules.
* Placement options: before, after, middle, after paragraph.
* Weighted ad rotation.
* Impression and click analytics.
* Basic REST API endpoints.

== Installation ==

1. Upload the `ref4-campaign-manager` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Ref4 Campaigns** in WP Admin.
4. Configure settings and create campaigns.

== Frequently Asked Questions ==

= Does it support Gutenberg and classic posts? =
Yes. Ads are injected through `the_content`.

= Can I keep data on uninstall? =
Yes. Enable **Keep Data On Uninstall** in settings.

= Does the plugin track impressions and clicks? =
Yes. It stores ad impression/click counters locally in your WordPress database.

= Does this plugin send data to external servers? =
No. Ref4 Campaign Manager does not send campaign or analytics data to third-party servers.

== Screenshots ==

1. Ref4 Campaign Manager dashboard overview.
2. Campaign creation/edit screen.
3. Settings page.

== Upgrade Notice ==

= 1.0.0 =
Initial stable release for context-aware campaign management.

== Privacy ==

Ref4 Campaign Manager stores campaign settings, targeting rules, and ad analytics (impressions/clicks) in your local WordPress database.
No campaign analytics are sent to external services by default.
If enabled, Keep Data On Uninstall keeps plugin data during uninstall.

== Changelog ==

= 1.0.0 =
* Initial release.
