diff --git a/modules/conversantBidAdapter.js b/modules/conversantBidAdapter.js index 17d506cb54c..6ef289af411 100644 --- a/modules/conversantBidAdapter.js +++ b/modules/conversantBidAdapter.js @@ -95,7 +95,7 @@ const converter = ortbConverter({ }, response(buildResponse, bidResponses, ortbResponse, context) { const response = buildResponse(bidResponses, ortbResponse, context); - return response.bids; + return response; }, overrides: { imp: { diff --git a/test/spec/modules/conversantBidAdapter_spec.js b/test/spec/modules/conversantBidAdapter_spec.js index a287af98401..39e66316ec1 100644 --- a/test/spec/modules/conversantBidAdapter_spec.js +++ b/test/spec/modules/conversantBidAdapter_spec.js @@ -466,7 +466,7 @@ describe('Conversant adapter tests', function() { before(() => { request = spec.buildRequests(bidRequests, {}); - response = spec.interpretResponse(bidResponses, request); + response = spec.interpretResponse(bidResponses, request).bids; }); it('Banner', function() { @@ -519,48 +519,6 @@ describe('Conversant adapter tests', function() { } }); - it('Paapi', function() { - const paapi = [ - { - impid: 'bid000', - igs: [ - { - config: { - seller: 'https://paapi.ad.cpe.dotomi.com', - decisionLogicURL: 'https://paapi.ad.cpe.dotomi.com/js/decision-logic-component-seller.js', - interestGroupBuyers: [ 'https://cookieless-campaign.lab-00.retargetly.com' ], - perBuyerSignals: { - 'https://cookieless-campaign.lab-00.retargetly.com': { 'tid': '123456789012341234' } - }, - sellerSignals: { - networkRequestId: '717847096745883980', - transactionId: '717847096745883981', - siteId: '207693', - tid: 5, - supplyTypeId: 1, - partnerId: 'Prebid.js', - partnerVersion: '1.2.3', - placementId: '10145350' - } - } - } - ] - }]; - const request = spec.buildRequests([bidRequests[0]], {}); - let bidResponse = JSON.parse(JSON.stringify(bidResponses)); - bidResponse.body.seatbid[0].bid = [bidResponses.body.seatbid[0].bid[0]]; - deepSetValue(bidResponse, 'body.ext.igi', paapi); - - const response = spec.interpretResponse(bidResponse, request); - const bid = response.bids[0]; - - expect(bid).to.have.property('requestId', 'bid000'); - expect(response).to.have.property('paapiAuctionConfigs'); - const paapiResponse = response.paapiAuctionConfigs[0]; - expect(paapiResponse).to.have.property('bidId', paapi[0].impid); - expect(paapiResponse.config).to.deep.equal(paapi[0].igs[0].config); - }); - it('Verify publisher commond id support', function() { // clone bidRequests let requests = utils.deepClone(bidRequests);