diff --git a/dev-docs/modules/previousAuctionInfo.md b/dev-docs/modules/previousAuctionInfo.md index 239b4a8326..4a9f85ef82 100644 --- a/dev-docs/modules/previousAuctionInfo.md +++ b/dev-docs/modules/previousAuctionInfo.md @@ -35,15 +35,19 @@ If the requirements above are met, the flow for how the module works is as follo 1. A Prebid.js auction runs and completes. 1. At the end of an auction, details about the auction are collected from each bidder using the module. 1. If a Prebid bid wins, then the `rendered` field is updated to `1` to indicate this in the collected auction data for all bidders who bid on the same adunit within the same Prebid auction. -1. During the next Prebid.js auction, if a bidder is included in previousAuctionInfo.bidders (or [Prebid Server asked for it](#prebid-server-bidders)) AND is included in the auction, then previous auction info data will be injected into the bidder's bid request of the new auction within the following path: `ortb2.ext.prebid.previousauctioninfo`. +1. During the next Prebid.js auction, if a bidder is enabled (see the configuration options below and [Prebid Server Bidders](#prebid-server-bidders)) AND is included in the auction, then previous auction info data will be injected into the bidder's bid request of the new auction within the following path: `ortb2.ext.prebid.previousauctioninfo`. ## Prebid Server Bidders A Prebid Server host can turn on `requestPreviousAuctionInfo` for a bidder. Prebid Server then marks that bidder's bids with `seatbid[].bid[].ext.prebid.relaypreviousauctioninfo: true`. -When the module is enabled, Prebid.js treats a bidder whose bid carried this flag as if it were listed in `previousAuctionInfo.bidders` for the rest of the page view: its results are collected from the auction the flag arrived in onward, and injected into its next request. The Prebid Server Bid Adapter sends this bidder's `ortb2.ext.prebid.previousauctioninfo` to Prebid Server in `ext.prebid.bidderconfig`. +Previous auction info can help a bidder lower its bids, so the publisher's configuration decides who receives it. Prebid Server can only narrow that set, never widen it: -The flag does not turn the module on. If `previousAuctionInfo.enabled` is not `true`, Prebid.js ignores it. If `previousAuctionInfo.bidders` is omitted, all bidders are already enabled, so the flag changes nothing. +* With `previousAuctionInfo.bidders` set, exactly those bidders receive previous auction info, whether or not Prebid Server flags them. A flagged bidder that is not listed gets nothing. +* With `previousAuctionInfo.bidders` omitted, all client-side bidders receive it. A Prebid Server bidder receives it only once Prebid Server has flagged one of its bids. From then on it is collected for the rest of the page view. +* The flag never turns the module on. If `previousAuctionInfo.enabled` is not `true`, Prebid.js ignores it. + +For stored impressions, which are requested without a bidder, the flag and the collected info belong to the seat that responded. The Prebid Server Bid Adapter sends a bidder's `ortb2.ext.prebid.previousauctioninfo` to Prebid Server in `ext.prebid.bidderconfig`. This needs a Prebid Server version that supports `requestPreviousAuctionInfo`. @@ -53,7 +57,7 @@ This needs a Prebid Server version that supports `requestPreviousAuctionInfo`. | Field | Required? | Type | Description | | --- | --- | --- | --- | | previousAuctionInfo.enabled | yes | boolean | Enables/disables the module. | -| previousAuctionInfo.bidders | no | array of strings | Array of bidder codes to determine which bidders are allowed to receive collected previous auction info. Omitting this field will enable all bidders. | +| previousAuctionInfo.bidders | no | array of strings | Array of bidder codes to determine which bidders are allowed to receive collected previous auction info. Omitting this field enables all client-side bidders, and the Prebid Server bidders that Prebid Server flags (see [Prebid Server Bidders](#prebid-server-bidders)). | | previousAuctionInfo.maxQueueLength | no | integer | The number of previous auction info payloads to store/collect per bidder before injecting these payloads into the bidstream. Any payloads collected for a bidder during one auction will be injected into the bidstream during the next auction that the same bidder participates in with valid bids. If this field is omitted, the value of this field is 10. | ## Example of Previous Auction Info Payload