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: 
bsuciu
Visitor

RAF sample useRokuAdsAsFallback = false

I am looking into integrating ads into my application.
I am testing the sample from the developer website.

From what I see, the ads that are returned from the URL set by
adIface.setAdUrl(m.videoContent.adUrl) 

do not run if I change the first parameter from true to false


'Indicates whether the default Roku backfill ad service URL
'should be used in case the client-configured URL fails (2 retries)
'to return any renderable ads.
adIface.setAdPrefs(false, 2)


So this leads me to believe that only the fallback ads work.

This is the output I see when the app runs:
------ Running dev 'Custom Buffer Screen Scene Graph Sample' main ------
Roku_Ads Framework version 1.7
Roku_Ads_checkAllowedFeature: Parsing whitelist for ROKU_ADS_NIELSEN_ID
Roku_Ads library version: 1.7
Roku_Ads_util_getStringFromUrl: requesting URL: http://1c6e2.v.fwmrm.net/ad/g/1?nw=116450&ssnw=116450&asnw=116450&caid=493509699603&csid=fxn_shows_roku&prof=116450:Fox_Live_Roku&resp=vast&metr=1031&flag=+exvt+emcr+sltp&;_fw_ae=d8b58f7bfce28eefcc1cdd5b95c3b663;app_id=ROKU_ADS_APP_ID
Roku_Ads_util_getStringFromUrl: requesting URL: http://1c6e2.v.fwmrm.net/ad/g/1?nw=116450&ssnw=116450&asnw=116450&caid=493509699603&csid=fxn_shows_roku&prof=116450:Fox_Live_Roku&resp=vast&metr=1031&flag=+exvt+emcr+sltp&;_fw_ae=d8b58f7bfce28eefcc1cdd5b95c3b663;app_id=ROKU_ADS_APP_ID


The TED video starts without any ads.

Any suggestions?
0 Kudos
1 REPLY 1
TheEndless
Channel Surfer

Re: RAF sample useRokuAdsAsFallback = false

I get a "403 Forbidden" response when requesting that ad URL.  Sounds like it might require additional authorization of some sort.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.