![](https://secure.gravatar.com/avatar/e678ea3dd85214b3ed5e41c4b53c1099?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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>