diff --git a/modules/docereeBidAdapter.js b/modules/docereeBidAdapter.js index f77ad40b827..78ddbab9b52 100644 --- a/modules/docereeBidAdapter.js +++ b/modules/docereeBidAdapter.js @@ -7,13 +7,16 @@ const BIDDER_CODE = 'doceree'; const END_POINT = 'https://bidder.doceree.com' function registerImpression(responseJson) { - if (responseJson.impressionLink) { - ajax(responseJson.impressionLink, function() { - // nothing to do - }, null, {method: 'GET', customHeaders: {'Content-type': 'application/json; charset=utf-8'}}); - } + return (function(){ + if (responseJson.impressionLink) { + ajax(responseJson.impressionLink, function() { + // nothing to do + }, null, {method: 'GET', customHeaders: {'Content-type': 'application/json; charset=utf-8'}}); + } + })() } + function processHTMLAndRender(responseJson, creativeHtml) { if (responseJson.sourceURL) { creativeHtml = creativeHtml.replace('
', `