Skip to main content

unified_ads 1.0.0 copy "unified_ads: ^1.0.0" to clipboard
unified_ads: ^1.0.0 copied to clipboard

One unified Dart API for banner, interstitial and rewarded ads across AdMob, Unity, AppLovin MAX, LevelPlay, Facebook Audience Network, Start.io and InMobi.

1.0.0 #

Initial release.

  • UnifiedAds facade:
    • init / isInitialized / dispose, safe on re-init and hot restart;
    • a broadcast events stream;
    • a pluggable logger, silent by default.
  • RewardedInterstitialAd (with RewardedInterstitialCallback) and AppOpenAd, behind the same waterfall, cache, frequency caps and callbacks. Networks without the format are skipped (today: AdMob has both, AppLovin MAX has app open).
  • InterstitialAd and RewardedAd: load() / show() / isReady, every callback, and servedBy (the network that served the ad).
  • BannerAd + UnifiedBannerWidget:
    • platform-view banners in standard, adaptive and inline sizes;
    • anchored or inline placement;
    • forceNetwork and collapse-on-failure.
  • Waterfall across networks with per-network timeouts and automatic fallback. The preload cache refills after close. Frequency capping per format.
  • Declarative config:
    • AdConfigLoader (ads_config.json, per-platform IDs, errors with a JSON path);
    • dart run unified_ads:generate_config turns a pubspec unified_ads: section into that asset, with --set-exit-if-changed for CI.
  • Consent and ATT:
    • gatherConsent / updateConsent with any ConsentProvider;
    • requestTrackingAuthorization / trackingAuthorizationStatus (the iOS ATT helper; weak-linked).
  • package:unified_ads/testing.dart: a scriptable FakeAdNetworkAdapter for app tests.
  • The app never crashes because of an ad: every failure is an AdError / AdResult.
1
likes
160
points
217
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

One unified Dart API for banner, interstitial and rewarded ads across AdMob, Unity, AppLovin MAX, LevelPlay, Facebook Audience Network, Start.io and InMobi.

Repository (GitHub)
View/report issues
Contributing

Topics

#ads #admob #monetization #advertising #mediation

License

MIT (license)

Dependencies

flutter, unified_ads_platform_interface, yaml

More

Packages that depend on unified_ads

Packages that implement unified_ads