...
Code Block | ||
---|---|---|
| ||
player.on("AdError", function(res){
if(res && res.errorlimit) {
//Player stopped
console.log(res.reason)
}
}); |
The player also provides the reason for stopping in reason field
Possible values are:
Player mode:
errorlimit: Player reached max number of waterfall runs without impression
emptywf: The waterfall is empty
maxrun: The player reached adConfig.maxrun waterfall runs
maximp: The player reached adConfig.maximp impressions
Vpaid mode:
maxpagereq: The vpaid reached the maximum number of ad requests on the page and cannot run again
maxpagerun: The vpaid reached the maximum number of runs on the page
Player Templates
The player support advanced templates such as In Article, Floating, Sticky and many customizations.
...