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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
jasoncheung
Posts: 67
Registered: ‎09-01-2012
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?

 

Thanks

Please use plain text.
Developer
javoid
Posts: 174
Registered: ‎11-24-2012
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->setPreferredWidth(AD_WIDTH);
banner->setPreferredHeight(AD_HEIGHT); ... banner->setScale(adScaleMultiplier, adScaleMultiplier);
myContainer->add(banner);

 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.

 

 

 

Please use plain text.
Contributor
battlegoat
Posts: 16
Registered: ‎01-04-2013
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.

 

Please use plain text.
Regular Contributor
marcossit
Posts: 84
Registered: ‎07-19-2012
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.

 

nueva.JPG

 

 

This is the data that I enter.Capturad.JPG

 

Capturae.JPG

 

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

Download my App for BB10 http://appworld.blackberry.com/webstore/content/134103/
Please use plain text.