Package selection guidance compiled from public package information, community data, and project usage.
admob_easy is a Flutter package that simplifies integration with Google AdMob, enabling developers to quickly add ads to their Android and iOS apps. It provides an easy-to-use API for displaying banner, interstitial, and rewarded ads without requiring deep knowledge of native ad implementation. The package handles initialization and ad loading seamlessly, reducing boilerplate code and streamlining the monetization process. Ideal for developers seeking a straightforward path to generate revenue from their apps.
Use cases
Monetizing mobile apps with banner ads
Displaying interstitial ads between app screens
Implementing rewarded video ads for user incentives
Adding quick ad integration without native code
Enabling in-app advertising for small to medium projects
Key features
Simple API for ad placement
Support for banner, interstitial, and rewarded ads
Automatic ad initialization
Cross-platform compatibility (Android & iOS)
Minimal setup required
Suitable for
Beginner Flutter developers
Apps needing fast ad integration
Projects with limited development time
Indie developers focused on monetization
Small to mid-sized apps looking for easy ad support
Considerations
Requires Google AdMob account setup
Ad performance depends on network availability
May require compliance with AdMob policies
Limited customization compared to native SDKs
Not suitable for complex ad logic or advanced targeting
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Admob Easy
This documentation guides integrating ads into a Flutter application using the provided helper classes.
AdMob Easy automatically handles the User Messaging Platform (UMP) for you, ensuring compliance with privacy regulations.
adID → Custom AdMob Unit ID (if null, defaults to AdmobEasy.instance.nativeAdID).
templateType → Choose between TemplateType.small or TemplateType.medium.
minWidth, minHeight, maxWidth, maxHeight → Controls the size of the ad container.
onAdClicked → Callback when the ad is clicked.
onAdImpression → Callback when an ad impression is logged.
onAdClosed → Callback when the ad is closed.
onAdOpened → Callback when the ad is opened.
onAdWillDismissScreen → Callback when the ad is about to dismiss the screen.
onPaidEvent → Callback for handling paid events from the ad.
Best Practices for Native Ads
✅ Preload early – Call loadNativeAd() on your splash screen or just before the screen where the ad will be shown.
✅ Dispose when unused – Always call disposeNative() when leaving the screen to free memory.
✅ Avoid multiple preload calls – The mixin ensures only one native ad is preloaded at a time.
✅ Handle callbacks – Use onAdClicked, onAdImpression, and onPaidEvent to track engagement and revenue.
✅ Fallback UI – If no ad is preloaded, showNativeAd() automatically shows a loading placeholder.
Internet Connectivity
Admob Easy automatically checks if the device is online before loading ads.
You can check connectivity manually:
AdmobEasy.instance.isConnected.value; // true if connected