From 35a332eeb52d1849b215f4ff6e09977430e54b0a Mon Sep 17 00:00:00 2001 From: Denis Logachov Date: Mon, 18 Nov 2019 22:29:52 +0200 Subject: [PATCH] Adkernel 3.0 compatibility (#4477) --- modules/adkernelAdnBidAdapter.js | 2 +- modules/adkernelBidAdapter.js | 2 +- test/spec/modules/adkernelAdnBidAdapter_spec.js | 2 -- test/spec/modules/adkernelBidAdapter_spec.js | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/adkernelAdnBidAdapter.js b/modules/adkernelAdnBidAdapter.js index 08842db37e3..3131aa2a38c 100644 --- a/modules/adkernelAdnBidAdapter.js +++ b/modules/adkernelAdnBidAdapter.js @@ -139,7 +139,7 @@ export const spec = { let request = buildRequestParams(dispatch[host][pubId], auctionId, transactionId, gdprConsent, refererInfo); requests.push({ method: 'POST', - url: `//${host}/tag?account=${pubId}&pb=1${isRtbDebugEnabled(refererInfo) ? '&debug=1' : ''}`, + url: `https://${host}/tag?account=${pubId}&pb=1${isRtbDebugEnabled(refererInfo) ? '&debug=1' : ''}`, data: JSON.stringify(request) }) }); diff --git a/modules/adkernelBidAdapter.js b/modules/adkernelBidAdapter.js index c406604b20e..7667212869b 100644 --- a/modules/adkernelBidAdapter.js +++ b/modules/adkernelBidAdapter.js @@ -43,7 +43,7 @@ export const spec = { const request = buildRtbRequest(impDispatch[host][zoneId], auctionId, gdprConsent, bidderRequest.refererInfo); requests.push({ method: 'POST', - url: `${window.location.protocol}//${host}/hb?zone=${zoneId}&v=${VERSION}`, + url: `https://${host}/hb?zone=${zoneId}&v=${VERSION}`, data: JSON.stringify(request) }); }); diff --git a/test/spec/modules/adkernelAdnBidAdapter_spec.js b/test/spec/modules/adkernelAdnBidAdapter_spec.js index 1147520131b..277faf2a351 100644 --- a/test/spec/modules/adkernelAdnBidAdapter_spec.js +++ b/test/spec/modules/adkernelAdnBidAdapter_spec.js @@ -74,7 +74,6 @@ describe('AdkernelAdn adapter', function () { bidderRequestId: 'req1', auctionId: '5c66da22-426a-4bac-b153-77360bef5337', bidId: 'bidid_5', - sizes: [[1920, 1080]], mediaTypes: { video: { playerSize: [1920, 1080], @@ -91,7 +90,6 @@ describe('AdkernelAdn adapter', function () { bidderRequestId: 'req-001', auctionId: 'auc-001', bidId: 'Bid_01', - sizes: [[300, 250], [300, 200]], mediaTypes: { banner: {sizes: [[300, 250], [300, 200]]}, video: {context: 'instream', playerSize: [[640, 480]]} diff --git a/test/spec/modules/adkernelBidAdapter_spec.js b/test/spec/modules/adkernelBidAdapter_spec.js index ddb3f3dddf2..317613224c3 100644 --- a/test/spec/modules/adkernelBidAdapter_spec.js +++ b/test/spec/modules/adkernelBidAdapter_spec.js @@ -81,7 +81,6 @@ describe('Adkernel adapter', function () { bidId: 'Bid_Video', bidderRequestId: '18b2a61ea5d9a7', auctionId: 'de45acf1-9109-4e52-8013-f2b7cf5f6766', - sizes: [[640, 480]], params: { zoneId: 1, host: 'rtb.adkernel.com', @@ -103,7 +102,6 @@ describe('Adkernel adapter', function () { }, adUnitCode: 'ad-unit-1', transactionId: 'f82c64b8-c602-42a4-9791-4a268f6559ed', - sizes: [[300, 250], [300, 200]], bidId: 'Bid_01', bidderRequestId: 'req-001', auctionId: 'auc-001'