From 4ddcffaaa528c6f9e65018e173b79f351c0085ee Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 15 Nov 2020 20:05:39 +0000 Subject: [PATCH] KLUDGE: get video tracking working This workaround is needed for the demo to work DO NOT USE IN PRODUCTION! --- integrationExamples/gpt/adloox.html | 23 ++++++++++++----------- modules/adlooxAdServerVideo.js | 3 ++- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/integrationExamples/gpt/adloox.html b/integrationExamples/gpt/adloox.html index 4f055263d3c..bb86bd8b804 100644 --- a/integrationExamples/gpt/adloox.html +++ b/integrationExamples/gpt/adloox.html @@ -112,17 +112,18 @@ var videoBids = bids[videoAdUnit.code]; if (videoBids) { - var videoUrl = pbjs.adServers.dfp.buildVideoUrl({ - adUnit: videoAdUnit, - params: { - iu: '/19968336/prebid_cache_video_adunit', - cust_params: { - section: 'blog', - anotherKey: 'anotherValue' - }, - output: 'vast' - } - }); + var videoUrl = videoBids.bids[0].vastUrl; +// var videoUrl = pbjs.adServers.dfp.buildVideoUrl({ +// adUnit: videoAdUnit, +// params: { +// iu: '/19968336/prebid_cache_video_adunit', +// cust_params: { +// section: 'blog', +// anotherKey: 'anotherValue' +// }, +// output: 'vast' +// } +// }); pbjs.adServers.adloox.buildVideoUrl({ adUnit: videoAdUnit, url: videoUrl diff --git a/modules/adlooxAdServerVideo.js b/modules/adlooxAdServerVideo.js index 94410d5cead..c43bf851261 100644 --- a/modules/adlooxAdServerVideo.js +++ b/modules/adlooxAdServerVideo.js @@ -15,7 +15,8 @@ import * as utils from '../src/utils.js'; const MODULE = 'adlooxAdserverVideo'; -const URL_VAST = 'https://j.adlooxtracking.com/ads/vast/tag.php'; +// const URL_VAST = 'https://j.adlooxtracking.com/ads/vast/tag.php'; +const URL_VAST = 'https://j.adlooxtracking.com/ads/vast/tag-dev.php'; export function buildVideoUrl(options, callback) { utils.logInfo(MODULE, 'buildVideoUrl', options);