Skip to content

Commit

Permalink
Update spec.bs
Browse files Browse the repository at this point in the history
  • Loading branch information
caraitto committed Jan 16, 2025
1 parent 55919aa commit eb0bc04
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1771,11 +1771,11 @@ following steps. They return a failure if failing to fetch the script or wasm, o
1. Let |igGenerateBid| be the result of [=building an interest group passed to generateBid=] with
|ig|.
1. Set |browserSignals|["{{BiddingBrowserSignals/joinCount}}"] to the sum of |ig|'s
[=interest group/join counts=] for all days within the last 31 days in UTC, inclusive.
[=interest group/join counts=] for all days within the last 30 days in UTC, inclusive.
1. Set |browserSignals|["{{BiddingBrowserSignals/recency}}"] to the [=current coarsened wall
time=] minus |ig|'s [=interest group/join time=], in milliseconds.
1. [=map/Set=] |browserSignals|["{{BiddingBrowserSignals/bidCount}}"] to the sum of |ig|'s
[=interest group/bid counts=] for all days within the last 31 days in UTC, inclusive.
[=interest group/bid counts=] for all days within the last 30 days in UTC, inclusive.
1. [=map/Set=] |browserSignals|["{{BiddingBrowserSignals/adComponentsLimit}}"] to 40.
1. [=map/Set=] |browserSignals|["{{BiddingBrowserSignals/multiBidLimit}}"] to |multiBidLimit|.
1. Let |prevWins| be a new <code>[=sequence=]<{{PreviousWin}}></code>.
Expand Down Expand Up @@ -3561,17 +3561,17 @@ A <dfn>server auction interest group</dfn> is a [=struct=] with the following [=
A <dfn>server auction browser signals</dfn> is a [=struct=] with the following [=struct/items=]:
<dl dfn-for="server auction browser signals">
: <dfn>bid count</dfn>
:: A count of the number of bids for this interest group in the last 31 days.
:: A count of the number of bids for this interest group in the last 30 days.
Calculated by summing the [=interest group/bid counts=].

NOTE: An additional day is added (31 vs. 30 days) to ensure that history is kept for at least as
long as the max group lifetime, since bid counts are kept by UTC day.
NOTE: Since bid counts are kept by UTC day, interest groups that live long enough will have
early bid history expire before the interest group expires.
: <dfn>join count</dfn>
:: A count of the number of joins for this interest group in the last 31 days, inclusive.
:: A count of the number of joins for this interest group in the last 30 days, inclusive.
Calculated by summing the [=interest group/join counts=].

NOTE: An additional day is added (31 vs. 30 days) to ensure that history is kept for at least as
long as the max group lifetime, since join counts are kept by UTC day.
NOTE: Since bid counts are kept by UTC day, interest groups that live long enough will have
early join history expire before the interest group expires.
: <dfn>recency ms</dfn>
:: A [=duration=], in milliseconds, representing the [=current coarsened wall time=] at
the time this object was constructed minus the corresponding [=interest group=]'s
Expand Down Expand Up @@ -3766,10 +3766,10 @@ The <dfn for=Navigator method>getInterestGroupAdAuctionData(|configIDL|)</dfn> m
1. [=list/Append=] |serverPrevWin| to |prevWins|.
1. Let |browserSignals| be a new [=server auction browser signals=] with the following [=struct/items=]:
: [=server auction browser signals/bid count=]
:: the sum of |ig|'s [=interest group/bid counts=] with a bid day within the last 31 days,
:: the sum of |ig|'s [=interest group/bid counts=] with a bid day within the last 30 days,
inclusive.
: [=server auction browser signals/join count=]
:: the sum of |ig|'s [=interest group/join counts=] with a join day within the last 31 days,
:: the sum of |ig|'s [=interest group/join counts=] with a join day within the last 30 days,
inclusive.
: [=server auction browser signals/recency ms=]
:: the [=current coarsened wall time=] minus |ig|'s [=interest group/join time=] in
Expand Down Expand Up @@ -5096,9 +5096,9 @@ dictionary StorageInterestGroup : AuctionAdInterestGroup {
1. If |encoded| is failure, then return failure.
1. [=map/Set=] |resultIg|["{{AuctionAdInterestGroup/additionalBidKey}}"] to the result of running [=forgiving-base64 encode=] with |ig|'s [=interest group/additional bid key=].
1. [=map/Set=] |resultIg|["{{StorageInterestGroup/joinCount}}"] to the sum of |ig|'s [=interest
group/join counts=] for all days within the last 31 days, inclusive.
group/join counts=] for all days within the last 30 days, inclusive.
1. [=map/Set=] |resultIg|["{{StorageInterestGroup/bidCount}}"] to the sum of |ig|'s [=interest
group/bid counts=] for all days within the last 31 days, inclusive.
group/bid counts=] for all days within the last 30 days, inclusive.
1. Let |resultPrevWins| be a new <code>[=sequence=]<{{PreviousWin}}></code>.
1. [=list/For each=] |prevWin| of |ig|'s [=interest group/previous wins=] for all days within the
the last 30 days:
Expand Down

0 comments on commit eb0bc04

Please sign in to comment.