@@ -1846,6 +1846,7 @@ To <dfn>generate and score bids</dfn> given an [=auction config=] |auctionConfig
1846
1846
and a [=real time reporting contributions map=] |realTimeContributionsMap|:
1847
1847
1. [=Assert=] that these steps are running [=in parallel=].
1848
1848
1. Let |settings| be |global|'s [=relevant settings object=].
1849
+ 1. Let |policyContainer| be |settings|'s [=environment settings object/policy container=].
1849
1850
1. Let |topLevelOrigin| be |settings|'s [=environment/top-level origin=].
1850
1851
1. Let |seller| be |auctionConfig|'s [=auction config/seller=].
1851
1852
1. Let |auctionStartTime| be the [=current coarsened wall time=].
@@ -1887,13 +1888,13 @@ and a [=real time reporting contributions map=] |realTimeContributionsMap|:
1887
1888
[=score and rank a bid=] with |auctionConfig|, |reportingContextMap|[|auctionConfig|],
1888
1889
|compWinnerInfo|'s [=leading bid info/leading bid=], |leadingBidInfo|,
1889
1890
|decisionLogicFetcher|, |trustedScoringSignalsBatcher|, null, "top-level-auction", null,
1890
- and |topLevelOrigin |.
1891
+ |topLevelOrigin|, |realTimeContributionsMap|, and |policyContainer |.
1891
1892
1. If |compWinnerInfo|'s [=leading bid info/leading non-k-anon-enforced bid=]
1892
1893
is not null, then run [=score and rank a bid=] with |auctionConfig|, |reportingContextMap|[
1893
1894
|auctionConfig|], |compWinnerInfo|'s [=leading bid info/leading non-k-anon-enforced bid=],
1894
1895
|leadingBidInfo|, |decisionLogicFetcher|, |trustedScoringSignalsBatcher|,
1895
1896
|topLevelDirectFromSellerSignalsForSeller|, null, "top-level-auction", null, |topLevelOrigin|,
1896
- and |realTimeContributionsMap |.
1897
+ |realTimeContributionsMap|, and |policyContainer |.
1897
1898
1. Decrement |pendingComponentAuctions| by 1.
1898
1899
1. Wait until |pendingComponentAuctions| is 0.
1899
1900
1. If |auctionConfig|'s [=auction config/aborted=] is true, return failure.
@@ -1971,7 +1972,8 @@ and a [=real time reporting contributions map=] |realTimeContributionsMap|:
1971
1972
1. [=Score and rank a bid=] with |auctionConfig|, |reportingContext|
1972
1973
|additionalBid|'s [=decoded additional bid/bid=], |leadingBidInfo|, |decisionLogicFetcher|,
1973
1974
|trustedScoringSignalsBatcher|, |directFromSellerSignalsForSeller|, null, |auctionLevel|,
1974
- |componentAuctionExpectedCurrency|, |topLevelOrigin|, and |realTimeContributionsMap|.
1975
+ |componentAuctionExpectedCurrency|, |topLevelOrigin|, |realTimeContributionsMap|, and
1976
+ |policyContainer|.
1975
1977
1. Decrement |pendingAdditionalBids| by 1.
1976
1978
1. [=map/For each=] |buyer| → |perBuyerGenerator| of |bidGenerators|,
1977
1979
[=parallel queue/enqueue steps|enqueue the following steps=] to |queue|:
@@ -2035,7 +2037,7 @@ and a [=real time reporting contributions map=] |realTimeContributionsMap|:
2035
2037
1. [=list/For each=] |ig| of |groups|:
2036
2038
1. [=Batch or fetch trusted bidding signals=] given |trustedBiddingSignalsBatcher|,
2037
2039
|ig|, |signalsUrl|, |buyerExperimentGroupId|, |topLevelOrigin|, |slotSizeQueryParam|,
2038
- and |settings|'s [=environment settings object/policy container=] .
2040
+ and |policyContainer| .
2039
2041
1. [=Fetch the current outstanding trusted signals batch=] given |trustedBiddingSignalsBatcher|,
2040
2042
|signalsUrl|, |buyer|, |buyerExperimentGroupId|, |topLevelOrigin|, and |slotSizeQueryParam|.
2041
2043
1. [=Fetch the trusted key value signals batch=] given |trustedBiddingSignalsBatcher|,
@@ -2150,7 +2152,8 @@ and a [=real time reporting contributions map=] |realTimeContributionsMap|:
2150
2152
1. [=Score and rank a bid=] with |auctionConfig|, |reportingContext|, |bidToScore|,
2151
2153
|leadingBidInfo|, |decisionLogicFetcher|, |trustedScoringSignalsBatcher|,
2152
2154
|directFromSellerSignalsForSeller|, |dataVersion|, |auctionLevel|,
2153
- |componentAuctionExpectedCurrency|, |topLevelOrigin|, and |realTimeContributionsMap|.
2155
+ |componentAuctionExpectedCurrency|, |topLevelOrigin|, |realTimeContributionsMap|,
2156
+ and |policyContainer|.
2154
2157
1. [=Update cumulative buyer time metrics=] given |metrics| and |cumulativeTimeoutTracker|.
2155
2158
1. Decrement |pendingBuyers| by 1.
2156
2159
1. Wait until both |pendingBuyers| and |pendingAdditionalBids| are 0.
@@ -2357,12 +2360,14 @@ a [=trusted scoring signals batcher=] |trustedScoringSignalsBatcher|
2357
2360
a {{DirectFromSellerSignalsForSeller}} |directFromSellerSignalsForSeller|, an {{unsigned long}}-or-null
2358
2361
|biddingDataVersion|, an enum |auctionLevel|, which is "single-level-auction", "top-level-auction",
2359
2362
or "component-auction", a [=currency tag=] |componentAuctionExpectedCurrency|, an [=origin=]
2360
- |topLevelOrigin|, and a [=real time reporting contributions map=] |realTimeContributionsMap|:
2363
+ |topLevelOrigin|, a [=real time reporting contributions map=] |realTimeContributionsMap|, and
2364
+ a [=policy container=] |policyContainer|:
2361
2365
2362
2366
1. Let «|trustedScoringSignalsAreCrossOrigin|, |sameOriginTrustedScoringSignals|,
2363
2367
|crossOriginTrustedScoringSignals|, |scoringDataVersion|» be the result of [=fetch and
2364
2368
decode trusted scoring signals=] given |trustedScoringSignalsBatcher|, |auctionConfig|,
2365
- |generatedBid|, |decisionLogicFetcher|, |topLevelOrigin|, and |realTimeContributionsMap|.
2369
+ |generatedBid|, |decisionLogicFetcher|, |topLevelOrigin|, |realTimeContributionsMap|,
2370
+ and |policyContainer|.
2366
2371
1. Let |adMetadata| be |generatedBid|'s [=generated bid/ad=].
2367
2372
1. Let |bidValue| be |generatedBid|'s [=generated bid/bid=].
2368
2373
1. If |generatedBid|'s [=generated bid/modified bid=] is not null, then set |bidValue| to
@@ -2663,7 +2668,8 @@ is a [=structured header=] whose value must be an [=structured header/integer=].
2663
2668
2664
2669
<div algorithm>
2665
2670
To <dfn>fetch trusted signals</dfn> given a [=URL=] |url|, an [=origin=] |scriptOrigin|, a
2666
- [=policy container=] |policyContainer|, and a [=boolean=] |isBiddingSignal|:
2671
+ [=policy container=] |policyContainer|, and a [=boolean=] |isBiddingSignal|. They return a
2672
+ [=tuple=] consisting of ([=ordered map=] or null, [=ordered map=] or null, integer or null):
2667
2673
2668
2674
1. Let |request| be a new [=request=] with the following properties:
2669
2675
: [=request/URL=]
@@ -2709,19 +2715,19 @@ To <dfn>fetch trusted signals</dfn> given a [=URL=] |url|, an [=origin=] |script
2709
2715
[:X-fledge-bidding-signals-format-version:] and "`item`" from |headers|.
2710
2716
1. Set |signals| to the result of [=parsing JSON bytes to an Infra value=] |responseBody|.
2711
2717
1. Wait for |signals| to be set.
2712
- 1. If |signals| is a parsing exception, or if |signals| is not an [=ordered map=], return « null,
2713
- null, null » .
2718
+ 1. If |signals| is a parsing exception, or if |signals| is not an [=ordered map=], return a
2719
+ [=tuple=] ( null, null, null) .
2714
2720
1. If |formatVersion| is 2:
2715
- 1. If |signals|["`keys`"] does not [=map/exist=], return « null, null » .
2721
+ 1. If |signals|["`keys`"] does not [=map/exist=], [=tuple=] (null, null, null ) .
2716
2722
1. Set |signals| to |signals|["`keys`"].
2717
- 1. If |signals| is not an [=ordered map=], return « null, null » .
2723
+ 1. If |signals| is not an [=ordered map=], return a [=tuple=] ( null, null, null) .
2718
2724
1. If |signals|["`perInterestGroupData`"] [=map/exists=] and is an [=ordered map=]:
2719
2725
1. [=Assert=] |isBiddingSignal| is true.
2720
2726
1. Let |perInterestGroupData| be |signals|["`perInterestGroupData`"].
2721
2727
1. [=map/For each=] |key| → |value| of |signals|:
2722
2728
1. [=map/Set=] |signals|[|key|] to the result of [=serializing an Infra value to a JSON string=]
2723
2729
given |value|.
2724
- 1. Return « |signals|, |perInterestGroupData|, |dataVersion| » .
2730
+ 1. Return a [=tuple=] ( |signals|, |perInterestGroupData|, |dataVersion|) .
2725
2731
</div>
2726
2732
2727
2733
<div algorithm>
0 commit comments