From c6491c41c05a96cf61af60c777e5936eff958e68 Mon Sep 17 00:00:00 2001 From: Maks Orlovich Date: Fri, 3 Nov 2023 08:41:59 -0400 Subject: [PATCH] Explainer changes for how currency-related things work (#571) * First cut at doc changes * formatting/link fixes * One more bit of formatting * Edit redaction rule for reportWin * Apply some feedback * Update based on feedback * Also mention rounding * Apply a whole bunch of feedback * Apply suggestions from code review Co-authored-by: Paul Jensen * Adjust some phrasing * Apply feedback * Apply suggestions from code review Co-authored-by: Paul Jensen * Tablification attempt, not sure if ready for review * Be explicit rather than "same" * Make the reporting section somewhat more generic, based on feedback from Matt. --------- Co-authored-by: Maks Orlovich Co-authored-by: Paul Jensen --- FLEDGE.md | 68 ++++++++++++++++++++++++++--- FLEDGE_extended_PA_reporting.md | 6 +++ Proposed_First_FLEDGE_OT_Details.md | 4 ++ 3 files changed, 73 insertions(+), 5 deletions(-) diff --git a/FLEDGE.md b/FLEDGE.md index 3fdcf9dc..32496563 100644 --- a/FLEDGE.md +++ b/FLEDGE.md @@ -30,12 +30,14 @@ See [the Protected Audience API specification](https://wicg.github.io/turtledove - [3.3 Metadata with the Ad Bid](#33-metadata-with-the-ad-bid) - [3.4 Ads Composed of Multiple Pieces](#34-ads-composed-of-multiple-pieces) - [3.5 Filtering and Prioritizing Interest Groups](#35-filtering-and-prioritizing-interest-groups) + - [3.6 Currency Checking](#36-currency-checking) - [4. Browsers Render the Winning Ad](#4-browsers-render-the-winning-ad) - [5. Event-Level Reporting (for now)](#5-event-level-reporting-for-now) - [5.1 Seller Reporting on Render](#51-seller-reporting-on-render) - [5.2 Buyer Reporting on Render and Ad Events](#52-buyer-reporting-on-render-and-ad-events) - [5.2.1 Noised and Bucketed Signals](#521-noised-and-bucketed-signals) - - [5.3 Losing Bidder Reporting](#53-losing-bidder-reporting) + - [5.3 Currencies in Reporting](#53-currencies-in-reporting) + - [5.4 Losing Bidder Reporting](#54-losing-bidder-reporting) - [6. Additional Bids](#6-additional-bids) - [6.1 Auction Nonce](#61-auction-nonce) - [6.2 Negative Targeting](#62-negative-targeting) @@ -341,6 +343,10 @@ const myAuctionConfig = { 'https://www.another-buyer.com': 345, '*': 456, ...}, + 'perBuyerCurrencies': {'https://example.co.uk': 'GBP', + 'https://example.fr': 'EUR', + '*': 'USD'}, + 'sellerCurrency:' : 'CAD', 'componentAuctions': [ {'seller': 'https://www.some-other-ssp.com', 'decisionLogicURL': ..., @@ -383,6 +389,8 @@ Optionally, `sellerExperimentGroupId` can be specified by the seller to support Optionally, `perBuyerPrioritySignals` is an object mapping string keys to Javascript numbers that can be used to dynamically compute interest group priorities before `perBuyerGroupLimits` are applied. See [Filtering and Prioritizing Interest Groups](#35-filtering-and-prioritizing-interest-groups) for more information. +Optionally, `perBuyerCurrencies` and `sellerCurrency` are used for [currency-checking](#36-currency-checking). `sellerCurrency` also affects how [currencies behave in reporting](#53-currencies-in-reporting). + Optionally, `resolveToConfig` is a boolean directing the promise returned from `runAdAuction()` to resolve to a `FencedFrameConfig` if true, for use in a ``, or if false to an opaque `urn:uuid` URL, for use in an `