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

Can I add 'Video ads' to the video file, which is stored in jw server?


var playerInstance = jwplayer('myElement');
file: 'assets/myVideo.mp4',
primary: 'flash',
advertising: {
client: 'googima',
tag: ''

This is the code to add 'video ads' within jwplayer. According this(file: 'assets/myVideo.mp4'). I need to store videos, in my server.
But I have stored all videos in jw server.
<script type="text/javascript" src=""></script>
I use this code to show video in my website.

Then, how can I add 'video ads'?
Or I must have to store videos in my server to show 'video ads'?


3 Community Answers


JW Player Support Agent  
0 rated :


It seems as though you are using two separate methods to try and embed videos. The playerInstance code is meant for users who are based on the Player account and simply calls the advertising block as part of that method. Since you are a Platform user, you would simply log into your account and access the Player you would like to embed an ad into and click the Advertising section underneath that player. This will provide the integration I believe you are looking for.



0 rated :

I saw Advertising section underneath player in dashboard. But ads will vary for every single video. Then If I add 'ads code' in player, then We can't make different ads for different video.
I have to use same ads for all videos playing in that player.
It's not good at all, hope u understand.

<script type="text/javascript" src=""></script>

this is code to show different different video in my website. Is there any option, I can add 'ads code' in that script?


JW Player Support Agent  
0 rated :

Hello Mauricio,

I understand your view but i am unsure if you have any additional ads that you would like to use. You could perhaps configure these ads to not show if one user has already seen the ad or play a different ad. You could potentially achieve this with some custom code implementation on your end. Otherwise you may consider utilizing Google DFP which could deliver a different ad based on a bidding system. You can find more detail here about Google DFP: as well as our API Guide: .


Randy Le’Moine, Web Support Engineer, JW Player

This question has received the maximum number of answers.