Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 923 Bytes

File metadata and controls

34 lines (25 loc) · 923 Bytes

AdME

AdME stands for Advertising Micro Edition. It is a mobile Java ME API that allows developers to integrate ad networks into their apps, in order to make some revenues. AdME has a very extensible design, which allows it to work with most ad network.

Articles

Sample Code

...

AdHandler adHandler = new InneractiveAdHandler("<app id>");
AdManager adManager = new AdManager(adHandler);
//
adManager.setAdListener(new AdListener() {
	public void onReceived(Ad ad) {
    	Image adImage = Image.createImage(ad.getImage());
    }
    
    public void onFailedAd(Throwable exception) {
    	System.out.println(exception.getMessage());
    }
});
//
adManager.requestAd();
...

External Links