Fast-tier, per-member pre-roll ad decisioning
Scores an eligible ad pool for the CURRENT member (never a seat/group average) — age-gated, cost-metered, output-guarded, audited. seatId/memberSlot are un-trusted locators only; airline_id and the member’s age tier are always server-resolved. selectedAd is honestly null when no eligible ad clears the match threshold, or when the age gate/view-cap/cooldown filters leave nothing eligible. Carries no monetary field anywhere.
Authentication
OAuth authentication of the form <token>.
Headers
The passenger-session locator (a within-tenant locator, never a trust assertion). A missing or key-unsafe value is rejected 400 before this handler runs.
Request
The content that is about to play — the pre-roll decision’s title context.
Ad ids this session has already shown, oldest first. Feeds the cooldown window and per-ad view cap.
Ad id to the passenger’s last recorded reaction to it (e.g. “skipped”, “completed”). Advisory signal only, never a trust assertion.
Optional elapsed session time in milliseconds — advisory context only.
Response
0..100. Meaningless (reported as 0) when selectedAd is null.
Passenger-visible model free-text explaining the pick. Output-guarded.
A short (target ≤12 words) passenger-visible model free-text summary. Output-guarded.
One ad card. Carries no monetary field anywhere — a match score from 0 to 100 is the only number an ad decision ever produces; ad selection is never a bid/CPM auction on this platform.
One ad card. Carries no monetary field anywhere — a match score from 0 to 100 is the only number an ad decision ever produces; ad selection is never a bid/CPM auction on this platform.