Special Offers



Special Offers: Unity (C#)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if (Enhance.IsSpecialOfferReady()) {
    // The offer is ready, show it
    Enhance.ShowSpecialOffer();
}

Methods

bool Enhance.IsSpecialOfferReady( string placement = Enhance.PLACEMENT_DEFAULT )

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

void Enhance.ShowSpecialOffer( string placement = Enhance.PLACEMENT_DEFAULT )

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

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

Members

string Enhance.PLACEMENT_DEFAULT

The default placement of ads, including special offers.

Special Offers: Android (Java)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if (Enhance.isSpecialOfferReady()) {
    // The offer is ready, show it
    Enhance.showSpecialOffer();
}

Methods

boolean Enhance.isSpecialOfferReady()

Check if a special offer from any of the included SDK providers is ready to be shown.

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

boolean Enhance.isSpecialOfferReady( String placement )

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

void Enhance.showSpecialOffer()

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

void Enhance.showSpecialOffer( string placement )

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

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

Members

String Enhance.PLACEMENT_DEFAULT

The default placement of ads, including special offers.

Special Offers: iOS (Objective-C)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

bool isSpecialOfferReady = [Enhance isSpecialOfferReady];
    
if(isSpecialOfferReady) {
    [Enhance showSpecialOffer];
}

Methods

BOOL [Enhance isSpecialOfferReady]

Check if a special offer from any of the included SDK providers is ready to be shown.

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

BOOL [Enhance isSpecialOfferReady: (NSString*)placement ]

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

void [Enhance showSpecialOffer]

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

void [Enhance showSpecialOffer: (NSString*)placement ]

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

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

Members

NSString* PLACEMENT_DEFAULT

The default placement of ads, including special offers.

Special Offers: OpenFL (Haxe)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if (Enhance.isSpecialOfferReady()) {
    // The offer is ready, show it
    Enhance.showSpecialOffer();
}

Methods

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

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

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

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

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

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including special offers.

Special Offers: Adobe Air (AS3)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if (Enhance.isSpecialOfferReady()) {
    // The offer is ready, show it
    Enhance.showSpecialOffer();
}

Methods

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

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

Enhance.showSpecialOffer( placement:String = Enhance.PLACEMENT_DEFAULT ):void

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

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

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including special offers.

Special Offers: Defold (Lua)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if enhance.isSpecialOfferReady() then
    -- The offer is ready, show it
    enhance.showSpecialOffer()
end

Methods

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

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

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

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

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

Special Offers: Construct 2 (Visual)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

System On start of layout
    Enhance Show special offer with placement "default"

Enhance On special offer failed
    Function Call "writeLog" ("Special offer is not ready")

Actions

Enhance Show special offer

Display a new special offer if any is currently available. The offer provider is selected based on your app's mediation settings. If this action fails for any reason, the On special offer 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 special offer failed

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

Special Offers: Cordova (JS)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

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

    Enhance.showSpecialOffer();
};

Enhance.isSpecialOfferReady(callback);

Methods

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

Check if a special offer 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.showSpecialOffer( placement = 'default' )

Display a new special offer if any is currently available. The offer 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).

Special Offers: Stencyl (Visual)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage


Action Blocks



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



Display a new special offer if any is currently available. The offer 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 a special offer from any of the included SDK providers is ready to be shown.

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



Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

Special Offers: Construct 3 (Visual)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

System On start of layout
    Enhance Show special offer with placement Enhance.PLACEMENT_DEFAULT

Enhance On special offer failed
    Browser Alert "Special offer is not ready"

Actions

Enhance Show special offer

Display a new special offer if any is currently available. The offer provider is selected based on your app's mediation settings. If this action fails for any reason, the On special offer 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.PLACEMENT_DEFAULT.

Conditions

Enhance On special offer failed

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

Expressions

string Enhance.PLACEMENT_DEFAULT

The default placement of ads, including special offers.

Special Offers: Xamarin (C#)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

if (Enhance.IsSpecialOfferReady()) {
    // The offer is ready, show it
    Enhance.ShowSpecialOffer();
}

Methods

bool Enhance.IsSpecialOfferReady( string placement = Enhance.DEFAULT_PLACEMENT )

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

void Enhance.ShowSpecialOffer( string placement = Enhance.DEFAULT_PLACEMENT )

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

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

Members

string Enhance.DEFAULT_PLACEMENT

The default placement of ads, including special offers.

Special Offers: MIT App Inventor (Visual)




Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but you can also request them manually from code.

Example Usage

when Button.Click
do
    if      call EnhanceConnector1.IsSpecialOfferReady
    then    call EnhanceConnector1.ShowSpecialOffer
    else    call Notifier1.ShowAlert
                 notice = "Special offer is not ready"

Methods

boolean IsSpecialOfferReady

Check if a special offer from any of the included SDK providers is ready to be shown.

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

boolean IsSpecialOfferForPlacement

Check if a special offer from any of the included SDK providers is ready to be shown.

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

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

void ShowSpecialOffer

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

void ShowSpecialOfferWithPlacement

Display a new special offer 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 offer (describes in what moment the offer is shown).