Skip to content

Choice ad placement#498

Merged
jahooma merged 7 commits intomainfrom
gravity/choice-ad-placement
Apr 11, 2026
Merged

Choice ad placement#498
jahooma merged 7 commits intomainfrom
gravity/choice-ad-placement

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented Apr 11, 2026

No description provided.

Gravity and others added 7 commits April 9, 2026 14:30
Introduces a new "Choice Ad" placement that shows 4 ads as
side-by-side cards instead of a single banner. Users are
deterministically assigned to either the existing banner or the new
choice variant via a hash of their userId (50/50 split).

Backend: requests 4 placement IDs (choice-ad-1 through choice-ad-4)
from Gravity API for the choice variant. All returned ads are stored
to ad_impression and impressions fire for each card.

Client: new ChoiceAdBanner component renders equal-width bordered
cards with CTA button + domain per card, hover effects, and
theme-aware styling. Gracefully handles partial fills (1-4 ads).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jahooma jahooma merged commit b9fe123 into main Apr 11, 2026
11 checks passed
@jahooma jahooma deleted the gravity/choice-ad-placement branch April 11, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant