google_ads_helper 1.0.1
google_ads_helper: ^1.0.1 copied to clipboard
A comprehensive Flutter plugin for Google Mobile Ads with easy integration, smart initialization, revenue tracking, and professional widgets.
Changelog #
1.1.0 #
New Features #
- Random Interstitial Frequency: Interstitial ads now show at random intervals between 3-5 calls instead of fixed count
- Smart Preloading: Interstitial ads are now preloaded 2 calls before they're needed for instant display
- Enhanced Callback System:
onAdFailedToShowcallback now only triggers when count doesn't match (ad won't show) - Improved Revenue Tracking: Better integration with the new random frequency system
Improvements #
- Better User Experience: Ads load proactively, eliminating loading delays when showing
- More Natural Ad Flow: Random intervals make ad showing less predictable and more user-friendly
- Optimized Loading: Reduced unnecessary ad loading by using smart preloading strategy
- Enhanced Debug Info: Debug helpers now show interstitial count information and preloading status
Technical Changes #
- Updated
AdConstants.interstitialShowEveryCountto use random generation (3-5 range) - Added
getNewRandomInterstitialCount()helper method - Modified
showInterstitialAd()to implement smart preloading logic - Updated initialization to exclude automatic interstitial loading (now uses smart preloading)
- Enhanced debug output with interstitial count tracking
Bug Fixes #
- Fixed callback timing for interstitial ads
- Improved error handling during preloading phase
1.0.0 #
Initial Release #
- Easy one-line initialization for Google Mobile Ads
- Smart ad loading with count-based interstitial control
- Revenue tracking and calculation
- Professional UI widgets (Banner, Native, Smart containers)
- Automatic retry logic and error handling
- Debug helpers for development
- Support for Banner, Interstitial, Rewarded, and Native ads