ADDING VAST PREROLL ADS TO A VIDEO USING ADSTERRA AND EXOCLICK

CODE:







ADSTERRA VAST CODE FOR FLUIDPLAYER:


In Adsterra you can only have a 30 second vast ad before the video. you cant add mid-rolls.


EXOCLICK VAST CODE FOR FLUIDPLAYER:




OR TO ADD MID-ROLLS AND POST ROLLS.


<link rel="stylesheet" href="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css" type="text/css">
<script src="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js"></script>

<video id="my-video" controls="" style="width: 640px; height: 360px;">
<source src="main_video.mp4" type="video/mp4">
</video>

<script type="application/javascript">
var testVideo = fluidPlayer(
"my-video",
{
vastOptions: {
"adList": [
{
"roll": "preRoll",
"vastTag": "https://syndication.exosrv.com/splash.php?idzone=3666037"
},
{
"roll": "midRoll",
"vastTag": "https://syndication.exosrv.com/splash.php?idzone=3666037",
"timer": 8
},
{
"roll": "midRoll",
"vastTag": "https://syndication.exosrv.com/splash.php?idzone=3666037",
"timer": 10
},
{
"roll": "postRoll",
"vastTag": "https://syndication.exosrv.com/splash.php?idzone=3666037"
}
]
}
}
);
</script>

JOIN EXOCLICK HERE:


Comments

  1. what to add on my video id and where and how to get my video id?

    ReplyDelete
    Replies
    1. the video id is the link to your .mp4 video file. thats it. Where is it located on your website?

      Delete
    2. Sir can i get a video for it

      Delete
  2. Hello sir, how can i add this video ads in my blog website.

    ReplyDelete
  3. I HAVE JW PLAYER PRE INSTALLED WITH MY THEME AND I WANT THE VIDEO TO PLAY IN MY VIDEO

    ReplyDelete

Post a Comment