Skip to content
Merged
Changes from all commits
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
15 changes: 15 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,21 @@ export interface Config {
* However, if you’d like, you can disable this feature and prevent Prebid.js from using anything but the latest bids for a given auction.
*/
useBidCache?: boolean;
/**
* When Bid Caching is turned on, a custom Filter Function can be defined to gain more granular control over which “cached” bids can be used.
* This function will only be called for “cached” bids from previous auctions, not “current” bids from the most recent auction.
* The function should take a single bid object argument, and return true to use the cached bid, or false to not use the cached bid.
*
* For Example, to turn on Bid Caching, but exclude cached video bids, you could do this:
*
* ```
* pbjs.setConfig({
* useBidCache: true,
* bidCacheFilterFunction: bid => bid.mediaType !== 'video'
* });
* ```
*/
bidCacheFilterFunction?: (bid: Bid) => boolean;
/**
* You can prevent Prebid.js from reading or writing cookies or HTML localstorage by setting this to false.
*/
Expand Down
Loading