unified_ads_facebook 1.1.0
unified_ads_facebook: ^1.1.0 copied to clipboard
Facebook Audience Network (Meta) adapter for unified_ads: banner, interstitial and rewarded. Links only the Audience Network SDK; production fill needs bidding.
1.1.0 #
- README restyled (✨ Features, 🚀 Getting Started, 📖 Usage, …), with usage for interstitial pacing and ad-free mode
(
AdPacing,UnifiedAds.recordAction,UnifiedAds.setAdFree, all fromunified_ads1.1.0). No adapter code changes. - BREAKING (iOS): CocoaPods support is removed; iOS builds use Swift Package Manager only (the podspec is deleted). Requires Flutter >= 3.44 with SPM enabled and Xcode 26.2+. The deployment target is now set on the Runner target in Xcode. See the migration guide.
- iOS SDK comes from
github.com/facebook/FBAudienceNetwork(FBAudienceNetwork, iOS 15+); see the 6.22.1 bump below. - Opt-in linking on iOS now works through SPM: the vendor SDK is declared only in this package's
Package.swift, soFlutterGeneratedPluginSwiftPackageresolves it only when the app depends on this package (checked againstPackage.resolvedin CI). - Pigeon bindings regenerated with pigeon ^29.0.8.
- iOS: FBAudienceNetwork 6.22.0 → 6.22.1 (rewarded / interstitial fixes). It now matches AppLovin's (
6220100.0.0) and LevelPlay's (5.6.0) Meta Swift packages; Google's Meta package still pins 6.22.0, so it can't share an iOS app with this version. Android stays on 6.22.0, the latest on Maven. - iOS:
FBAdSettings.setAdvertiserTrackingEnabledis now set from the ATT status on iOS 15–16, as Meta requires below iOS 17 (at consent time and before init). iOS 17+ is unchanged. - Docs:
loadAddeprecated since 6.11; Swift namesload()/show(fromRootViewController:)/isMixedAudience. - README: package-specific.
- No Dart API changes.
1.0.0 #
Initial release: the Facebook Audience Network (branded Meta Audience Network) adapter for unified_ads.
-
Banner, interstitial and rewarded ads behind the unified
AdNetworkAdaptercontract (Pigeon + Kotlin + Swift). -
Pinned SDKs:
- Android:
com.facebook.android:audience-network-sdk6.22.0 - iOS:
FBAudienceNetwork6.22.0 (iOS 15+; CocoaPods and Swift Package Manager)
- Android:
-
Adding this package links only the Audience Network SDK. Apps without it never pull it in, which CI verifies.
-
Test mode uses
NetworkConfig.testDeviceIds. -
Consent: a CCPA opt-out maps to Limited Data Use, and COPPA maps to mixed audience.
-
Every native error maps to an
AdErrorwith the SDK's own code innativeCode. -
Renamed from
unified_ads_meta/MetaAdapter/AdNetwork.metabefore the first release (seedoc/migration/1.0.0-meta-to-facebook.md). -
For production Meta demand, use opt-in bidding through
unified_ads_admob,unified_ads_applovinorunified_ads_ironsourceinstead (seedoc/setup/facebook.md).
Known limitations:
- Audience Network is bidding-only. Direct loads serve test ads, but production fill needs mediation bidding.
- Android apps must allow cleartext traffic to
127.0.0.1; otherwise the SDK fails with error 7003. - iOS sources compile only in CI (
flutter build ios --no-codesign) and have not yet run on a device.