prebid_mobile_sdk_gam 1.1.0
prebid_mobile_sdk_gam: ^1.1.0 copied to clipboard
Unofficial Google Ad Manager (GAM) rendering for prebid_mobile_sdk, via Prebid's GAM event handlers. Optional companion package.
Changelog #
All notable changes to this package are documented here. The format follows Keep a Changelog and the package uses Semantic Versioning.
1.1.0 - 2026-10-30 #
Added #
gpid(imp.ext.gpid) onPrebidGamBannerAd,PrebidGamPreloadedBannerAd,PrebidGamInterstitialAdandPrebidGamRewardedAd, as onPrebidGamNativeAd.
Changed #
- Requires
prebid_mobile_sdk1.1.0 or later. - Android: Prebid Mobile SDK 3.4.1 (was 3.4.0).
Fixed #
- Android:
PrebidGamNativeAdreportsonFetchDemandFailed('prebidDemandNoBids')when no bid won; Prebid'shb_cache_id_localkeyword, set either way, made it reportonFetchDemandSuccess. - A GAM custom-format native ad without a Prebid creative records its
impression once half of it has been on screen for a second, Flutter's
clips (a scroll viewport,
ClipRect) included, instead of as soon as it rendered (an ad built off screen counted an impression). - iOS: native ads measure their height at the view's width, and again when it changes (rotation); text that wraps no longer cuts off the bottom of the ad. A custom-format ad reports its height too.
- Android: interstitial and rewarded ads are released when the Activity is
destroyed, reporting
onAdFailed, instead of keeping the Activity alive (add-to-app with a cached engine). - The Android library's Gradle
versionis the package version (it was the plugin template's1.0-SNAPSHOT). - Android: native ads free their
NativeAdViewwhen replaced or disposed, and lay out in dp rather than raw pixels (they looked different on each screen density). - iOS: fullscreen ads present from the Flutter engine's own window, and banners from their own, instead of the first key window: on an iPad with several windows, or with Flutter in a secondary scene (add-to-app), they appeared in the wrong one. The key window remains the fallback.
- iOS: a GAM custom-format ad that wins reports
onAdImpressionandonAdClicked, as on Android. - iOS: a native ad's click-through opens from the ad's own window.
- Android: interstitial and rewarded ads are released when the Activity is re-created for a configuration change, as the core plugin's are, instead of showing on the destroyed Activity.
PrebidGamNativeAdin a parent with an unbounded width (aRow, a horizontal list) takes the screen width instead of failing layout.- iOS:
show()during a view controller transition that UIKit can't queue reportsonAdDisplayedoronAdFailed; it could report neither. - Android: a result code added by a newer Prebid SDK no longer crashes the app.
1.0.0 - 2026-10-11 #
First stable release: Google Ad Manager renders Prebid and direct-sold demand
through Prebid's GAM event handlers. Built on Prebid Mobile SDK 3.4; works with
prebid_mobile_sdk 1.x (^1.0.0).
Added #
- Preloaded banners (
PrebidGamPreloadedBannerAd, shown byPrebidGamPreloadedBannerAdView): loaded before their slot is on screen and kept across the views showing them. - Banner ads with multisize, banner and video multiformat, outstream video events, auto-refresh and on-demand loading; the slot resizes to the creative that renders.
- Interstitial and rewarded ads with rendering controls and video signals;
interstitials request display, video (
isVideo) or both (adFormats). - Native ads through GAM custom native formats and unified native ads, with
customTargeting,gpid,pbAdSlotandimpOrtbConfig, and configurable assets (including image MIME types andextfields). For a Prebid creative,onAdImpressionfires when Prebid's impression tracker request succeeds (the core native view's is viewability-based). - Custom Google Ad Manager targeting alongside Prebid's keywords.
- Ad position, ad slot, GPID and per-impression OpenRTB configuration.
- Bid expiration events.
- On Android, ads loaded before the Prebid SDK finished initializing report
onAdFailed("The Prebid SDK is not initialized"; native:onFetchDemandFailed('prebidSdkNotInitialized')) instead of never answering. - Prebid ad slot (
pbAdSlot) on interstitial and rewarded ads, per-unit global OpenRTB configuration on every format, and the native request as the core'sNativeParameters(placement count, sequence, URL support, privacy,ext).