# adsPRO - Project Overview

## Purpose
PHP SaaS application for managing Google Ads campaigns, products, and clients. Integrates with Google Ads API, OpenAI, and Claude AI for AI-powered ad optimization. UI language: Polish.

## Tech Stack
- PHP (custom MVC framework, no Composer)
- MySQL via Medoo ORM (`global $mdb`)
- Frontend: jQuery 3.6, DataTables 2.1, Bootstrap 4, Select2, Highcharts, Font Awesome 6.5
- SASS for styles (compiled by VS Code Live Sass Compiler)
- Deployment: FTP auto-upload via VS Code FTP-Kr

## Architecture
- Controllers: `autoload/controls/class.*.php` (namespace `\controls`)
- Factories: `autoload/factory/class.*.php` (namespace `\factory`)
- Views: `autoload/view/class.*.php` (namespace `\view`)
- Services: `autoload/services/class.*.php` (namespace `\services`)
- Templates: `templates/` (variables via `$this->varName`)
- Routing: `index.php`, URL `/module/action/` → `\controls\Module::action()`

## Entry Points
- `index.php` - Main app (routing + auth)
- `ajax.php` - AJAX requests (authenticated)
- `api.php` - Public API
- `cron.php` - Background jobs
- `install.php` - Database migration runner
