Mid-roll adsIn this example, the mid-roll will start at 10 seconds, then at 20, and in the middle of playback (50%). You can also specify the metadata value for the time and the mid-roll starts at the moment the metadata is received. The second and third mid-roll are added to the queue to the first one. If the OR logic is enabled, the first working advertisement will be shown. If you specify a start time for the second and third mid-rolls, they will also start at the specified time. If you jump to the end of the video, all the mid-rolls will starts. To avoid this, enable the If the fast forward is within this interval (in this example 10 seconds) from the starting point, then the mid-roll will work. If further, the mid-roll will not work. Any advertisement on mobile platforms that starts without user gesture (mid-rolls and pos-rolls) is launched muted. You can also connect the mid-rolls in the code with the id. midroll:[{time:"5", vast:"id:XXX or id:YYY"}, {time:"50%", vast:"id:ZZZ", minduration:100}] How to run midrolls with intervalsYou can run ads at a specific interval, for example, every 10 minutes. Just specify the every parameter (in seconds). midroll:[{every:600, vast:"URL"}] The first mid-roll will start after 10 minutes of playback, the second after 20 min. etc. Pauses and rewinds are not taken into account, meaning the ad module only counts pure playback time. This method can be combined with the usual mid-roll format, which is tied to a specific time. |