-
Notifications
You must be signed in to change notification settings - Fork 250
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
prevWins Clarity #852
prevWins Clarity #852
Conversation
While digging in on the nature of `prevWins`, I wasn't sure whether there's a gap between my understanding of the explainer (updated here) and the [full spec](https://wicg.github.io/turtledove/), in particular bullets 5-7 of the "To generate a bid" section (search for "Let prevWins be a new sequence<PreviousWin>."). Based on the spec I think it's saying: * The field in `browserSignals` is `prevWinsMs`. * `prevWins` as a whole is a list (sequence) and each element is a `PreviousWin` dictionary that has the `timeDelta` btw the win and now, and full serialized JSON from the `ad` component of what was returned by `generateBid` for that win. This is a little different than what is written and maybe implied, or at least not clear to me, in the explainer: * The field in `browserSignals` is `prevWins`. * The value is a list, with element being itself a list of 2 elements, the first being the "time" and the second being the "ad". My initial assumption here had been that the "time" was the timestamp of the won auction, and the ad was the creative from the IGs ads list. So my PR here hopes to reconcile this with the following hopes: * That the name of the field in `browserSignals` is indeed `prevWins` rather than `prevWinsMs`, and that the spec needs a minor update here (or there's an alias I'm missing). * That the contents of `prevWins` has the detail indicated in the spec.
Also the "all wins on the browser" part is intended to add some certainty to what I'm fairly sure (sure hoping) is a misquote of @alextcone-google here on capping. |
It was indeed a misquote. We've asked for a correction. |
Isaac, what do you think of the edits I proposed? I'd like to merge this sooner than later as this is an area of frequent questions so a clarification will really help folks. |
Co-authored-by: Paul Jensen <[email protected]>
Sorry I was out the last 3 weeks paying limited attention, just accepted. |
Isaac seemed to only accept my last comment but I think he meant to accept this one too, so merging it.
SHA: 820763e Reason: push, by JensenPaul Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
While digging in on the nature of
prevWins
, I wasn't sure whether there's a gap between my understanding of the explainer (updated here) and the full spec, in particular bullets 5-7 of the "To generate a bid" section (search for "Let prevWins be a new sequence.").Based on the spec I think it's saying:
browserSignals
isprevWinsMs
.prevWins
as a whole is a list (sequence) and each element is aPreviousWin
dictionary that has thetimeDelta
btw the win and now, and full serialized JSON from thead
component of what was returned bygenerateBid
for that win.This is a little different than what is written and maybe implied, or at least not clear to me, in the explainer:
browserSignals
isprevWins
.So my PR here hopes to reconcile this with the following hopes:
browserSignals
is indeedprevWins
rather thanprevWinsMs
, and that the spec needs a minor update here (or there's an alias I'm missing).prevWins
has the detail indicated in the spec.