Skip to content

Commit 2c759f8

Browse files
committed
bid
1 parent 0f53b50 commit 2c759f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/ringieraxelspringerBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ const buildBid = (ad, mediaType) => {
246246
};
247247

248248
const getContextParams = (bidRequests, bidderRequest) => {
249-
const bid = bidRequests[0];
249+
const bid = [...bidRequests].reverse().find(bid => bid.params?.customParams?.bidPriority === 1) || bidRequests[0];
250250
const { params } = bid;
251251
const requestParams = {
252252
site: params.site,

0 commit comments

Comments
 (0)