Repository navigation
Releases: muhiro12/GoogleMobileAdsWrapper
Releases · muhiro12/GoogleMobileAdsWrapper
Release list
2.0.0
Breaking changes
GoogleMobileAdsWrapper 2.0.0 introduces a SwiftUI-first native ad API and removes the 1.x controller instance, NativeAdSize, and buildNativeAd(_:) APIs.
try await GoogleMobileAdsController.start()
NativeAdView(adUnitID: adUnitID, layout: .compact)
NativeAdView(adUnitID: adUnitID, layout: .media)Apps own the ad placement, background, padding, and size constraints. See the 2.0 migration guide before upgrading.
Improvements
- Replace XIB layouts with code-built UIKit assets hosted in SwiftUI, using compact and media layouts.
- Support natural sizing, bounded frames, Dynamic Type fallbacks, inherited tint, and eight-point fixed design dimensions.
- Give Media videos up to 320 points of height while preserving their aspect ratio; prioritize media space over optional text in constrained placements.
- Expose load and presentation states, explicit reloads, and shared asynchronous SDK initialization.
- Add explicit Google UMP consent and privacy-options operations. The host app remains responsible for consent orchestration, ATT, audience configuration, and privacy disclosures.
- Adopt Swift 6 and Google Mobile Ads SDK 13.10.0, with Google UMP SDK 3.1.0.
- Begin Semantic Versioning. Automatic main releases increment the minor version; explicit versions support major and patch releases.
Verification
81 Swift Testing cases passed. Google-provided test ads were exercised on an iPhone Simulator, including static/video layouts, video playback, native-ad validator checks, AdChoices, reloads, CTA handoff, and constrained sizing. Physical-device, adopting-app, production consent, and mediation verification remain separate integration checks.
Full changelog: 1.4...2.0.0
1.4
1.3
1.2
1.1
1.0
Full Changelog: https://github.com/muhiro12/GoogleMobileAdsWrapper/commits/1.0