NoOpAdManager

Default no-op manager used when ads aren't configured. All loads fail with AdError.sdkNotReady and the status is always AdManagerStatus.Disabled.

Properties

Link copied to clipboard
open override val consent: ConsentController

Consent lifecycle controller (UMP integration).

Link copied to clipboard
open override val diagnostics: AdDiagnostics

Diagnostics and debug tools.

Link copied to clipboard
open override val events: SharedFlow<AdEvent>

Shared flow of ad lifecycle events (AdEvent) for all formats.

Link copied to clipboard
open override val status: StateFlow<AdManagerStatus>

Current initialization and consent state of the SDK.

Link copied to clipboard
open override val tracking: AdTrackingController

App Tracking Transparency controller (iOS); a no-op reporting NotApplicable on Android.

Functions

Link copied to clipboard
open override fun appOpen(placement: AdPlacement): AppOpenAdController

Returns an AppOpenAdController for placement, cached by id.

Link copied to clipboard
open override fun banner(placement: AdPlacement): BannerAdController

Returns a BannerAdController for placement, cached by id.

Link copied to clipboard

Convenience extension that calls initialize with ConsentMode.GatherBeforeInitialize — the standard consent flow that requests a UMP update, shows the form if required, and initializes ads when permitted.

Link copied to clipboard
open suspend override fun initialize(config: AdConfig, consentMode: ConsentMode = ConsentMode.GatherBeforeInitialize): AdManagerStatus

Initializes the Google Mobile Ads SDK with the given config and consentMode.

Link copied to clipboard
open override fun interstitial(placement: AdPlacement): InterstitialAdController

Returns an InterstitialAdController for placement, cached by id.

Link copied to clipboard
open override fun nativeAd(placement: AdPlacement): NativeAdPool

Returns a NativeAdPool for placement, cached by id.

Link copied to clipboard
open override fun rewarded(placement: AdPlacement): RewardedAdController

Returns a RewardedAdController for placement, cached by id.

Link copied to clipboard
Link copied to clipboard

Convenience extension that calls ConsentController.showPrivacyOptions on this manager's AdManager.consent controller.