Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional perBuyerTimeouts to auction config. #229

Merged
merged 3 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions FLEDGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ const myAuctionConfig = {
'perBuyerSignals': {'www.example-dsp.com': {...},
'www.another-buyer.com': {...},
...},
'perBuyerTimeouts': {'www.example-dsp.com': 100,
'www.another-buyer.com': 200,
...},
};
const auctionResultPromise = navigator.runAdAuction(myAuctionConfig);
```
Expand All @@ -156,6 +159,8 @@ This will cause the browser to execute the appropriate bidding and auction logic

The returned `auctionResultPromise` object is _opaque_: it is not possible for any code on the publisher page to inspect the winning ad or otherwise learn about its contents, but it can be passed to a Fenced Frame for rendering. (The [Fenced Frame Opaque Source explainer](https://github.com/shivanigithub/fenced-frame/blob/master/OpaqueSrc.md) has initial thoughts about how this could be implemented.) If the auction produces no winning ad, the return value can also be null, although this non-opaque return value leaks one bit of information to the surrounding page. In this case, for example, the seller might choose to render a contextually-targeted ad.

Optionally, `perBuyerTimeouts` can be specified to restrict the runtime (in milliseconds) of particular buyer's bidding scripts. If no value is specificed for a particular buyer, a default timeout of 100 ms will be selected. Any `perBuyerTimeouts` higher than 500 ms will be clamped to 500 ms.
caraitto marked this conversation as resolved.
Show resolved Hide resolved


#### 2.2 Auction Participants

Expand Down