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

Can I choose what video ad will be played?


Hello, can I choose witch video ad pre-roll will played?
We have sponzors and they have video commerical and they want it to play before our videos. I know I can choose when ads is played but I dont know if I can play video ad witch I want to.

Thanks

1 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

You can implement an ad tag like this:

var playerInstance = jwplayer(‘myElement’);
playerInstance.setup({
file: ‘assets/myVideo.mp4’,
primary: ‘flash’,
advertising: {
client: ‘vast’,
tag: ‘//adserver.com/vastResponse.xml’ /This is the specific ad tag/
}
});

For more context: https://support.jwplayer.com/customer/portal/articles/1431665-getting-started-with-vast-video-ads#fndtn-code

Also, please be aware that you have to have an account that is entitled with ads: https://www.jwplayer.com/pricing/

This question has received the maximum number of answers.