Skip to content

Commit

Permalink
Fix broken AOL mobile endpoint secure bid requests (#1684)
Browse files Browse the repository at this point in the history
* Add bidfloor parameter to AOL adapter

* Remove errant comma

* Fixed AOL adapter mobile endpoint secure support
  • Loading branch information
kizzard authored and jaiminpanchal27 committed Oct 13, 2017
1 parent 2988065 commit 2f58bb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/aolBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
});
Expand Down

0 comments on commit 2f58bb0

Please sign in to comment.