A comprehensive Flutter demo application that showcases all primary Google Mobile Ads (AdMob) formats in a single unified project with a landing screen menu.
- App Open Ad (
AppOpenPage) - Full-screen ads designed for app open and foreground transition events. - Banner Ad (
BannerPage) - Anchored adaptive banners that adjust dynamically to device width and orientation changes. - Interstitial Ad (
InterstitialPage) - Full-screen interstitial ads shown at game over / natural transition breakpoints. - Native Platform Ad (
NativePlatformPage) - Custom native ad layout rendered via platform-specific code (Android XML layout and iOS XIB layout) withNativeAdFactory. - Native Template Ad (
NativeTemplatePage) - Native ads styled and rendered directly in Flutter usingNativeTemplateStyle. - Rewarded Ad (
RewardedPage) - Rewarded video ads rewarding users with in-app currency upon completion. - Rewarded Interstitial Ad (
RewardedInterstitialPage) - Rewarded ads with a pre-roll countdown prompt before ad display.
- Centralized Consent Management: Uses Google's User Messaging Platform (UMP) via
ConsentManagersingleton. - Ad Inspector: Built-in support for launching the GMA Ad Inspector from the app bar menu.
- Privacy Settings: User privacy options form support from the app bar menu.
- State & Lifecycle Management: Safe ad resource disposal on screen exit to prevent memory leaks.
- Run
flutter pub getto install dependencies. - Run
flutter runon an iOS or Android device/emulator.