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: 
renojim
Community Streaming Expert

Can't get ad banner to display

I thought this would be an easy one...

I set the list style to "flat-category". (By the way, anyone notice that under SetAdURL it says, "This is currently only valid for the “flat-category” style of poster screen." and under SetAdDisplayMode it says, "The ad display is only available on “arced-landscape” and “flat-category” list styles."? I can't get it to work under either.) I created two sample ad banners of the proper dimensions and put them in my package. I used SetAdURL to set the urls of the two banners. I tried all combinations of SetAdSelectable and SetAdDisplayMode, and nothing. No banner displays. It looks like it's trying to display something because if I use SetAdURL after the initial screen is displayed I can see the posters shift upwards as if to make room for the banner, but nothing appears. I can display the banners in a poster, so I know they're in the package.

I'm at a loss as to what to try next. Anyone have any ideas?

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
5 REPLIES 5
jbrave
Channel Surfer

Re: Can't get ad banner to display

Hi Jim, just tried this from the Brightscript console:

BrightScript Debugger> z=createObject("roposterscreen")
BrightScript Debugger> z.setliststyle("flat-category")
BrightScript Debugger> z.setadurl("http://myhomestudio.ca/portfolio/wp-content/uploads/2010/08/728x90.gif","http://myhomestudio.ca/portfolio/wp-content/uploads/2010/08/728x90.gif")
BrightScript Debugger> z.show()
BrightScript Debugger>

and it worked.

oops, edit.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
renojim
Community Streaming Expert

Re: Can't get ad banner to display

Joel, thanks! I tried your URL and it worked as well. It looks like the ad can't be part of the package. That's the first component URL I've found that looks like it has to be external. It's not a big deal since I was just testing it to see how it would look, but it's very strange.

By the way, the ad does show up with an "arced-landscape" list style, so it looks like the documentation under SetAdURL is incorrect.

Thanks again,
-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
jbrave
Channel Surfer

Re: Can't get ad banner to display

cool!
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
evilmax17
Visitor

Re: Can't get ad banner to display

Just encountered the same exact problem.

It would be really nice to be able to use an image that's stored in the pkg.
My Roku Channels:
Viddler - viddler.com
Tested Fan - tested.com | Jamie & Adam
This is my next - theverge.com
1080p Showcase - RIP
Whiskey Media - RIP
======================
http://www.binarymoustache.com
0 Kudos
RokuKevin
Visitor

Re: Can't get ad banner to display

SetAdUrl currently requires external urls. We don't want to encourage storing ad images in packages....

--Kevin
0 Kudos