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

Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha
My Carrier: Bell

Re: Advertising Service - ad sizes

I'm running into the scaling issue as well.

What's worse is that I am using absolute positioning to place my ad and when I use scale, it completely changes where the "position" of the app is.


It's not an issue if the background is flat, but I'm placing this ad on an area with a design in which my placeholder banner is based upon to "hide" there if there is no service available.


Any updates from RIM themselves?



Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: Advertising Service - ad sizes

[ Edited ]

If you are going to scale the ads, I'd recommend doing it based on the actual screen dimensions returned from DisplayInfo:

bb::device::DisplayInfo display;
m_screenWidth = display.pixelSize().width();

 Then, when setting up your ads:

// AD_WIDTH = 320.0, AD_HEIGHT = 50.0

qreal adScaleMultiplier = m_screenWidth / AD_WIDTH; Banner *banner = new Banner();
banner->setPreferredHeight(AD_HEIGHT); ... banner->setScale(adScaleMultiplier, adScaleMultiplier);

 This works and scales beautifully for me on a portrait BB 10, but might have issues in landscape, or on large screens like the playbook, so modify it accordingly.




Posts: 16
Registered: ‎01-04-2013
My Device: BB10 Dev
My Carrier: Rogers Unfortunately

Re: Advertising Service - ad sizes

So I guess the official line is that, for release, the 320x50 ad size is the largest?


It doesn't look terribly bad when scaled up, but some official guidelines or additions to the docs here wouldn't hurt.


Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Re: Advertising Service - ad sizes

I have a problem, create my zoneid even a month ago and I still leave it.





This is the data that I enter.Capturad.JPG




There will be a mistake? data or bad record? I can do?

Follow me in Twitter:


BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:

Posts: 68
Registered: ‎01-20-2011
My Device: Bold 9900 + Dev Alpha B + PlayBook
My Carrier: O2 UK

Re: Advertising Service - ad sizes

Sorry to resurrect a semi-old thread but..

marcossit, if you're asking how do you get your Network ID - you just click that "Get Code" button :-)
Help fellow forum users! Please remember to click "Like" on helpful posts.
If a post solves your problem click "Mark as solution"