From 607b9460b5bea1f311124ed9dd95aa44f7ccce20 Mon Sep 17 00:00:00 2001 From: Filip Hedman Date: Mon, 1 Jul 2024 18:28:19 +0200 Subject: [PATCH] Updated .addStaticResource and cleaning Updated .addStaticResource in pause-ad-vast-maker.js so that the attributes of the NonLinear ad is recognised properly (such as maintainAspectRatio), also removed some console logging. --- utils/pause-ad-vast-maker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/pause-ad-vast-maker.js b/utils/pause-ad-vast-maker.js index de98a7e..af99063 100644 --- a/utils/pause-ad-vast-maker.js +++ b/utils/pause-ad-vast-maker.js @@ -44,11 +44,10 @@ function PauseAdVastBuilder(params) { minSuggestedDuration: "00:00:05", apiFramework: "static", }) - .addStaticResource("https://testcontent.eyevinn.technology/ads/STSWE_AD_001.jpg", "image/jpeg") + .addStaticResource("https://testcontent.eyevinn.technology/ads/STSWE_AD_001.jpg", {creativeType:"image/jpeg"}) .addNonLinearClickThrough("https://github.com/Eyevinn/test-adserver"); const vastXml = vast.toXml(); - console.log('Generated VAST XML:', vastXml); return { xml: vastXml }; }