Execute custom JavaScript code on ad ended

Run custom JavaScript code on outstream ad eneded event

Below example will run custom JavaScript code once the outstream unit has finished ad playback.

Example:

$bos("DIV_ID", {
  "id": "9623",
  "width": "480",
  "height": "270"
});
$bos().on("adEnd", function(){
  console.log("Ad is finished!")
});

Did this page help you?