google_admob_sdk 0.0.6 copy "google_admob_sdk: ^0.0.6" to clipboard
google_admob_sdk: ^0.0.6 copied to clipboard

A Flutter plugin for Google Mobile Ads (AdMob) with centralized Ad Unit ID management, load duration metrics, adKey tracking, and pre-built ad widgets & managers.

0.0.6 #

  • Tag & Logging Enhancements:
    • Standardized bracketed tag [GoogleAdmobSdk] across all log outputs for easy search and filtering in Android Studio Logcat.
    • Added configurable logTag parameter (defaults to [GoogleAdmobSdk]) in GoogleAdmobSdk.initialize, with runtime getter GoogleAdmobSdk.instance.logTag and setter GoogleAdmobSdk.instance.setLogTag(String).
    • Added custom log interceptor callback onLog in GoogleAdmobSdk.initialize and runtime setter GoogleAdmobSdk.instance.setOnLog(callback).
    • Silenced repetitive uninitialized Firebase warning in FirebaseAdLogger when Firebase is not configured in the host app.
  • Dependency Compatibility:
    • Expanded dependency ranges: firebase_analytics: '>=12.4.6 <13.0.0' and firebase_core: '>=4.13.0 <5.0.0' for maximum compatibility across Flutter apps.

0.0.5 #

  • Device & Console Logging Enhancements:
    • Added enableDeviceLog and enableLogging flags in GoogleAdmobSdk.initialize to output formatted logs directly to Android Studio Logcat and iOS console across all build modes (Debug, Profile, and Release).
    • Added runtime logging toggle GoogleAdmobSdk.instance.setLoggingEnabled(bool).
    • Formatted output displaying detailed diagnostics for AdMob Load Success (format, unit ID, placement, load duration ms, network), Load Failure (error code, error message, duration), Impressions (with revenue value), Clicks, and Fullscreen Ad Completions.

0.0.4 #

  • Android Built-in Kotlin Migration:
    • Migrated plugin build configuration from external Kotlin Gradle Plugin (org.jetbrains.kotlin.android) to AGP Built-in Kotlin (id("com.android.library")), resolving Flutter KGP deprecation warnings.
    • Configured unified JVM target 17 across Java and Kotlin tasks (tasks.withType<KotlinCompile>).
  • Dependency Updates & Compatibility:
    • Updated and verified dependencies: google_mobile_ads: ^9.1.0, firebase_analytics: ^12.4.6, firebase_core: ^4.13.0, flutter_lints: ^6.0.0.
    • Re-exported firebase_core and firebase_analytics from the main barrel file for convenient access.
    • Made FirebaseAdLogger resilient with lazy initialization to prevent crashes when Firebase is not yet configured.
  • AI-Ready Context & Developer Documentation:
    • Added root AGENTS.md, workspace rules (.agents/rules/), and workflow skill (.agents/skills/google-admob-sdk-guide/).
    • Added comprehensive architecture, ad format, and Databuckets tracking documentation in doc/ (ARCHITECTURE.md, AD_FORMATS_GUIDE.md, DATABUCKETS_TRACKING.md, TESTING_AND_CONTRIBUTING.md).
  • Package Publishing & Quality:
    • Optimized .pubignore and .gitignore to keep published archive size ultra-compact (~267 KB).
    • Excluded build artifacts in analysis_options.yaml with 0 analysis issues and 100% test coverage.
    • Synchronized example project dependencies and configuration.

0.0.3 #

  • Fixed onPaidEvent setter error in BannerAdWidget and NativeAdWidget by passing onPaidEvent directly as a parameter in BannerAdListener and NativeAdListener.
  • Expanded logAdRequest with support for full Databuckets Sheet 41 parameters: ad_request_id, ad_unit_name, ad_mediation, screen_name, error_code, error_message, ad_mediation_ab_test_name, ad_mediation_ab_test_variant, session_number, ad_source_instance, ad_source_instance_id, ad_source, ad_source_id, media_format.
  • Added dual event firing for Sheet 41 Universal IAA events (iaa_request, iaa_loaded, iaa_fail_load, iaa_impression, iaa_fail_show, iaa_click, iaa_complete) alongside legacy ad_* events.
  • Updated all ad widgets (BannerAdWidget, NativeAdWidget) and ad managers (InterstitialAdManager, RewardedAdManager, RewardedInterstitialAdManager, AppOpenAdManager) to accept the new tracking parameters and automatically log them during ad load requests.
  • Fully verified and aligned all IAA tracking events with Technify <> Databuckets - 41.csv specification.

0.0.2 #

  • Added adKey parameter support across all ad widgets and managers, sending ad_key and type-specific key_<ad_type> parameters (key_banner, key_interstitial, key_rewarded, key_rewardedInterstitial, key_appOpen, key_native) to Firebase Analytics.
  • Added RewardedInterstitialAdManager for Rewarded Interstitial Ads with official Google test IDs.
  • Added NativeAdWidget for Native Ads with customizable NativeTemplateStyle and NativeAdOptions.
  • Added customizable progressIndicator property to BannerAdWidget and NativeAdWidget.
  • Added comprehensive unit test suite covering all configurations, loggers, and ad managers.

0.0.1 #

  • Initial release of google_admob_sdk.
  • Added GoogleAdmobSdk manager for centralized SDK initialization.
  • Added AdIdConfig for managing Android & iOS Ad Unit IDs with Google test IDs fallback.
  • Added AdAnalyticsLogger supporting FirebaseAdLogger and ConsoleAdLogger.
  • Added BannerAdWidget widget for automatic banner state management.
  • Added InterstitialAdManager, RewardedAdManager, and AppOpenAdManager.
0
likes
160
points
241
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for Google Mobile Ads (AdMob) with centralized Ad Unit ID management, load duration metrics, adKey tracking, and pre-built ad widgets & managers.

Repository (GitLab)

License

MIT (license)

Dependencies

firebase_analytics, firebase_core, flutter, google_mobile_ads

More

Packages that depend on google_admob_sdk

Packages that implement google_admob_sdk