10-12-2010 11:07 AM
Hello I have just downloaded the Ad SDK from blackberry. Followed all the rules to get the .jar files to my project and also loaded the .cod file to my simulator.
I provided this code in the constructor which I wanted my ad to display and everytime I try and open the app. I wont open. Says its an uncaught error. I also put a try, catch statement around this piece of code.
Here is the code:
import net.rim.blackberry.api.advertising.app******.Banne
Banner bannerAd = new Banner(******, null);
bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE);
add(bannerAd);
What am I doing wrong?
Please Help
Thanks
Scientific
Solved! Go to Solution.
10-12-2010 11:23 AM
I just learned that BAS does not work in the simluator. However it works with the device...
10-12-2010 11:30 AM
So I would need to run this on a device? That pretty poor that BlackBerry has a whole tutorial set up for how to run it on a simulator.
Thanks
Scientific
10-12-2010 11:45 AM
I have this code (It's the same as BAS docs)
private static final int PLACEMENT_ID = XXXXXX;
public AdDemoScreen() {
Banner bannerAd = new Banner(PLACEMENT_ID, null);
bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE);
add(new LabelField("Up the banner"));
add(new SeparatorField());
add(bannerAd);
add(new SeparatorField());
add(new LabelField("Down the banner"));
}
And in the simulator does not show any add. I ask technical support and learned that BAS does not work with simulator (simulator cannot show Live Campaigns.) You have to ask for switching to test mode.
10-12-2010 11:59 AM
You can check this forum, it is all about BBAS
http://supportforums.blackberry.com/t5/BlackBerry-
10-12-2010 12:04 PM
Ok thank you very much.
Any ideas why my app keeps throwing an error everytime I try to open it?
It sounds like you guys can get your app open but theres just no ads.
Thank you very very much for this help.
Scientific
06-15-2012 03:32 AM
@Scientific
were you able to run the demo on simulator or on device?
I am also seeing noclassdef error when I launch my app
Thanks
Abhinav