-
Notifications
You must be signed in to change notification settings - Fork 1
interstitial
This module contains all functions that handle managing interstitial ads.
This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.
- ironsource_interstitial_init
- ironsource_interstitial_load
- ironsource_interstitial_is_capped
- ironsource_interstitial_show
- ironsource_interstitial_is_ready
This function initialises the ironSource SDK for the Interstitial ad unit.
This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.
Syntax:
ironsource_interstitial_init()
Returns:
N/A
Triggers:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_init"
|
Loads an interstitial ad.
This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.
Syntax:
ironsource_interstitial_load()
Returns:
N/A
Triggers:
If the interstitial loaded successfully:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_ready"
|
If the interstitial failed to load
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_load_failed"
|
error | String | The error message. |
Checks if the interstitial ad for the specified placement is capped.
Syntax:
ironsource_interstitial_is_capped(placement_name)
Argument | Type | Description |
---|---|---|
placement_name | String | The name of the ad placement. |
Returns:
Shows the interstitial ad for the specified placement if it is ready.
This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.
Syntax:
ironsource_interstitial_show(placement_name)
Argument | Type | Description |
---|---|---|
placement_name | String | The name of the ad placement. |
Returns:
N/A
Triggers:
If the interstitial showed successfully:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_show_succeeded"
|
If the interstitial failed to show:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_show_failed"
|
If the interstitial was clicked:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_clicked"
|
If the interstitial was opened:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_opened"
|
If the interstitial was closed:
Key | Type | Description |
---|---|---|
type | String | The value "ironsource_interstitial_closed"
|
Checks if the interstitial ad is ready to be shown.
Syntax:
ironsource_interstitial_is_ready()
Returns:
GameMaker 2024