Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ackeba
Visitor

Integrating midroll ads into the RAFAdFrameworkSample

I've been working on a channel for a few weeks (independent film channel for those interested) and it's pretty much set up. I wanted to have it as a free channel that generates ad revenue, so I downloaded the http://sdkdocs.roku.com/download/attachments/3737569/RokuAdFrameworkSample.zip?version=1&modificatio... and edited it to work with the rest of my channel. It works great the only problem is that I'm currently only seeing preroll ads and since I'm working with a lot of feature film content I'd like to also ad midroll ads as well. I'm just not entirely sure what to change within the code to call up midroll ads and have them play intermittently throughout. I've been reading and re-reading the RAF developer documentation, but I'm still a bit lost. If someone could take a look at the RAF sample and help me out with a few pointers that would be much appreciated. Coming down to the home stretch before WatchIndie is a real thing. Pretty exciting times.

also. as I side note. I've read some things about banner ads being implemented into channels, and I'm interested in learning more about the process. Is there somewhere I can read up on how to do this, and who might provide content like this?
0 Kudos
1 REPLY 1
MatroxRT
Visitor

Re: Integrating midroll ads into the RAFAdFrameworkSample

Hi ackeba,

Have you played with the setAdBreaks method?

http://sdkdocs.roku.com/display/sdkdoc/ ... tAdBreaks()

Seems like it is used as, adIface.setAdBreaks(600, [60, 120, 300]) prior to adIface.getAds(). I have personally not used it, but it seems like that might be a place to start if you haven't yet.

Matt
0 Kudos