Skip to content

feat(admob): demonstrate native ads - #4097

Merged
polmiro merged 8 commits into
next-gen-admob-sample-fullscreenfrom
next-gen-admob-sample-native
Sep 1, 2026
Merged

feat(admob): demonstrate native ads#4097
polmiro merged 8 commits into
next-gen-admob-sample-fullscreenfrom
next-gen-admob-sample-native

Conversation

@polmiro

@polmiro polmiro commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

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

  • add direct native loading for single and batched ads
  • add native preloading with configurable poll-and-render counts
  • replace previously rendered native ads when loading again

Screenshots

Native preloader with automatic multi-ad selection


Note

Low Risk
Changes are confined to the example app and documentation, with no production SDK or billing/auth impact.

Overview
Replaces the Native placeholder in the AdMob Next-Gen sample with a full NativeScreen that exercises RevenueCat’s native tracking APIs end to end.

Users can switch between standard and native-video test ad units (new ADMOB_NATIVE_VIDEO_AD_UNIT_ID in local.properties / BuildConfig), then try direct loads via loadAndTrackNativeAd or a batch Flow via loadAndTrackNativeAds, or preloaded inventory with start/stop, buffer sizing, and Poll + Show using startAndTrack / pollAndTrackAd. Loaded ads render in NativeAdView cards; non-native result types are tracked and destroyed with explicit status messaging, and in-flight loads clean up SDK-owned ads on cancel or mode changes.

AdScreen gains an optional onModeChange hook so switching Direct/Preloaded clears native UI state; README coverage notes mention standard/video selection.

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

@RevenueCat-Danger-Bot

RevenueCat-Danger-Bot commented Aug 27, 2026

Copy link
Copy Markdown
1 Message
📖 This PR changes 407 lines of production Kotlin/Java (limit 300); skipped via skip-pr-lines-changed-check label.

Generated by 🚫 Danger

@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from 645d41c to d30d386 Compare August 27, 2026 08:53
@polmiro
polmiro marked this pull request as ready for review August 27, 2026 08:59
@polmiro
polmiro requested a review from a team as a code owner August 27, 2026 08:59
@polmiro
polmiro requested a review from AlvaroBrey August 27, 2026 08:59
@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from d30d386 to 3b572c8 Compare August 28, 2026 07:59
@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from 7785aca to e4f21d2 Compare August 28, 2026 12:20
@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from e4f21d2 to 7b2b4b4 Compare September 1, 2026 08:12
@emerge-tools

emerge-tools Bot commented Sep 1, 2026

Copy link
Copy Markdown

📸 Snapshot Test

621 unchanged

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

🛸 Powered by Emerge Tools

@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from dc35e27 to d3255b1 Compare September 1, 2026 09:28

@cursor cursor Bot left a comment

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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d3255b1. Configure here.

@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from d3255b1 to f5d7d8c Compare September 1, 2026 09:39
@polmiro
polmiro force-pushed the next-gen-admob-sample-native branch from f5d7d8c to 52433bb Compare September 1, 2026 09:48
@polmiro
polmiro merged commit 6c4f12a into next-gen-admob-sdk Sep 1, 2026
34 checks passed
@polmiro
polmiro deleted the next-gen-admob-sample-native branch September 1, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants