Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
jbeach42
Posts: 63
Registered: ‎10-27-2010
My Device: 9900 and PlayBook
My Carrier: Rogers

Advertising Service - ad sizes

Maybe I'm just not looking hard enough, but the documentation doesn't seem to indicate all of the available ad sizes supported by the advertising service.  The adservices.blackberry.com also has no info on ad sizes.

 

The example code shows ad sizes around 320px and 50px high.  That's very very tiny, relative to the 768x1280 screen  on the first BB10 device and I'm concerned that if I incorporate those small ads, click through rates would be disappointing.

 

I'm curious if there are any other sizes available.

-----------------------------------------------------------------------------
Apps:Beats Brainwave Entrainment - Awesome Timer - StarSlide - Save Santa
@jamiebeach
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Advertising Service - ad sizes

Should be here https://developer.blackberry.com/cascades/documentation/device_platform/advertising/index.html in the MMA PDF.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
New Developer
jbeach42
Posts: 63
Registered: ‎10-27-2010
My Device: 9900 and PlayBook
My Carrier: Rogers

Re: Advertising Service - ad sizes

Thanks for the reply Peter, but all the docs seem to indicate 320px wide, which I don't thing would make for an effective banner ad.

The mma doc shows square ads at up to 320x480 (referring to them as X-Large). Seems the guidelines haven't been updated to reflect higher res displays.

I was hoping for a full width banner ad, but at the sizes available, I might reconsider. The test ad, itsellf, is barely legible on the dev alpha.
-----------------------------------------------------------------------------
Apps:Beats Brainwave Entrainment - Awesome Timer - StarSlide - Save Santa
@jamiebeach
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Advertising Service - ad sizes

I haven't tried it yet, but is there no way to do something like scaleX = 2.0; scaleY = 2.0; and make them bigger?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Advertising Service - ad sizes

Im lookinf fowrad to seeing this info as well. I have added ads to my app and had to center it but the ads are way to small. at 320 x 

 

im looking to make them 760 by 100.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
New Developer
jbeach42
Posts: 63
Registered: ‎10-27-2010
My Device: 9900 and PlayBook
My Carrier: Rogers

Re: Advertising Service - ad sizes

I'll try that later tonight. I'm pretty sure I tried it already, but I'll give it a go again as I don't remember the results.
-----------------------------------------------------------------------------
Apps:Beats Brainwave Entrainment - Awesome Timer - StarSlide - Save Santa
@jamiebeach
Please use plain text.
New Developer
jbeach42
Posts: 63
Registered: ‎10-27-2010
My Device: 9900 and PlayBook
My Carrier: Rogers

Re: Advertising Service - ad sizes

Just tried adding scaleX and scaleY to the Banner element.  It didn't seem to work when adding the scaling directly on the Element, but when I put the Banner in a Container and added the scaleX:2.25 and scaleY:2.25 properties to the parent container, it worked very nicely.

 

Note - I chose 2.25 to make the banner ad 720px wide.

 

 

-----------------------------------------------------------------------------
Apps:Beats Brainwave Entrainment - Awesome Timer - StarSlide - Save Santa
@jamiebeach
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Advertising Service - ad sizes

Do u mind doing a small sample of it. I understand the ads banner part just not the container with scaling thanks.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
New Developer
jbeach42
Posts: 63
Registered: ‎10-27-2010
My Device: 9900 and PlayBook
My Carrier: Rogers

Re: Advertising Service - ad sizes

@bbquincar, no prob.  Here's my qml for the banner ad at the bottom of the screen, using the test zoneid...

 

Container {
	layoutProperties: AbsoluteLayoutProperties {
	    positionY:1190
	    positionX:225 
	}
	scaleX: 2.25
	scaleY: 2.25
	layout: StackLayout {}
		
        Banner {                    
            zoneId: 117145
            refreshRate: 60
            preferredWidth: 320
            preferredHeight: 50
            transitionsEnabled: true
            placeHolderURL: "asset:///placeholder_728x90.png"
            backgroundColor: Color.White
            borderColor: Color.Gray
            borderWidth: 2
            horizontalAlignment: HorizontalAlignment.Center               
        }        
}

 There might be better ways to do this without absolute positioning.

-----------------------------------------------------------------------------
Apps:Beats Brainwave Entrainment - Awesome Timer - StarSlide - Save Santa
@jamiebeach
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Advertising Service - ad sizes

Thank you.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.