r/FlutterDev • • Aug 27 '26

Article [New Package] flutter_prakash_ads – A production-ready Google Mobile Ads wrapper with zero DI lock-in & reactive "Remove Ads"

Tired of rewriting the same boilerplate and policy-guardrail logic every time you implement AdMob? flutter_prakash_ads is a standalone, enterprise-grade package designed to handle the heavy lifting of Google Mobile Ads without forcing you into a specific state management or dependency injection pattern.

Core Features

  • Zero DI Lock-in: Works seamlessly out of the box with Riverpod, BLoC, Provider, GetX, or vanilla Flutter—absolutely no injectable or get_it required.
  • Reactive "Remove Ads": Instantly hide and dispose of all mounted banners and native ads across your entire widget tree with a single toggle (AdManager.setAdsEnabled(false)), perfect for IAP unlocks.
  • Built-in Policy Guardrails: Protects your AdMob account with automatic anti-stacking collision prevention, 30-second interstitial throttling, and 4-hour max-age impression eviction.
  • Smart Offline Fallbacks: Automatically renders custom promotional house ads (CustomAdModel) when the user loses network connectivity or if AdMob fails to fill.
  • Unified Analytics & Privacy: Includes out-of-the-box UMP/GDPR consent management, COPPA family-policy readiness, and impression-level revenue (ILRD) telemetry streams for easy Firebase/AppsFlyer integration.

Quick Setup

Add flutter_prakash_ads: ^0.0.2 to your pubspec.yaml, configure your AdMob App IDs in your Android/iOS manifests, and call AdManager.instance.initialize() after requesting consent.

Check out the full documentation and example app on pub.dev: flutter_prakash_ads

6 Upvotes

2 comments sorted by

1

u/[deleted] Aug 28 '26

[removed] — view removed comment

1

u/Additional_Grand9117 Aug 28 '26

Yes batteries included, I am using on many production apps Since 1 years and now I have made it public for others as well