diff --git a/modules/aardvarkBidAdapter.js b/modules/aardvarkBidAdapter.js index 7d358864b35..6a4c8b99572 100644 --- a/modules/aardvarkBidAdapter.js +++ b/modules/aardvarkBidAdapter.js @@ -100,9 +100,15 @@ export const spec = { } utils._each(serverResponse.body, function(rawBid) { + var cpm = +(rawBid.cpm || 0); + + if (!cpm) { + return; + } + var bidResponse = { requestId: rawBid.cid, - cpm: rawBid.cpm || 0, + cpm: cpm, width: rawBid.width || 0, height: rawBid.height || 0, currency: rawBid.currency ? rawBid.currency : AARDVARK_CURRENCY, diff --git a/test/spec/modules/aardvarkBidAdapter_spec.js b/test/spec/modules/aardvarkBidAdapter_spec.js index d2b9cbc0fa8..6d4649ea107 100644 --- a/test/spec/modules/aardvarkBidAdapter_spec.js +++ b/test/spec/modules/aardvarkBidAdapter_spec.js @@ -257,8 +257,7 @@ describe('aardvarkAdapterTest', () => { }]; var result = spec.interpretResponse({ body: emptyResponse }, {}); - expect(result.length).to.equal(1); - expect(result[0].cpm).to.equal(0.0); + expect(result.length).to.equal(0); }); }); });