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: 
wst54321
Level 7

How to set up event tracking in RAF

Hi Guys,

I am using the RAF to render a preroll ads. however , I found both the tracking roArrays returned by my url and the Roku default ad server is always null, then I can I track those events like adStart , e.t.c?

Here is the VAST response I get from server , but when the tracking array is still null

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:noNamespaceSchemaLocation="oxml.xsd">
<Ad id="a776590">
<InLine>
<AdSystem version="1.0">Adap.tv</AdSystem>
<AdTitle>...</AdTitle>
<Error>...</Error>
<Impression>...</Impression>
<Impression>
<![CDATA[...]]>
</Impression>
<Impression>...</Impression>
<Impression>...</Impression>
<Impression>...</Impression>
<Impression>...</Impression>
<Creatives>
<Creative>
<Linear>
<Duration>
<![CDATA[ 00:00:15 ]]>
</Duration>
<TrackingEvents>
<Tracking event="start">...</Tracking>
<Tracking event="firstQuartile">...</Tracking>
<Tracking event="firstQuartile">...</Tracking>
<Tracking event="midpoint">...</Tracking>
<Tracking event="thirdQuartile">...</Tracking>
<Tracking event="complete">...</Tracking>
<Tracking event="acceptInvitation">...</Tracking>
<Tracking event="pause">...</Tracking>
<Tracking event="resume">...</Tracking>
</TrackingEvents>
<VideoClicks>
<ClickThrough>
<![CDATA[...]]>
</ClickThrough>
<ClickTracking>
<![CDATA[
http://conversions.adaptv.advertising.com/conversion/wc?adSourceId=776595&bidId=776590&afppId=&creativeId=333946&mediaId=3532734&marketplaceId=&key=aolvideo&a.pvt=0&a.rid=cca2ba8f-d4ae-43c1-b9cc-526b09eaa184&a.pub_id=&eov=18794824&nielsen_devid=optout&a.platformDevice=ONLINE_VIDEO&a.click=true
]]>
</ClickTracking>
</VideoClicks>
<AdParameters id="adaptv">
<![CDATA[
cd=%7B%22adTagUrl%22%3A%22%22%2C%22countdownText%22%3A%22Ad+will+end+in+__SECONDS__+seconds%22%2C%22companionId%22%3A%22%22%2C%22muteButtonEnabled%22%3Atrue%2C%22startMuted%22%3Afalse%2C%22showPlayButtonOnPause%22%3Afalse%2C%22skipAdEnabled%22%3Afalse%7D
]]>
</AdParameters>
<MediaFiles>
<MediaFile delivery="progressive" width="1920" height="1080" bitrate="2895" type="video/mp4">
<![CDATA[
http://cdn.vidible.tv/prod/2016-06/02/57509566e4b05ec1d0fc9c84_1920x1080_v1.mp4
]]>
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
<Extensions>...</Extensions>
</InLine>
</Ad>
</VAST>
0 Kudos
1 Reply
wst54321
Level 7

Re: How to set up event tracking in RAF

Another question is ,

How can I listen to the ads playback event in my main thread?

Any help appreciated !
0 Kudos