Given this vmap, which is a modified version of a google sample. As you can see, the preroll has 1 ad and the midroll has 3 ads. Then, I changed the slotname of the ad tag uri of the preroll-ad-1 and the midroll-1-ad-1 to make them return empty vast.
Then, I added an adslog event listener to print out the event like this:
player.on('adsready', function (){
player.on('adslog', function (event){
console.log("Got error")
console.log(event)
})
});
What I expected is 2 prints of Got error. But, what I got was only 1 print, and it was from the preroll. It was only after I made all of the midroll ads to return empty vast, I got 2 prints of Got error.
Is this something expected? Is it possible to trigger adslog on every ad error, not the whole pod error?
Because of this, it is not possible to know which vast tag on which position does produce error.
Given this vmap, which is a modified version of a google sample. As you can see, the preroll has 1 ad and the midroll has 3 ads. Then, I changed the slotname of the ad tag uri of the preroll-ad-1 and the midroll-1-ad-1 to make them return empty vast.
Then, I added an
adslog
event listener to print out the event like this:What I expected is 2 prints of
Got error
. But, what I got was only 1 print, and it was from the preroll. It was only after I made all of the midroll ads to return empty vast, I got 2 prints ofGot error
.Is this something expected? Is it possible to trigger
adslog
on every ad error, not the whole pod error? Because of this, it is not possible to know which vast tag on which position does produce error.