Ads Banner
SECTION 20 — AD BANNER MANAGEMENT SYSTEM
20.1 Overview
Teachers manage their own ad banners (course promotions, announcements, etc.) which are dynamically injected into their PDF outputs. Ad management is in Teacher Account Settings → Ad Banners.20.2 Ad Banner Configuration
Each ad banner has the following fields:20.3 Document Type Assignment
- Each ad banner is assigned to one or more document types: Newsletter, Compilation, Magazine (any combination).
- Assignment is per-banner, not per-document-instance.
20.4 Ad Scheduling Controls
Each ad banner has scheduling settings that determine when it appears:Multiple schedule types can be combined for a single ad banner (e.g. always daily AND also on specific festive dates).
20.5 Injection Logic
- During WeasyPrint PDF rendering, the backend:
- Checks which ad banners are active for the document’s Teacher, document type, and document date.
- Injects qualifying ads into the PDF at designated positions in the WeasyPrint template.
- Scheduling rules are evaluated server-side — not client-side.