Interstitial
Interstitial ads typically appear during transitions in the game, such as level loading or after game over.
Is Interstitial Supported
Check if the platform supports displaying interstitial ads.
Bridge.advertisement.is_interstitial_supportedMinimum Interval Between Displays
Set the minimum time interval between interstitial ad displays to comply with platform requirements and improve user experience.
Bridge.advertisement.minimum_delay_between_interstitialTo change the interval:
# Default value = 60
Bridge.advertisement.set_minimum_delay_between_interstitial(30)
Interstitial State
Interstitial StateCheck the interstitial_state at the start of the game, and if the ad is opened, perform the necessary actions (mute sounds/pause the game/etc.).
Track the state of the interstitial ad (loading, opened, closed, failed) to manage ad display and user experience.
Bridge.advertisement.interstitial_stateReturns the current state of the interstitial ad. Possible values: loading, opened, closed, failed.
# To track interstitial state changes, connect to the signal
func _ready():
Bridge.advertisement.connect("interstitial_state_changed", self, "_on_interstitial_state_changed")
func _on_interstitial_state_changed(state):
print(state)# To track interstitial state changes, connect to the signal
func _ready():
Bridge.advertisement.connect("interstitial_state_changed", Callable(self, "_on_interstitial_state_changed"))
func _on_interstitial_state_changed(state):
print(state)
Show Interstitial Ad
Show Interstitial AdDisplay an interstitial ad at appropriate moments, such as during level transitions or game over screens.
var placement = "test_placement" # optional
Bridge.advertisement.show_interstitial(placement)Do not call show_interstitial() method at the start of the game. On platforms where this is allowed, the ad will be shown automatically.
Last updated