Facebook Audience Network plugin for Flutter apps. You can show Facebook Banner ads, Interstitial ads, Rewarded video ads and Native ads though this plugin.
Package selection guidance compiled from public package information, community data, and project usage.
The Facebook Audience Network plugin enables Flutter developers to integrate native advertising into their apps. It supports multiple ad formats including banner, interstitial, rewarded video, and native ads, allowing monetization across both Android and iOS platforms. The plugin provides a straightforward interface for loading and displaying ads, leveraging Facebook's extensive ad network for high-quality, targeted content. Developers can easily implement these features with minimal setup using the provided Flutter API.
Use cases
Monetizing mobile applications with in-app ads
Displaying rewarded video ads for user engagement
Integrating native ads for seamless UI experience
Showing interstitial ads between app screens
Using banner ads for continuous revenue generation
Key features
Supports banner, interstitial, rewarded video, and native ads
Cross-platform compatibility (Android and iOS)
Simple integration with Flutter
Real-time ad serving via Facebook's network
Easy-to-use Flutter API for ad management
Suitable for
Flutter developers seeking ad monetization
Apps targeting global audiences
Projects requiring diverse ad formats
Developers using Facebook's ad ecosystem
Mobile apps aiming for higher engagement through rewarded content
Considerations
Requires Facebook Developer account and app setup
Ad performance depends on region and audience
May affect user experience if overused
Compliance with Facebook's ad policies required
Limited customization compared to native SDKs
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
NativeAdType NATIVE_AD_HORIZONTAL & NATIVE_AD_VERTICAL ad types are supported only in iOS. In Android use NATIVE_AD.
FacebookNativeAd(
placementId: "YOUR_PLACEMENT_ID",
adType: NativeAdType.NATIVE_AD,
width: double.infinity,
height: 300,
backgroundColor: Colors.blue,
titleColor: Colors.white,
descriptionColor: Colors.white,
buttonColor: Colors.deepPurple,
buttonTitleColor: Colors.white,
buttonBorderColor: Colors.white,
keepAlive: true, //set true if you do not want adview to refresh on widget rebuild
keepExpandedWhileLoading: false, // set false if you want to collapse the native ad view when the ad is loading
expandAnimationDuraion: 300, //in milliseconds. Expands the adview with animation when ad is loaded
listener: (result, value) {
print("Native Ad: $result --> $value");
},
),
6. Show Native Banner Ad:
Use NativeBannerAdSize to choose the height for Native banner ads. height property is ignored for native banner ads.