Interstitial Ads



Interstitial Ads: Unity (C#)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if (Enhance.IsInterstitialReady()) {
    // The ad is ready, show it
    Enhance.ShowInterstitialAd();
}

Methods

bool Enhance.IsInterstitialReady( string placement = Enhance.INTERSTITIAL_PLACEMENT_DEFAULT )

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
optional string placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

void Enhance.ShowInterstitialAd( string placement = Enhance.INTERSTITIAL_PLACEMENT_DEFAULT )

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

string Enhance.INTERSTITIAL_PLACEMENT_DEFAULT

The default placement of interstitial ads.

Interstitial Ads: Android (Java)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if (Enhance.isInterstitialReady()) {
    // The ad is ready, show it
    Enhance.showInterstitialAd();
}

Methods

boolean Enhance.isInterstitialReady()

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Returns:
Returns true if any ad is ready, false otherwise.

boolean Enhance.isInterstitialReady( String placement )

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
String placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

void Enhance.showInterstitialAd()

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

void Enhance.showInterstitialAd( String placement )

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
Stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

String Enhance.INTERSTITIAL_PLACEMENT_DEFAULT

The default placement of interstitial ads.

Interstitial Ads: iOS (Objective-C)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

bool isInterstitialReady = [Enhance isInterstitialReady];

if(isInterstitialReady) {
    [Enhance showInterstitialAd];
}

Methods

BOOL [Enhance isInterstitialReady]

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Returns:
Returns YES if any ad is ready, NO otherwise.

BOOL [Enhance isInterstitialReady: (NSString*)placement ]

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
NSString* placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns YES if any ad is ready, NO otherwise.

void [Enhance showInterstitialAd]

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

void [Enhance showInterstitialAd: (NSString*)placement ]

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
NSString*placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

NSString* INTERSTITIAL_PLACEMENT_DEFAULT

The default placement of interstitial ads.

Interstitial Ads: OpenFL (Haxe)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if (Enhance.isInterstitialReady()) {
    // The ad is ready, show it
    Enhance.showInterstitialAd();
}

Methods

Enhance.isInterstitialReady( ?placement:String = Enhance.PLACEMENT_DEFAULT ):Bool

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
optional String placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

Enhance.showInterstitialAd( ?placement:String = Enhance.PLACEMENT_DEFAULT ):Void

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional Stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including interstitial ads.

Interstitial Ads: Adobe Air (AS3)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if (Enhance.isInterstitialReady()) {
    // The ad is ready, show it
    Enhance.showInterstitialAd();
}

Methods

Enhance.isInterstitialReady( placement:String = Enhance.PLACEMENT_DEFAULT ):Boolean

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
optional String placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

Enhance.showInterstitialAd( placement:String = Enhance.PLACEMENT_DEFAULT ):Void

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional Stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including interstitial ads.

Interstitial Ads: Defold (Lua)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if enhance.isInterstitialReady() then
    -- The ad is ready, show it
    enhance.showInterstitialAd()
end

Methods

boolean enhance.isInterstitialReady( string placement = "default" )

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
optional String placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

nil enhance.showInterstitialAd( string placement = "default" )

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Interstitial Ads: Construct 2 (JS)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

System On start of layout
    Enhance Show interstitial ad with placement "default"

Enhance On interstitial ad failed
    Function Call "writeLog" ("Interstitial ad is not ready")

Actions

Enhance Show interstitial ad

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings. If this action fails for any reason, the On interstitial ad failed condition will be triggered.

Parameters:
optional placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Conditions

Enhance On interstitial ad failed

Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).

Interstitial Ads: Stencyl (Visual)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage


Action Blocks



Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.



Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
text placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Normal Blocks



Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Returns:
Returns true if any ad is ready, false otherwise.



Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
text placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

Interstitial Ads: Cordova (JS)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

var callback = function(result) {
    if(!result) {
        app.writeLog('Interstitial ad is not ready');
        return;
    }

    Enhance.showInterstitialAd();
};

Enhance.isInterstitialReady(callback);

Methods

void Enhance.isInterstitialReady( resultCallback, placement = 'default' )

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
function resultCallback - Specifies the function which will receive a response (true or false).

optional string placement - Specifies the placement of the ad (describes in what moment the ad is shown).

void Enhance.showInterstitialAd( placement = 'default' )

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional string placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Interstitial Ads: Construct 3 (Visual)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

System On start of layout
    Enhance Show interstitial ad with placement Enhance.INTERSTITIAL_PLACEMENT_DEFAULT

Enhance On interstitial ad failed
    Browser Alert "Interstitial ad is not ready"

Actions

Enhance Show interstitial ad

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings. If this action fails for any reason, the On interstitial ad failed condition will be triggered.

Parameters:
optional placement - Specifies the placement of the ad (describes in what moment the ad is shown). The default value is Enhance.INTERSTITIAL_PLACEMENT_DEFAULT.

Conditions

Enhance On interstitial ad failed

Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).

Expressions

string Enhance.INTERSTITIAL_PLACEMENT_DEFAULT

The default placement of interstitial ads.

Interstitial Ads: Xamarin (C#)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

if (Enhance.IsInterstitialReady()) {
    // The ad is ready, show it
    Enhance.ShowInterstitialAd();
}

Methods

bool Enhance.IsInterstitialReady( string placement = Enhance.INTERSTITIAL_PLACEMENT_DEFAULT )

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
optional string placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

void Enhance.ShowInterstitialAd( string placement = Enhance.INTERSTITIAL_PLACEMENT_DEFAULT )

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
optional stringplacement - Specifies the placement of the ad (describes in what moment the ad is shown).

Members

string Enhance.INTERSTITIAL_PLACEMENT_DEFAULT

The default placement of interstitial ads.

Interstitial Ads: MIT App Inventor (Visual)




Interstitial Ads are short static or video ads, usually shown between levels or when game is over.

Example Usage

when Button.Click
do
    if      call EnhanceConnector1.IsInterstitialReady
    then    call EnhanceConnector1.ShowInterstitialAd
    else    call Notifier1.ShowAlert
                 notice = "Interstitial ad is not ready"

Methods

boolean IsInterstitialReady

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Returns:
Returns true if any ad is ready, false otherwise.

boolean IsInterstitialReadyForPlacement

Check if an interstitial ad from any of the included SDK providers is ready to be shown.

Parameters:
text placement - Specifies the placement of the ad (describes in what moment the ad is shown).

Returns:
Returns true if any ad is ready, false otherwise.

void ShowInterstitialAd

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

void ShowInterstitialAdWithPlacement

Display a new interstitial ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:
text placement - Specifies the placement of the ad (describes in what moment the ad is shown).