Skip to content

Instantly share code, notes, and snippets.

@messenjer
Last active August 29, 2015 14:15
Show Gist options
  • Save messenjer/ee075ea909f5a398af37 to your computer and use it in GitHub Desktop.
Save messenjer/ee075ea909f5a398af37 to your computer and use it in GitHub Desktop.
VAST companionAd working with jwplayer
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="536">
<InLine>
<AdSystem>Adhese</AdSystem>
<AdTitle/>
<Description/>
<Error/>
<Impression id="ADHESE"><![CDATA[http://www.local.rtbf.be/embed/test/vast/ajax/vastevents?format=preroll&item=video&type=impression]]></Impression>
<Impression><![CDATA[]]></Impression>
<Impression><![CDATA[]]></Impression>
<Impression><![CDATA[]]></Impression>
<Creatives>
<Creative id="536" sequence="">
<Linear>
<Duration>00:00:15</Duration>
<VideoClicks>
<ClickThrough><![CDATA[http://www.local.rtbf.be/embed/test/vast/ajax/vastevents?format=preroll&item=video&type=click]]></ClickThrough>
</VideoClicks>
<MediaFiles>
<MediaFile delivery="progressive" type="video/x-flv" width="640" height="360" scalable="true" maintainAspectRatio="true"><![CDATA[]]></MediaFile>
<MediaFile delivery="progressive" type="video/mp4" width="640" height="360" scalable="true" maintainAspectRatio="true"><![CDATA[http://podvideo.rtbf.be/unittest/vast/video_ad_chaudfontaine_640x360_15sec.mp4]]></MediaFile>
</MediaFiles>
<TrackingEvents>
<Tracking event="complete"><![CDATA[http://www.local.rtbf.be/embed/test/vast/ajax/vastevents?format=preroll&item=video&type=complete]]></Tracking>
<Tracking event="close"><![CDATA[http://www.local.rtbf.be/embed/test/vast/ajax/vastevents?format=preroll&item=video&type=close]]></Tracking>
</TrackingEvents>
</Linear>
</Creative>
<Creative>
<CompanionAds>
<Companion id="adh_companion_container" width="300" height="250">
<StaticResource creativeType="image/jpeg"><![CDATA[http://www.static.local.rtbf.be/rtbf/embed/test/vast/companion_ad_imu_vivaforlife_300x250.jpg]]></StaticResource>
<CompanionClickThrough><![CDATA[http://www.local.rtbf.be/embed/test/vast/ajax/vastevents?format=preroll&item=companion&type=click]]></CompanionClickThrough>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment