Skip to content

feat(admob): demonstrate fullscreen ads - #4096

Merged
polmiro merged 3 commits into
next-gen-admob-sdkfrom
next-gen-admob-sample-fullscreen
Sep 1, 2026
Merged

feat(admob): demonstrate fullscreen ads#4096
polmiro merged 3 commits into
next-gen-admob-sdkfrom
next-gen-admob-sample-fullscreen

Conversation

@polmiro

@polmiro polmiro commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

Expands the Google Mobile Ads Next-Gen example app with full-screen ad workflows:

  • add direct and preloaded interstitial examples
  • add direct and preloaded app-open examples
  • demonstrate show-time placement overrides

Screenshots

Interstitial direct-loading screen with show-time placement guidance


Note

Low Risk
Changes are confined to the example app’s UI and documentation-style ad integration; no SDK or production code paths are modified.

Overview
Replaces interstitial and app open placeholders in the AdMob Next-Gen sample with real Compose flows wired through RevenueCat’s adTracker and Next-Gen preload helpers.

Adds a shared FullScreenAdScreen that mirrors the banner sample’s direct load vs preload modes: tracked load (loadAndTrackInterstitialAd / loadAndTrackAppOpenAd), startAndTrack / pollAndTrackAd, show/dismiss handling, and status UI. Each format uses different placement strings at load, poll, preload, and show so reviewers can see show-time placement overrides (called out explicitly on the interstitial screen). App-open loading is manual in the sample rather than tied to process lifecycle.

Reviewed by Cursor Bugbot for commit e773e0c. Bugbot is set up for automated code reviews on this repo. Configure here.

@emerge-tools

emerge-tools Bot commented Aug 28, 2026

Copy link
Copy Markdown

📸 Snapshot Test

621 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility Paparazzi
com.revenuecat.testpurchasesuiandroidcompatibility.paparazzi
0 0 0 0 282 0 N/A
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 0 0 339 0 N/A

🛸 Powered by Emerge Tools

@polmiro
polmiro force-pushed the next-gen-admob-sample-fullscreen branch 2 times, most recently from 5d74dd3 to 8f1c3b0 Compare September 1, 2026 08:12
@polmiro
polmiro force-pushed the next-gen-admob-sample-fullscreen branch from 8f1c3b0 to 60f0abb Compare September 1, 2026 08:46

@Composable
@Suppress("CyclomaticComplexMethod", "LongMethod")
internal fun AppOpenScreen(activity: Activity, onBack: () -> Unit) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these two screens look basically the same save for some strings and types, and both are long and complex. I'd extract common parts to be shared between them.
as with the rest, NABD because it's a sample app

Base automatically changed from next-gen-admob-sample-banner to next-gen-admob-sdk September 1, 2026 09:27
@polmiro
polmiro force-pushed the next-gen-admob-sample-fullscreen branch from 60f0abb to c6a3d6e Compare September 1, 2026 09:28
@polmiro
polmiro merged commit 458086e into next-gen-admob-sdk Sep 1, 2026
34 checks passed
@polmiro
polmiro deleted the next-gen-admob-sample-fullscreen branch September 1, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants