# Package com.codename1.ads.spi

package com.codename1.ads.spi
Service provider interface (SPI) for the Codename One advertising API. Ad network libraries implement `AdProvider` and register it with `AdManager` (typically from a static `install()` method). Application code never references these types; it uses the facade and format classes in `com.codename1.ads`.

- Related Packages
  Package
  Description
  com.codename1.ads
  The modern, pluggable Codename One advertising API.
- Interfaces
  Class
  Description
  AdConsentController
  A provider's consent and privacy controller, backing the public `AdConsent` facade.
  AdProvider
  The service provider interface implemented by an ad network library (such as the Google AdMob library).
  AdSessionCallback
  The callback a `AdProvider` uses to report ad lifecycle events back to the Codename One ads layer.
  BannerAdSession
  A provider's handle for a banner ad.
  FullScreenAdSession
  A provider's handle for a single full screen ad (interstitial, rewarded, rewarded interstitial or app open).
  NativeAdProvider
  Optional capability interface implemented by an `AdProvider` that supports native ads.