ads_kit 0.1.1
ads_kit: ^0.1.1 copied to clipboard
Mediation-platform-independent ad abstraction: AdProvider contract, AdManager, frequency capping, health monitoring and remote-config-driven provider selection.
Changelog #
0.1.1 #
- Fix: a zero or negative
health_failure_thresholdin remote config now falls back to the default of 3 instead of throwing inAdManager.boot()(debug) or tripping on every failure (release). - Fix: repeated failures on an unhealthy provider start at most one health fallback at a time, instead of initializing (and leaking) a fallback provider per failure.
- Fix: a provider switch made while a recovery attempt is initializing now wins; the recovery result is disposed instead of overriding it.
- Add
example/example.dart.
0.1.0 #
Initial release.
AdProvidercontract andAdManagerentry point — register providers,boot,switchProvider, zero dependencies on any ad network SDK.- Remote-config-driven provider selection via Firebase Remote Config (
ads_configJSON), with fallback chain ending inNoopAdProvider(no config means no ads, never the wrong ads). FrequencyGuard: interstitial min interval, per-session cap, cold-start grace;startNewSession()to reset caps on the app's own session boundary.HealthMonitorwith automatic fallback on repeated failures (no-fill excluded) and cooldown recovery back to the primary provider without an app restart.- Per-provider extras merged from boot-time
providerExtrasand remote config, with_android/_iosplatform key resolution. updateConsent()to reapply consent mid-session; provider init timeout; preload of enabled fullscreen formats on activation; fullscreen shows complete at dismiss with a display timeout.