mid-roll video ads becoming post-roll video ads

693 views Asked by At

i've try mid-roll video ads with this ova code : '.$uri.' Video Ads {
"ads": { "controls": { "skipAd": { "enabled": true, "showAfterSeconds": 15 } },

                        "servers": [
                               {
                                  "type": "OpenX",
                                  "apiAddress":  "http://ads.viva.co.id/ads/www/delivery/fc.php",
                                    "allowAdRepetition": true
                               }
                        ],
                        "schedule": [
                           "position": "mid-roll",
                           "startTime": "00:00:10",
                           "zone": "349",
                           "playOnce": false,
                           "notice": {
                           "show": false
                        ]},
                    "debug": {
                          "debugger": "firebug",
                          "levels": "fatal, config, vast_template, vpaid, http_calls"
                    }

                }
           </ova.json>
        </config> 

but mid-roll becoming post-roll ads, it show after main video play, how can i fix this ?

2

There are 2 answers

0
Arie Sastra Hadiprawira On

once again, this my ova code

<config>
   <ova.title>
   Video Ads
    </ova.title>    
    <ova.json>
       {    
        "ads": 
            {
            "controls": {
                       "skipAd": {
                      "enabled": true,
                      "showAfterSeconds": 15
                       }
              },

            "servers": [
                       {
                        "type": "OpenX",
                        "apiAddress":  "http://ads.../ads/www/delivery/fc.php",
                        "allowAdRepetition": true
                       }
                    ],
            "schedule": [
                       "position": "mid-roll",
                       "startTime": "00:00:10",
                        "zone": "349",
                       "playOnce": false,
                       "notice": {
                       "show": false
                        ]},
            "debug": {
          "debugger": "firebug",
                      "levels": "fatal, config, vast_template, vpaid, http_calls"
                    }

                }
</ova.json>
</config>
0
Arie Sastra Hadiprawira On

and this my jwplayer code :

<script type="text/javascript" src="<?php echo kone_url('appaux-js', 'swfobject-5.8.js');?>"></script>
<div id="video_iims2014" style="margin: 0px auto; padding-top: 3px; overflow: hidden;">
</div> 
<script type='text/javascript' src="<?php echo kone_url('appaux-js', 'jwplayer-5.10.js');?>"></script>
  <script type='text/javascript'>
  jwplayer("video_iims2014").setup({
          'id': 'playerID',
          'width': '663',
          'height': '390',
          'controlbar.position': 'bottom',    
          'plugins' : '<?php echo kone_url("appaux-swf", "ova-jw.swf")?>',
          'config' : '<?php echo $config; ?>',            
              'modes': [
                      {
                       type: 'flash', 
                       src: '<?php echo kone_url("appaux-swf", "jwplayer-5.10.swf")?>',
                       config: {
                       'image' : "<?=thumbImage(array('path'=>$videos[0]['path_thumbnail'], 'width'=>'663', 'height'=>'382', 'type' => 'videos'));?>",
                       'file': "<?php echo kone_url('media-videos', $videos[0]['path']);?>",
                            }
                        },
                        {
               type: 'html5',
                    config: {
                           'image' : "<?=thumbImage(array('path'=>$videos[0]['path_thumbnail'], 'width'=>'663', 'height'=>'382', 'type' => 'videos'));?>",
                           'file': "<?php echo kone_url('media-videos').$videos[0]['path'];?>",
                            }
                        },
                        {type: 'download' }
                    ]
                });
            </script>