=== Ad Engine - Gerenciador de Adx, Adsense e AdManager ===
Contributors: winup, winupsites
Tags: ads, ad inserter, ad engine, publishers, monetization
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Ad placement engine for publishers. Insert ads anywhere on your WordPress site.

== Description ==

**Ad Engine - Gerenciador de Adx, Adsense e AdManager** is a powerful ad placement tool for WordPress publishers. Configure up to 16 independent ad blocks and insert them anywhere on your site — before or after content, between paragraphs, in the header, footer, sidebar, or via shortcode.

= Features =

* 16 independently configurable ad blocks
* Insert ads anywhere: before/after content, between paragraphs, header, footer, shortcode, widgets
* Filters by post type, categories and tags
* Device detection (desktop, mobile, tablet)
* Scheduling by day of the week and time
* Request count per block
* Native Lazy Loading with IntersectionObserver
* Shortcode `[winup_ad id="1"]` for manual placement
* Sidebar widget
* Export and import block configuration as JSON
* Syntax highlighting in the code editors
* Virtual `ads.txt` served from the admin panel

= Coming soon =

* Ad Engine - Gerenciador de Adx, Adsense e AdManager Pro — advanced metrics, per-block reports, estimated RPM and performance charts

== Installation ==

1. Upload the `winup-ad-engine` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the **Plugins** menu in WordPress
3. Go to **Ad Engine - Gerenciador de Adx, Adsense e AdManager** in the WordPress admin sidebar
4. Configure your ad blocks

== Frequently Asked Questions ==

= How many blocks can I configure? =

16 independent blocks, each with its own settings for position, device, scheduling and more.

= Does the shortcode work anywhere? =

Yes. Use `[winup_ad id="X"]` (where X is the block number from 1 to 16) in posts, pages or any area that supports shortcodes.

= Can I copy the configuration from one site to another? =

Yes. Use the export button to download a JSON file with the block configuration, then import it on the destination site. Import offers two modes: merge (only replaces blocks that have content in the file) and replace all.

== Changelog ==

= 1.2.0 =
* Ajuste: plugin renomeado para Ad Engine - Gerenciador de Adx, Adsense e AdManager.
* Novo: syntax highlighting (CodeMirror) nos editores de código dos blocos e das configurações globais.
* Novo: exportação e importação da configuração dos blocos em JSON, com modos de mesclagem e substituição total.
* Correção: código de anúncio com a tag `<winupads>` não é mais descartado ao salvar o bloco.
* Correção: os blocos passam a ser injetados também em temas/page builders que aplicam o filtro `the_content` fora do loop principal.

= 1.1.0 =
* Correção: código de anúncio com <script> (Google Publisher Tag/AdSense) não é mais removido na sanitização.
* Correção: erro "div já associado a outro slot" do GPT em blocos com lazy-load (script deixou de ser executado em duplicidade).
* Novo: indicador na barra de administração mostrando os blocos ativos na página atual.
* Ajuste: nome do menu na barra lateral encurtado para "Winup Ad Engine".

= 1.0.5 =
* Plugin renamed to Winup Ad Engine - Gerenciador de Adx e Ads.
* Compliance fixes: plugin headers updated, version synced.
* Security improvements: additional escaping in admin templates.
* Updated readme.txt for WordPress.org directory compliance.

= 1.0.4 =
* Internal improvements and bug fixes.

= 1.0.3 =
* Internal improvements and bug fixes.

= 1.0.2 =
* Internal improvements and bug fixes.

= 1.0.1 =
* Internal improvements and bug fixes.

= 1.0.0 =
* Initial release with full Winup Ad Engine - Gerenciador de Adx e Ads module.

== Upgrade Notice ==

= 1.2.0 =
Plugin renamed to Ad Engine - Gerenciador de Adx, Adsense e AdManager. Recommended update: adds export/import of block configuration and syntax highlighting, and fixes ad code being stripped on save (`<winupads>` tag) and missing injection on themes that render content outside the main loop.

= 1.1.0 =
Recommended update: fixes ad <script> sanitization, resolves GPT duplicate-slot errors on lazy-loaded blocks, and adds a per-page block status indicator in the admin bar.

= 1.0.5 =
Recommended update with security improvements, compliance fixes and plugin rename.

= 1.0.0 =
Initial release.