fp_ads library

Main entry point for fp_ads.

Classes

AdConstants
Provides AdMob App and Ad Unit IDs for all supported ad formats. Supports runtime configuration for real IDs and switches based on useTestAds.
AdEvent
Represents a standardized ad event for analytics logging (e.g. Firebase Analytics, AppsFlyer, Adjust).
AdsManager
Centralized manager for configuring AdMob IDs, initializing Google Mobile Ads SDK, managing custom/house ads, handling GDPR/CPRA consent, coordinating full-screen ad presentation, and managing ad-free / premium status.
AdsService
Unified contract for all full-screen Google Mobile Ads in features.
AdsServiceImpl
Unified, production-grade implementation of AdsService.
AppOpenAdManager
Manages App Open Ad loading, display on cold start / background resume, and policy compliance.
ConsentManager
Helper service for Google User Messaging Platform (UMP) GDPR / CPRA Consent.
ConsentResult
Centralized result for User Messaging Platform (UMP) consent requests.
CustomAdModel
Represents an enterprise-grade custom/house ad item for offline fallback or direct campaigns.
CustomOfflineBannerAdWidget
A compliant fallback banner ad shown when there is no internet connection or as a house ad.
CustomOfflineNativeAdWidget
A compliant fallback Native Ad shown when the device is offline or for custom house campaigns.
InterstitialAdService
Service dedicated to managing the lifecycle of Interstitial Ads.
NetworkInfo
Contract for monitoring network connectivity status.
NetworkInfoImpl
Standard implementation of NetworkInfo backed by InternetConnection.
RewardedAdService
Service dedicated to managing the lifecycle of Rewarded Video Ads.
RewardedInterstitialAdService
Service dedicated to managing the lifecycle of Rewarded Interstitial Ads.
SmartBannerAdView
A smart, policy-compliant reusable widget for displaying Banner Ads.
SmartNativeAdView
A smart, policy-compliant reusable widget for displaying Native Ads.

Enums

AdEventType
Lifecycle and analytics event types for Google Mobile Ads.
AdFormat
Supported Google Mobile Ads ad formats.

Typedefs

AdManager = AdsManager
Convenience alias for AdsManager.
BannerAdWidget = SmartBannerAdView
Backward compatibility alias for SmartBannerAdView.
NativeAdWidget = SmartNativeAdView
Backward compatibility alias for SmartNativeAdView.
OnAdEventCallback = void Function(AdEvent event)
Signature for global ad event listener callbacks.
OnCustomAdClickCallback = void Function(dynamic ad)
Signature for global custom ad click handler callbacks.