Welcome! Click a navigation button to see how H5 interstitial ads work with SPA page transitions.
The interstitial ad will pre-load in the background, and when you navigate to a new page, it will display before the page transition completes.
This example demonstrates H5 gaming interstitial ads in a Single Page Application (SPA) context. When navigating between pages, an interstitial ad displays before the new page loads.
fusetag.pageInit() - Signals a new page has loaded (required for SPA navigation)fusetag.registerH5Interstitial(zoneCode) - Registers and loads the interstitial adfusetag.onH5InterstitialReady(callback) - Called when the ad is ready to displayfusetag.displayH5Interstitial() - Displays the interstitial ad (call after ready)fusetag.onH5InterstitialClosed(callback) - Called when user closes the adfusetag.onH5InterstitialEmpty(callback) - Called when GAM returns no ad (no-fill);
mutually exclusive with the ready callback per ad request
fusetag.onH5InterstitialUnsupported(callback) - Called when the GAM ad unit has no H5
interstitial format enabled; complete the navigation directly instead of waiting on the ready
callback that will never fire
Key Pattern: Pre-load the interstitial ad on the current page, then when navigating, display it
first, and complete the page transition in the onH5InterstitialClosed callback.
Welcome! Click a navigation button to see how H5 interstitial ads work with SPA page transitions.
The interstitial ad will pre-load in the background, and when you navigate to a new page, it will display before the page transition completes.