diff --git a/modules/pulsepointBidAdapter.js b/modules/pulsepointBidAdapter.js index 7679c2b6a10..206eb734495 100644 --- a/modules/pulsepointBidAdapter.js +++ b/modules/pulsepointBidAdapter.js @@ -99,8 +99,8 @@ function bidResponseAvailable(bidRequest, bidResponse) { const bid = { requestId: id, cpm: idToBidMap[id].price, - creative_id: id, - creativeId: id, + creative_id: idToBidMap[id].crid, + creativeId: idToBidMap[id].crid, adId: id, ttl: DEFAULT_BID_TTL, netRevenue: DEFAULT_NET_REVENUE, diff --git a/test/spec/modules/pulsepointBidAdapter_spec.js b/test/spec/modules/pulsepointBidAdapter_spec.js index ebeedde7783..f40a270af11 100644 --- a/test/spec/modules/pulsepointBidAdapter_spec.js +++ b/test/spec/modules/pulsepointBidAdapter_spec.js @@ -84,7 +84,8 @@ describe('PulsePoint Adapter Tests', function () { bid: [{ impid: ortbRequest.imp[0].id, price: 1.25, - adm: 'This is an Ad' + adm: 'This is an Ad', + crid: 'Creative#123' }] }] }; @@ -97,8 +98,8 @@ describe('PulsePoint Adapter Tests', function () { expect(bid.width).to.equal(300); expect(bid.height).to.equal(250); expect(bid.adId).to.equal('bid12345'); - expect(bid.creative_id).to.equal('bid12345'); - expect(bid.creativeId).to.equal('bid12345'); + expect(bid.creative_id).to.equal('Creative#123'); + expect(bid.creativeId).to.equal('Creative#123'); expect(bid.netRevenue).to.equal(true); expect(bid.currency).to.equal('USD'); expect(bid.ttl).to.equal(20);