Skip to content

Commit

Permalink
Accessing interest groups from the same site
Browse files Browse the repository at this point in the history
To fix WICG#162.
  • Loading branch information
xxia2021 authored Dec 8, 2021
1 parent 82b69fd commit ad670f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FLEDGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...]};
}
Expand All @@ -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:

Expand Down

0 comments on commit ad670f1

Please sign in to comment.