Skip to content

Commit e7c26f8

Browse files
authored
Criteo Bid Adapter: Fix invalid deal property name mapping from bidder response (#9808)
Currently, our PBJS adapter code expects to receive a property called 'dealCode' where our bidder emits 'deal' instead. We've updated our backend to temporary emit both dealCode & deal but long term we'd like to align to use 'deal 'across all integrations.
1 parent 67c778a commit e7c26f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/criteoBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export const spec = {
223223
creativeId: slot.creativecode,
224224
width: slot.width,
225225
height: slot.height,
226-
dealId: slot.dealCode,
226+
dealId: slot.deal,
227227
};
228228
if (body.ext?.paf?.transmission && slot.ext?.paf?.content_id) {
229229
const pafResponseMeta = {

test/spec/modules/criteoBidAdapter_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ describe('The Criteo bidding adapter', function () {
14751475
creativecode: 'test-crId',
14761476
width: 728,
14771477
height: 90,
1478-
dealCode: 'myDealCode',
1478+
deal: 'myDealCode',
14791479
adomain: ['criteo.com'],
14801480
}],
14811481
},

0 commit comments

Comments
 (0)