Skip to content

v0.5.0-alpha - Interstitial ads (Android device-verified)

Pre-release
Pre-release

Choose a tag to compare

@blessedzulu blessedzulu released this 31 May 19:55
· 33 commits to main since this release

Second real ad format. Interstitials now render on Android (verified end-to-end on emulator via Zamcalc); iOS mirror written against Google's reference docs and untested on real hardware.

Highlights

  • Admob::interstitial('slot')->load() pre-loads. ->isReady() reports availability. ->show() presents the full-screen interstitial. One-shot semantics: registry slot is cleared on dismissal or failed-show; re-load before next show.
  • FullScreenContentCallback (Android) / FullScreenContentDelegate (iOS) wired into the bridge. Events dispatched: AdLoaded, AdFailedToLoad, AdShown, AdFailedToShow, AdImpression, AdClicked, AdDismissed.
  • iOS: InterstitialDelegate retains the FullScreenContentDelegate alongside the ad in the registry so Google's weak reference doesn't deallocate it before present(from:) fires its callbacks.

Fixed

  • Phase 3 followup: ShowBanner failure path was dispatching the string AdShowFailed; the canonical PHP event class is AdFailedToShow. Renamed on both Android and iOS so production listeners actually receive the event.

Still stubs

Rewarded, Rewarded Interstitial, App Open, UMP, ATT - Phases 5 through 8.

Full notes: CHANGELOG.md.