smart_google_ads library

Classes

AdClickProvider
Notifies listeners when an ad has been clicked during the current session.
AdRemoteKeys
Remote Config default key names (customizable via provider)
AdsAdUnitIds
All ad unit IDs used by AdsBootstrap.
AdsBootstrap
Package-owned entry point for initializing the complete ads stack.
AdsConfig
AdsConsentClient
Small abstraction around UMP so consent decisions are testable without a platform channel. Most applications never need to implement this type.
AdsConsentManager
Coordinates UMP and exposes the safe decision used by AdsService.
AdsConsentOptions
Configuration for Google's UMP consent flow.
AdsKeyProvider
AdsPolicyOptions
Optional global request restrictions for the Google Mobile Ads SDK.
AdsRemoteConfigOptions
Controls how AdsBootstrap obtains feature flags.
AdsService
AppOpenForegroundGate
Suppresses the first foreground opportunity after ads become available.
AppOpenHandler
AppOpenLifecycleCoordinator
Coordinates app-open handling with the Mobile Ads plugin's app-state stream. The injected stream is intended for deterministic unit tests.
BannerAdController
Global controller to manage banner ad visibility when dialogs open/close
BannerAdShimmer
A theme-aware animated loading skeleton for banner ads.
DirectAdsKeyProvider
GoogleAdsConsentClient
UMP-backed implementation used by AdsConsentManager.
NativeHandler
PlatformAdIds
Ad unit IDs for Android and iOS, with optional debug/test IDs.
PlatformRCKeys
Platform-specific Remote Config keys.
RemoteConfigAdsKeyProvider
SmartBannerAdWidget
SmartDialog
Ad-aware wrappers for dialogs and modal surfaces.
SmartNativeAdWidget

Enums

AdsAgeTreatment
The age treatment applied to future ad requests.
AdsConsentDebugGeography
Debug geographies supported by Google's User Messaging Platform (UMP).
AdsConsentStatus
Consent status exposed without requiring callers to depend on UMP types.
AdsMaxAdContentRating
Maximum ad content rating allowed for future ad requests.
AdState
AdType
NativeTemplateSize

Extensions

SmartDialogExtension on BuildContext
Extension on BuildContext for easy access to SmartDialog

Functions

dPrint(Object? message) → void
Simply use dPrint('message') instead of debugPrint

Typedefs

AdsConsentChecker = Future<bool> Function()
AdsSdkInitializer = Future<void> Function()
ProChecker = bool Function()

Exceptions / Errors

AdsConsentException
Error raised by the package's UMP adapter.