diff --git a/src/adapters/criteo.js b/src/adapters/criteo.js index eb1c522350a..925aa84038f 100644 --- a/src/adapters/criteo.js +++ b/src/adapters/criteo.js @@ -4,7 +4,8 @@ var adloader = require('../adloader'); var CriteoAdapter = function CriteoAdapter() { - var _publisherTagUrl = window.location.protocol + '//static.criteo.net/js/ld/publishertag.js'; + var sProt = (window.location.protocol==='http:') ? 'http:' : 'https:'; + var _publisherTagUrl = sProt + '//static.criteo.net/js/ld/publishertag.js'; var _bidderCode = 'criteo'; var _profileId = 125;