Skip to content

Commit bb7e721

Browse files
Sync public snapshot from freebuff-private
1 parent 43da2bd commit bb7e721

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎common/src/ads/billboard.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export const BILLBOARD_RATIO_TOLERANCE = 0.02
4747

4848
/** Visible time before a billboard's close control unlocks. */
4949
export const BILLBOARD_DISMISS_LOCK_MS = 10_000
50+
/** Maximum lifetime of a sidebar showing, unchanged by duplicate deliveries. */
51+
export const BILLBOARD_SIDEBAR_MAX_SHOW_MS = 3 * 60_000
5052

5153
export type BillboardFrequencyCap = {
5254
/** Whose serves share one count: the campaign's, or a single ad's. */
@@ -66,7 +68,7 @@ const DAY_MS = 24 * HOUR_MS
6668
* the sidebar all day. Billboard serves therefore do not spend the
6769
* campaign's hourly cap on its other placements either.
6870
*
69-
* The sidebar serves each campaign 5 times a rolling day, at most 2 in a
71+
* The sidebar serves each campaign 5 times a rolling day, at most once in a
7072
* rolling hour. One a day (2026-10-08 to 10-20) left it empty for heavy users:
7173
* on 10-19, 130k tier-1 sidebar asks went unfilled because the one CPM
7274
* campaign had spent its serve. The hourly limit stops a minute-by-minute
@@ -82,7 +84,7 @@ export const BILLBOARD_FREQUENCY_CAPS: Readonly<Record<string, BillboardFrequenc
8284
per: 'campaign',
8385
limits: [
8486
{ maxImpressions: 5, windowMs: DAY_MS },
85-
{ maxImpressions: 2, windowMs: HOUR_MS },
87+
{ maxImpressions: 1, windowMs: HOUR_MS },
8688
],
8789
},
8890
[BILLBOARD_PANEL_PLACEMENT_ID]: {

0 commit comments

Comments
 (0)