From a3232ea45ccf94a418eaabd13ab6f044a13dcbcc Mon Sep 17 00:00:00 2001 From: dzhang-criteo <87757739+dzhang-criteo@users.noreply.github.com> Date: Thu, 22 Jul 2021 14:54:15 +0200 Subject: [PATCH] Criteo: fix creativeId with correct value (#7205) --- modules/criteoBidAdapter.js | 2 +- test/spec/modules/criteoBidAdapter_spec.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/criteoBidAdapter.js b/modules/criteoBidAdapter.js index b2866b8a751..363b9322204 100644 --- a/modules/criteoBidAdapter.js +++ b/modules/criteoBidAdapter.js @@ -134,7 +134,7 @@ export const spec = { currency: slot.currency, netRevenue: true, ttl: slot.ttl || 60, - creativeId: bidId, + creativeId: slot.creativecode, width: slot.width, height: slot.height, dealId: slot.dealCode, diff --git a/test/spec/modules/criteoBidAdapter_spec.js b/test/spec/modules/criteoBidAdapter_spec.js index 550ead83380..7ec6972e1a5 100755 --- a/test/spec/modules/criteoBidAdapter_spec.js +++ b/test/spec/modules/criteoBidAdapter_spec.js @@ -923,6 +923,7 @@ describe('The Criteo bidding adapter', function () { impid: 'test-requestId', cpm: 1.23, creative: 'test-ad', + creativecode: 'test-crId', width: 728, height: 90, dealCode: 'myDealCode', @@ -944,6 +945,7 @@ describe('The Criteo bidding adapter', function () { expect(bids[0].requestId).to.equal('test-bidId'); expect(bids[0].cpm).to.equal(1.23); expect(bids[0].ad).to.equal('test-ad'); + expect(bids[0].creativeId).to.equal('test-crId'); expect(bids[0].width).to.equal(728); expect(bids[0].height).to.equal(90); expect(bids[0].dealId).to.equal('myDealCode');