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="//" />
<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=""></script>
<script type="text/javascript" src="//"></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 -->
	#myPlayer { width:624px; height:260px; margin:60px 0; background-image: url(""); 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; } }

<!-- 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 -->
		flowplayer_ima.conf({ adRules : ",468x60,728x90&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&cmsid=133&vid=10XWSh7W4so&ad_rule=1" });
		<source type="video/webm" src=""></source>
		<source type="video/mp4" src=""></source>
		<source type="video/ogv" src=""></source>