From ad670f169b917161a27dd1428dab5bef20f0ec38 Mon Sep 17 00:00:00 2001 From: xxia2021 Date: Wed, 8 Dec 2021 09:36:31 -0800 Subject: [PATCH 1/3] Accessing interest groups from the same site To fix https://github.com/WICG/turtledove/issues/162. --- FLEDGE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FLEDGE.md b/FLEDGE.md index 5c7df641f..45ba3e7ce 100644 --- a/FLEDGE.md +++ b/FLEDGE.md @@ -275,7 +275,7 @@ Once the trusted bidding signals are fetched, each interest group's bidding func ``` -generateBid(interestGroup, auctionSignals, perBuyerSignals, trustedBiddingSignals, browserSignals) { +generateBid(interestGroup, auctionSignals, perBuyerSignals, trustedBiddingSignals, browserSignals, sameSiteInterestGroups) { ... return {'ad': adObject, 'bid': bidValue, 'render': renderUrl, 'adComponents': [adComponent1, adComponent2, ...]}; } @@ -299,6 +299,7 @@ The arguments to `generateBid()` are: 'prevWins': [[time1,ad1],[time2,ad2],...], } ``` +* sameSiteInterestGroups: if the user is added to `interestGroup` on a single site, this argement contains a list of all other interest group objects added by that site; if the user is added to `interestGroup` on mutliple sites, this argument will be empty. The output of `generateBid()` contains four fields: From 388bb8c8205cf1129b6b3277c030191089ea04ae Mon Sep 17 00:00:00 2001 From: xxia2021 Date: Wed, 8 Dec 2021 10:09:57 -0800 Subject: [PATCH 2/3] Update FLEDGE.md --- FLEDGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FLEDGE.md b/FLEDGE.md index 45ba3e7ce..d485f01ed 100644 --- a/FLEDGE.md +++ b/FLEDGE.md @@ -299,7 +299,7 @@ The arguments to `generateBid()` are: 'prevWins': [[time1,ad1],[time2,ad2],...], } ``` -* sameSiteInterestGroups: if the user is added to `interestGroup` on a single site, this argement contains a list of all other interest group objects added by that site; if the user is added to `interestGroup` on mutliple sites, this argument will be empty. +* sameSiteInterestGroups: if the user is added to `interestGroup` on a single site, this argument contains a list of all other interest group objects added by that site; if the user is added to `interestGroup` on mutliple sites, this argument will be a empty list. The output of `generateBid()` contains four fields: From 6b81e80caed273beebe8eae127e3c9d54fd3934f Mon Sep 17 00:00:00 2001 From: xxia2021 Date: Wed, 8 Dec 2021 10:17:17 -0800 Subject: [PATCH 3/3] Fixes typos --- FLEDGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FLEDGE.md b/FLEDGE.md index d485f01ed..8693cb909 100644 --- a/FLEDGE.md +++ b/FLEDGE.md @@ -299,7 +299,7 @@ The arguments to `generateBid()` are: 'prevWins': [[time1,ad1],[time2,ad2],...], } ``` -* sameSiteInterestGroups: if the user is added to `interestGroup` on a single site, this argument contains a list of all other interest group objects added by that site; if the user is added to `interestGroup` on mutliple sites, this argument will be a empty list. +* sameSiteInterestGroups: If the user is added to `interestGroup` on a single site, this argument contains a list of all other interest group objects added on that site; Otherwise, this argument will be an empty list. The output of `generateBid()` contains four fields: