Skip to content

Commit

Permalink
KLUDGE: get video tracking working
Browse files Browse the repository at this point in the history
This workaround is needed for the demo to work

DO NOT USE IN PRODUCTION!
  • Loading branch information
jimdigriz committed Feb 13, 2021
1 parent 3d73c47 commit 4ddcffa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
23 changes: 12 additions & 11 deletions integrationExamples/gpt/adloox.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion modules/adlooxAdServerVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ddcffa

Please sign in to comment.