Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Ad Impression Verification


I'm interested using Ad Impression Verification how do i add in the player instead of html? to display onAdImpression and onAdTime

<li id="impression"></li>
<li id="progress"></li>

<script type="text/javascript">
jwplayer().onAdImpression(function(event){
setElement("impression","The ad impression was fired.");
});
jwplayer().onAdTime(function(event) {
var remaining = Math.round(event.duration-event.position);
setElement("progress","The ad completes in "+remaining+" seconds.");
});
function setElement(element,message){
var div = document.getElementById(element);
div.innerHTML = message;
div.style.color = "#090";
}
</script>

1 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Well, what do you want to do/track when the ad is served?

This question has received the maximum number of answers.