Skip to content

Commit

Permalink
Adding auctionDelay param to currency module (prebid#5749)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Komorski <marcinkomorski@Marcins-MacBook-Pro.local>
  • Loading branch information
mkomorski and Marcin Komorski authored Dec 6, 2024
1 parent 5b71820 commit 2aee20b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-docs/modules/currency.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ currency conversion file while the bids are taking place. Alternately, the conve
be provided in the page.
1. At runtime, bids are converted to the ad server currency as needed.
1. Default rates can be provided in case the file cannot be loaded.
1. When `requestBids` is called, the Currency Module will delay the auction up to the supplied amount of time in `currency.auctionDelay` or as soon as the dynamic endpoint returns data, whichever is first.

## Currency Architecture

Expand Down Expand Up @@ -195,6 +196,8 @@ pbjs.setConfig({
"conversionRateFile": "URL_TO_RATE_FILE",
// optionally provide a default rate in case the file can't be read
"defaultRates": { "USD": { "GPB": 0.75 }}
// optionally sets the auction defer time if the file has not been loaded yet
"auctionDelay": 1000
}
});
```
Expand Down

0 comments on commit 2aee20b

Please sign in to comment.