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

BlackBerry Advertising Service

Reply
Contributor
frandelbetis
Posts: 42
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none

Why not change the size of the ad?

I have a banner in my app. I set a property MMA_SIZE_AUTO for the ad resize according the resolution of Screen. But I have used in 7 differents blackberry´s with differents resolutions and the size of the ad is the same....

I have tried with MMA_SIZE_EXTRA_EXTRA_LARGE, MMA_SIZE_EXTRA_LARGE, etc too, and is the same problem. 

My code is:

 

Banner bannerAd = new Banner(Constantes.IDPUBLICIDAD, null, 100000, Constantes.imagenDeEsperaPublicidad);
        bannerAd.setBorderColor(Color.WHITE);
        bannerAd.setBannerTransitionColor(Color.WHITE);
        bannerAd.setMMASize(Banner.MMA_SIZE_AUTO);
        bannerAd.setTestModeFlag(false);
        HorizontalFieldManager hfm = new HorizontalFieldManager(HorizontalFieldManager.FIELD_HCENTER);
        hfm.add(bannerAd);
        add(hfm);

 

Why not change the size of the ad?

 

Thank you

Please use plain text.
Regular Contributor
suhelskype
Posts: 50
Registered: ‎07-28-2011
My Device: Blackberry Torch 9800
My Carrier: T-Mobile

Re: Why not change the size of the ad?

yes good idea, so how do you change the size of an Ad..?

Please use plain text.
Contributor
frandelbetis
Posts: 42
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none

Re: Why not change the size of the ad?

I don´t know yet...

Please use plain text.
Developer
kunal_one
Posts: 145
Registered: ‎12-23-2012
My Device: BB10 Dev Alpha
My Carrier: wifi

Re: Why not change the size of the ad?

I think scalling that component might help ?

Please use plain text.