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?


Dear,

var playerInstance = jwplayer('myElement');
playerInstance.setup({
file: 'assets/myVideo.mp4',
primary: 'flash',
advertising: {
client: 'googima',
tag: 'http://ad.doubleclick.net/pfadx/ABCDEFGH'
}
});


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="http://content.jwplatform.com/players/6NtJHj8r-y5WxZNY2.js"></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'?


Thanks

3 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

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.

Randy

mauricio

User  
0 rated :

Dear,
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="http://content.jwplatform.com/players/6NtJHj8r-y5WxZNY2.js"></script>

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

Randy

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: https://www.google.com/doubleclick/publishers/small-business/ as well as our API Guide: http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference .

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

This question has received the maximum number of answers.