From d5221491cd15e824783c479d4272a1c02015243c Mon Sep 17 00:00:00 2001 From: Kizzard Date: Wed, 13 Apr 2016 13:40:47 -0700 Subject: [PATCH 1/3] Add bidfloor parameter to AOL adapter --- src/adapters/aol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapters/aol.js b/src/adapters/aol.js index fff201e39f6..c89a0cb3f64 100644 --- a/src/adapters/aol.js +++ b/src/adapters/aol.js @@ -140,7 +140,8 @@ var AolAdapter = function AolAdapter() { }, params: { cors: 'yes', - cmd: 'bid' + cmd: 'bid', + bidfloor: (typeof bid.params.bidFloor !== "undefined") ? bid.params.bidFloor.toString() : '', }, pubApiConfig: ADTECH_PUBAPI_CONFIG, placementCode: bid.placementCode From 46443444346b6dd38c4c53828b806655a2aad451 Mon Sep 17 00:00:00 2001 From: Kizzard Date: Tue, 19 Apr 2016 17:41:28 -0700 Subject: [PATCH 2/3] Remove errant comma --- src/adapters/aol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/aol.js b/src/adapters/aol.js index c89a0cb3f64..c064ec114a2 100644 --- a/src/adapters/aol.js +++ b/src/adapters/aol.js @@ -141,7 +141,7 @@ var AolAdapter = function AolAdapter() { params: { cors: 'yes', cmd: 'bid', - bidfloor: (typeof bid.params.bidFloor !== "undefined") ? bid.params.bidFloor.toString() : '', + bidfloor: (typeof bid.params.bidFloor !== "undefined") ? bid.params.bidFloor.toString() : '' }, pubApiConfig: ADTECH_PUBAPI_CONFIG, placementCode: bid.placementCode From efe1a43f1312957017bec073a2fc3750864af4d6 Mon Sep 17 00:00:00 2001 From: Kizzard Date: Wed, 11 Oct 2017 14:51:09 -0700 Subject: [PATCH 3/3] Fixed AOL adapter mobile endpoint secure support --- modules/aolBidAdapter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/aolBidAdapter.js b/modules/aolBidAdapter.js index 4506ac1512e..5adba83e9df 100644 --- a/modules/aolBidAdapter.js +++ b/modules/aolBidAdapter.js @@ -165,12 +165,17 @@ const AolAdapter = function AolAdapter() { function _buildNexageApiUrl(bid) { let {dcn, pos} = bid.params; + let isSecure = (document.location.protocol === 'https:'); let nexageApi = nexageBaseApiTemplate({ - protocol: (document.location.protocol === 'https:') ? 'https' : 'http', + protocol: isSecure ? 'https' : 'http', host: bid.params.host || NEXAGE_SERVER }); if (dcn && pos) { let ext = ''; + if (isSecure) { + bid.params.ext = bid.params.ext || {}; + bid.params.ext.secure = 1; + } utils._each(bid.params.ext, (value, key) => { ext += `&${key}=${encodeURIComponent(value)}`; });