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

How to add a banner ad at the botton of my station

Hi am trying to find out how do I add a graphic 728X90 banner at the bottom of my station content area..

Thanks
Total Caribbean Network
www.tcnhd.com
0 Kudos
7 REPLIES 7
destruk
Binge Watcher

Re: How to add a banner ad at the botton of my station

You might want to check out the SDK documentation - it has answers for most questions.
Current is here:
http://sdkdocs.roku.com/display/RokuSDK ... umentation

Banner ads only display/work on a few different poster screen and springboard screen types.
Both screens use these three methods:

Void SetAdURL(String sdAdURL, String hdAdURL)
Set the URL of the bannder Ad image to be displayed on the springboard screen.
This is currently only valid for the "video" style of springboard screen.
This is currently only valid for the "arced-landscape" and "flat-category" style of poster screens.

Banner Ad sizes are as follows:

Banner Ad HD = 728x90
Banner Ad SD = 540x60

Void SetAdSelectable(Boolean isSelectable)
Sets the banner ad to be selectable or display only. By default the banner ad is not selectable. When enabled the user can navigate and move focus to the banner image. When selected, the screen will receive an roPosterScreenEvent and the msg will return true for isAdSelected().

Void SetAdDisplayMode(String displayMode)
Sets the scale mode for displaying ad images. Valid display modes are:

scale-to-fill – scale image to completely fill the rectangle of the bounding frame (default)
scale-to-fit. – scale image to fit horizontally or vertically as appropriate while still maintaining aspect ratio. This is the preferred display mode for ads.
0 Kudos
TCNHD
Visitor

Re: How to add a banner ad at the botton of my station

Could you give me an actual example if possible..

Thanks
Total Caribbean Network
www.tcnhd.com
0 Kudos
destruk
Binge Watcher

Re: How to add a banner ad at the botton of my station

um, that's a really strange request but:

screen.SetAdURL("http://servername/SDImage.jpg", "http://servername/HDImage.jpg")

That's all you need to display an ad.
0 Kudos
TCNHD
Visitor

Re: How to add a banner ad at the botton of my station

"destruk" wrote:
um, that's a really strange request but:

screen.SetAdURL("http://servername/SDImage.jpg", "http://servername/HDImage.jpg")

That's all you need to display an ad.


THanks Desktruk but I tried that but it does not show up.. I have the accurate size for HD and SD could it be because am using the videoplay example and I need to set the category to FLAT is that is the case.. How do I do that????



<?xml version="1.0" encoding="UTF-8" standalone="yes"?>





<categories>

screen.SetAdURL("http://xxx.tv/roku/images/ad_here.png", "http://globespanondemand.tv/roku/images/ad_herehd.png")




<category title="Music Videos" description="In the Mood for something different , choose your category base" sd_img="http://globespanondemand.tv/roku/images/music_video.png" hd_img="http://xxxx/roku/images/music_video.png">
<categoryLeaf title="Chutney" description="" feed="http://xxxx/roku/xml/inspiration.xml" />
<categoryLeaf title="Calypso" description="" feed="http://xxxx/roku/xml/inspiration.xml" />
<categoryLeaf title="Reggae" description="" feed="http://xxxxx/roku/xml/inspiration.xml" />


</category>
Total Caribbean Network
www.tcnhd.com
0 Kudos
destruk
Binge Watcher

Re: How to add a banner ad at the botton of my station

SetAdUrl doesn't belong in your xml, it belongs in your channel script.
0 Kudos
gkleinman
Visitor

Re: How to add a banner ad at the botton of my station

I've seen the messages going back and forth on the subject of Banner Ads. Hopefully someone can help me sort out one last problem I've encountered.

I am looking to have a horizontal banner ad at the bottom of each screen on my channel.

My channel is set up as "arced-landscape" style.

I was able to modify the appPosterScreen.brs file using screen.SetAdURL and the banner ad properly shows up at the bottom of each content screen.

But I am having difficulty getting the banner ads to show at the bottom of the top level CATEGORY screen.

I have tried using the following specified code below on categories.xml -- but nothing shows up on the top level category screen.

<!-- banner_ad: optional element which displays an at the top level category screen -->
<banner_ad sd_img="sd url here" hd_img="http://hd url here"/>

This just doesn't seem to work.

Can any one please give me some insight on this? I'm stumped!

Thanks!
0 Kudos
gkleinman
Visitor

Re: How to add a banner ad at the botton of my station

Ah... never mind. I figured it out. You simply use SetAdURL in the .brs files for the page(s) in which you want the ad to appear.
0 Kudos