Package com.codename1.ads


package com.codename1.ads

The modern, pluggable Codename One advertising API.

Start from AdManager, which selects an ad network provider (supplied by an ad cn1lib such as the Google AdMob library) and exposes the full set of contemporary ad formats:

Privacy consent (GDPR via the User Messaging Platform, and iOS App Tracking Transparency) is handled by AdConsent. Ad networks plug in by implementing AdProvider; the design stays network agnostic so AdMob, AppLovin MAX, Unity LevelPlay or a custom mediation layer can be swapped without touching application code.

Legacy API

The original banner ad service in this package - AdsService and InnerActive, along with com.codename1.components.Ads and com.codename1.impl.FullScreenAdService - is deprecated. It targets ad networks that no longer exist and predates consent management. Use AdManager for all new development.