Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Haijal
Level 7

Re: I need help setting up my Roku VAST Ad framework

I have changed the Ad.xml file to be VAST 2.0 compliant:

<?xml version="1.0" encoding="utf-8"?>
<VAST version="3.0">
<Ad sequence="1" id="static">
<InLine>
<AdSystem>Static VAST Template</AdSystem>
<AdTitle>Static VAST Tag</AdTitle>
<Impression>http://globalsportsman.com/includes/images/backgrounds/CliffBackground.jpg</Impression>
<Creatives>
<Creative>
<Linear>
<Duration>00:00:15</Duration>
<TrackingEvents>

</TrackingEvents>
<VideoClicks>

</VideoClicks>
<MediaFiles>
<MediaFile delivery="progressive" type="video/mp4" bitrate="300" width="480" height="270">
http://1587510142.rsc.cdn77.org/Ads/Bell1.mp4
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>

<Ad sequence="2" id="static2">
<InLine>
<AdSystem>Static VAST Template2</AdSystem>
<AdTitle>Static VAST Tag2</AdTitle>
<Impression>http://globalsportsman.com/includes/images/backgrounds/CliffBackground.jpg</Impression>
<Creatives>
<Creative>
<Linear>
<Duration>00:00:39</Duration>
<TrackingEvents>

</TrackingEvents>
<VideoClicks>

</VideoClicks>
<MediaFiles>
<MediaFile delivery="progressive" type="video/mp4" bitrate="300" width="480" height="270">
http://1587510142.rsc.cdn77.org/Ads/buck-hype-final-2hd.mp4
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>

<Ad sequence="3" id="static3">
<InLine>
<AdSystem>Static VAST Template2</AdSystem>
<AdTitle>Static VAST Tag2</AdTitle>
<Impression>http://globalsportsman.com/includes/images/backgrounds/CliffBackground.jpg</Impression>
<Creatives>
<Creative>
<Linear>
<Duration>00:00:30</Duration>
<TrackingEvents>

</TrackingEvents>
<VideoClicks>

</VideoClicks>
<MediaFiles>
<MediaFile delivery="progressive" type="video/mp4" bitrate="300" width="480" height="270">
http://1587510142.rsc.cdn77.org/Ads/PB2Rachael.mp4.mp4
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>

</VAST>


However, I am still getting the same error message, I got the VAST 2.0 complaint code from here - http://support.jwplayer.com/customer/po ... st-xml-tag


Here is the Error message: I don't have access to the file in order to see what is happening, however I will continue to work on this and update.

BRIGHTSCRIPT: ERROR: Runtime: FOR EACH value is Invalid: Roku_Ads.brs(1618)
Roku_Ads_getNoResponseFromUrl: requesting URL: http://www.google-analytics.com/collect?ea=video-start&v=1&tid=UA-678051-24&ev=1&ec=Render&el=unknown&cid=4d0e381c-4c65-5201-8a21-ff70b31bae88&ds=4200X&t=event&an=dev&z=5
Roku_Ads_showVideoAd: isRequestFailed(): index = 0; message = failed to create media player
Roku_Ads_getNoResponseFromUrl: requesting URL: http://www.google-analytics.com/collect?ea=failed%20to%20create%20media%20player&v=1&tid=UA-678051-24&ev=1&ec=ErrorRender&el=unknown&cid=4d0e381c-4c65-5201-8a21-ff70b31bae88&ds=4200X&t=event&an=dev&z=6
Current Roku Channel for Global Sportsman Network(http://globalsportsman.com)
0 Kudos
Roku Employee
Roku Employee

Re: I need help setting up my Roku VAST Ad framework

"Haijal" wrote:
I have changed the Ad.xml file to be VAST 2.0 compliant:


At a quick look that certainly seems closer to being a valid file, but still appears to be a hand-edited file with some issues.

For example, there is a bogus </xml> line at the end, and I'm guessing the .jpg URLs for Impression and Tracking events are bogus.

This may or may not be related to some of the diagnostic error messages you see printed out.
0 Kudos
Haijal
Level 7

Re: I need help setting up my Roku VAST Ad framework

I am banging my head against the wall at this point, I did see the bogus </xml> element and deleted it, the XML is not being parsed/the scheduledPods is not being populated. I have tried linking to various test VAST files, and have been researching VAST all morning. I will continue to look. I hope that is is a xml file error and not any of my brs. This is incredibility annoying.
Current Roku Channel for Global Sportsman Network(http://globalsportsman.com)
0 Kudos
Roku Employee
Roku Employee

Re: I need help setting up my Roku VAST Ad framework

"Haijal" wrote:
I am banging my head against the wall at this point, I did see the bogus </xml> element and deleted it, the XML is not being parsed/the scheduledPods is not being populated. I have tried linking to various test VAST files, and have been researching VAST all morning. I will continue to look. I hope that is is a xml file error and not any of my brs. This is incredibility annoying.

Your corrected VAST above worked fine for me with RAF. I saw 2 ads play: PB2 and BuckFishman.com. The 3rd one failed because the mp4 URL is 404ing. When it finished, shouldPlayContent had a value of true.

  adIface = Roku_Ads()
adIface.setAdUrl("file://pkg:/vast.xml") ' file I pasted your VAST into
adPods = adIface.getAds()
shouldPlayContent = adIface.showAds(adPods)
0 Kudos