Skip to content

Commit

Permalink
feat: remove the index from ad id for easier identification
Browse files Browse the repository at this point in the history
  • Loading branch information
Wkkkkk committed Nov 15, 2024
1 parent 93b2d76 commit ac9a32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/vast-maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ function AttachPodAds(vast, podAds, params) {
.attachCreatives()
.attachCreative({
id: `CRETIVE-ID_00${i + 1}`,
[adId]: `${podAds[i].id}_${i + 1}`,
[adId]: `${podAds[i].id}`,
sequence: `${i + 1}`,
});
if (vast.attrs.version === "4.0") {
mediaNode = mediaNode
.addUniversalAdId(
encodeURIComponent(`${podAds[i].universalId}${i + 1}`), {
encodeURIComponent(`${podAds[i].universalId}`), {
idRegistry: "test-ad-id.eyevinn",
idValue: encodeURIComponent(`${podAds[i].universalId}${i + 1}`),
idValue: encodeURIComponent(`${podAds[i].universalId}`),
}
);
}
Expand Down

0 comments on commit ac9a32f

Please sign in to comment.