Ad Rules

AdRules is an IMA3 feature that simplifies programming ads for every DFP user. Instead of having to schedule your ads inside the flowplayer configuration, you can now configure ad scheduling directly from your dfp dashboard.

You can schedule several ads to display one after another, a feature known as "ad-breaks".

Flowplayer 5 Flowplayer Flash

<!-- include css files : fp5 and plugin -->
<link rel="stylesheet" type="text/css" href="//releases.flowplayer.org/5.4.6/commercial/skin/minimalist.css" />
<link rel="stylesheet" type="text/css" href="/assets/dfp/fp-ima-bridge-3.0/fp-ima.min-6106fccd.css" />

<!-- include js files : Google IMA SDK, FP5 and plugin -->
<script type="text/javascript" src="http://s0.2mdn.net/instream/html5/ima3.js"></script>
<script type="text/javascript" src="//releases.flowplayer.org/5.4.6/commercial/flowplayer.min.js"></script>
<script type="text/javascript" src="/assets/dfp/fp-ima-bridge-3.0/fp-ima.min-5ce1f820.js"></script>
<script type="text/javascript">flowplayer.conf.key = "$332983511016427, $289122895653393";</script>

<!-- player style -->
<style>
	#myPlayer { width:624px; height:260px; margin:60px 0; background-image: url("http://flowplayer.org/media/img/demos/minimalist.jpg"); background-size:101%; }
	@media (max-width: 480px) { #myPlayer { width:480px; height:260px; margin:30px 0 30px -10px; } }
	@media (max-width: 320px) { #myPlayer { width:320px; height: 160px; margin:30px 0 30px -10px; } }
</style>

<!-- player -->
<div id="myPlayer" class="flowplayer is-splash">
	<!-- simpy put a script tag in your player div. If you need to create it via Javascript
	     use the dynamic configuration -->
	<script>
		flowplayer_ima.conf({ adRules : "http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/15018773/everything2&ciu_szs=300x250,468x60,728x90&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&cmsid=133&vid=10XWSh7W4so&ad_rule=1" });
	</script>
	<video>
		<source type="video/webm" src="http://stream.flowplayer.org/bauhaus/624x260.webm"></source>
		<source type="video/mp4" src="http://stream.flowplayer.org/bauhaus/624x260.mp4"></source>
		<source type="video/ogv" src="http://stream.flowplayer.org/bauhaus/624x260.ogv"></source>
	</video>
</div>