Interstitial

circle-info

There are some advertisement settings in the playgama-bridge-config.json file

Playgama Bridge Config

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_supported

Minimum 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_interstitial

To change the interval:

# Default value = 60
Bridge.advertisement.set_minimum_delay_between_interstitial(30)

Interstitial State

circle-exclamation

Track the state of the interstitial ad (loading, opened, closed, failed) to manage ad display and user experience.

Bridge.advertisement.interstitial_state

Returns the current state of the interstitial ad. Possible values: loading, opened, closed, failed.

circle-info

React to changes in ad state. For example, mute the game sound when the state is opened and unmute when the state is closed or failed.

Show Interstitial Ad

Display an interstitial ad at appropriate moments, such as during level transitions or game over screens.

circle-exclamation

Last updated