Skip to content

Commit

Permalink
Updated .addStaticResource and cleaning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JinHedman committed Jul 1, 2024
1 parent 026bd27 commit 607b946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/pause-ad-vast-maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down

0 comments on commit 607b946

Please sign in to comment.