Banner bannerAd = new Banner(your zone id, null); bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE); //bannerAd.setTestModeFlag(true); VerticalFieldManager vfm = new VerticalFieldManager (VerticalFieldManager.NO_VERTICAL_SCROLL | VerticalFieldManager.NO_VERTICAL_SCROLLBAR | VerticalFieldManager.USE_ALL_WIDTH); HorizontalFieldManager hfm = new HorizontalFieldManager (HorizontalFieldManager.FIELD_HCENTER | HorizontalFieldManager.FIELD_VCENTER); hfm.add(bannerAd); vfm.add(hfm); add(vfm);
Showing posts with label Ads. Show all posts
Showing posts with label Ads. Show all posts
Tuesday, February 5, 2013
Display Ads in Blackberry
The following code will display ads in blackberry.
First register for blackberry adservice click here.
Subscribe to:
Posts (Atom)