Skip to content

Commit

Permalink
feat: signal ext.ibv and pass it through [PB-3505] (#12666)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Corbo <[email protected]>
  • Loading branch information
ccorbo and Chris Corbo authored Jan 22, 2025
1 parent da5039e commit b19ae7c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ function parseBid(rawBid, currency, bidRequest) {
if (rawBid.ext?.dsa) {
bid.meta.dsa = rawBid.ext.dsa
}

if (rawBid.ext?.ibv) {
bid.ext = bid.ext || {}
bid.ext.ibv = rawBid.ext.ibv
}
return bid;
}

Expand Down
12 changes: 11 additions & 1 deletion test/spec/modules/ixBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ describe('IndexexchangeAdapter', function () {
dspid: 50,
pricelevel: '_100',
advbrandid: 303325,
advbrand: 'OECTA'
advbrand: 'OECTA',
ibv: true
},
adm: '<a target="_blank" href="https://www.indexexchange.com"></a>'
}
Expand Down Expand Up @@ -3608,6 +3609,9 @@ describe('IndexexchangeAdapter', function () {
brandId: 303325,
brandName: 'OECTA',
advertiserDomains: ['www.abc.com']
},
ext: {
ibv: true
}
}
];
Expand Down Expand Up @@ -3719,6 +3723,9 @@ describe('IndexexchangeAdapter', function () {
brandId: 303325,
brandName: 'OECTA',
advertiserDomains: ['www.abc.com']
},
ext: {
ibv: true
}
}
];
Expand Down Expand Up @@ -3775,6 +3782,9 @@ describe('IndexexchangeAdapter', function () {
brandId: 303325,
brandName: 'OECTA',
advertiserDomains: ['www.abc.com']
},
ext: {
ibv: true
}
}
];
Expand Down

0 comments on commit b19ae7c

Please sign in to comment.