adhub 0.1.0 copy "adhub: ^0.1.0" to clipboard
adhub: ^0.1.0 copied to clipboard

A Flutter package that simplifies ad integration with a unified API for banner, interstitial, and rewarded ads.

AdHub #

adhub is a Flutter package that simplifies multi-network ad integration through a remote JSON configuration. One unified API handles Google AdMob and AppLovin MAX — with built-in app versioning, maintenance mode, network resilience, and lifecycle utilities.

pub.dev version License


What does this package do? #

Feature Description
📡 Remote JSON Config All ad IDs, flags, and version rules fetched from your own URL
📱 Banner Ads Google AdMob + AppLovin MAX
🎬 Interstitial Ads Google AdMob + AppLovin MAX
💰 Rewarded Ads Google AdMob + AppLovin MAX
🎁 Rewarded Interstitial Google AdMob
🖼️ Native Ads Google AdMob
🔄 AdLoader Overlay Full-screen loading spinner while ads load
🔔 OneSignal Push Auto-initialised from JSON
In-App Review Timer-based rate-us prompt
🛡️ Maintenance Mode Server-side kill-switch — blocks app with a custom message
🌐 Network Resilience 10-second timeout + retry dialog
🔼 Force/Soft Update Version-gate users to the latest release

Installation #

To add this package to your Flutter project, run:

flutter pub add adhub

Google AdMob Test IDs #

Use these when setting isTestOn: true during development.

Android #

Format Test ID
App ID ca-app-pub-3940256099942544~3347511713
Banner ca-app-pub-3940256099942544/6300978111
Interstitial ca-app-pub-3940256099942544/1033173712
Rewarded ca-app-pub-3940256099942544/5224354917
Rewarded Interstitial ca-app-pub-3940256099942544/6978759866
Native ca-app-pub-3940256099942544/2247696110

iOS #

Format Test ID
App ID ca-app-pub-3940256099942544~1458002511
Banner ca-app-pub-3940256099942544/2934735716
Interstitial ca-app-pub-3940256099942544/4411468910
Rewarded ca-app-pub-3940256099942544/1712485313
Rewarded Interstitial ca-app-pub-3940256099942544/5354046379
Native ca-app-pub-3940256099942544/3986624511

Ad Index #

When configuring actions in your JSON, use the following integer index to select which ad network and format to use:

Index Ad Network Format
0 Google AdMob Interstitial
1 Google AdMob Rewarded
2 Google AdMob Rewarded Interstitial
3 AppLovin MAX Interstitial
4 AppLovin MAX Rewarded

License #

MIT © Raj Narola

1
likes
0
points
295
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that simplifies ad integration with a unified API for banner, interstitial, and rewarded ads.

License

unknown (license)

Dependencies

app_tracking_transparency, applovin_max, dio, flutter, flutter_hooks, flutter_svg, google_mobile_ads, in_app_review, loading_animation_widget, onesignal_flutter, package_info_plus, provider, shared_preferences, url_launcher

More

Packages that depend on adhub