JavaScript Bridge
Showing Interstitial Ads
Understand the planned interstitial bridge contract and the current Android runtime limitation.
Before you start
- AdMob module and valid IDs
- A future Android runtime handler for ad loading and display
Configure and verify
Configure AdMob IDs
Save the app, banner, and interstitial IDs and use Google test IDs during development.
Do not depend on the bridge yet
The current generator can include the google_mobile_ads dependency when AdMob is configured, but it does not yet create banner widgets, load interstitials, or handle admob_show_interstitial_ad.
Wait for runtime wiring
After an ad controller is implemented, trigger ads only at natural transitions and handle load failure without blocking content.
Reserved message shape
webtoapp.postMessage(JSON.stringify({
type: "admob_show_interstitial_ad"
}));Current limitation
Test before release
- Do not publish assuming ads are visible
- Use test IDs during future testing
- Content remains usable when an ad fails