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
Melad
Posts: 10
Registered: ‎07-18-2011
My Device: 8520

No ads are shown on real device

Hi all,

Am using Advertising service in my application and used the following code for  testing:

 

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.MainScreen;
import net.rimlib.blackberry.api.advertising.app.Banner;

public class BBAdTest extends MainScreen {

    private static final int BB_AD_ZONE_ID = xxxxx;

    public static void main(String[] args) {
        UiApplication app = new UiApplication() {
        };
        app.pushScreen(new BBAdTest());
        app.enterEventDispatcher();
    }

    public BBAdTest() {
        super();

        HorizontalFieldManager adManager = new HorizontalFieldManager(USE_ALL_WIDTH);
        Banner adBanner = new Banner(BB_AD_ZONE_ID, null);
        adManager.add(adBanner);
        add(adManager);
    }
}

 

While the ads are being displayed on the simulator  no ads are shown on real device (I am testing on curve 8520)



Contributor
garfield9791
Posts: 30
Registered: ‎03-30-2012
My Device: BlackBerry Bold 9000

Re: No ads are shown on real device

I am facing the same issue, do let me know if you managed to resolve this.

Developer
soaman
Posts: 849
Registered: ‎03-03-2011
My Device: Z10

Re: No ads are shown on real device

Do you get ?GIF.......?
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
New Developer
kaisershmarren
Posts: 10
Registered: ‎09-15-2010
My Device: Not Specified

Re: No ads are shown on real device

I've the same problem.

I put the app on sale today, I've around 90 requests and 0 impressions.

I've made a trial on my real device and it does  not display any ads.

 

During testing, I tested the trial zone ID (the one provisioned with sdk) and it worked...

 

Dear RIM... could you tell us how really ad service works?!?

It seems not be enough to include the correct code in our application....