Offer Wall



Offer Wall: Unity (C#)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

private void OnCurrencyReceived(int amount) {
    writeLog ("Currency received: " + amount);
}

Enhance.SetReceivedCurrencyCallback (OnCurrencyReceived);

if(Enhance.IsOfferwallReady()) {
    Enhance.ShowOfferwall();
}

Methods

void Enhance.SetReceivedCurrencyCallback( Action<int> onCurrencyReceived )

Specify the action which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
Action<int>onCurrencyReceived - The callback. As a parameter, this action will receive an amount of the granted currency.

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

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

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

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

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

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

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

Members

string Enhance.PLACEMENT_DEFAULT

The default placement of ads, including offerwalls.

Offer Wall: Android (Java)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

Enhance.setReceivedCurrencyCallback(new CurrencyCallback() {
    @Override
    public void onCurrencyGranted(int amount) {
        writeLog("Currency granted: " + amount);
    }
});

if(Enhance.isOfferwallReady()) {
    Enhance.showOfferwall();
}

Methods

void Enhance.setReceivedCurrencyCallback( Enhance.CurrencyCallback callback )

Set the callback which is fired every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
Enhance.CurrencyCallbackonCurrencyReceived - The callback which is triggered when the user receives any currency (for more about the Enhance.CurrencyCallback type, see the Interfaces section).

boolean Enhance.isOfferwallReady()

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

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

boolean Enhance.isOfferwallReady( String placement )

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

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

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

void Enhance.showOfferwall()

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

void Enhance.showOfferwall( String placement )

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

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

Interfaces

interface Enhance.CurrencyCallback { void onCurrencyGranted(int currencyAmount); }


Members

String Enhance.PLACEMENT_DEFAULT

The default placement of ads, including offerwalls.

Offer Wall: iOS (Objective-C)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

-(void)viewDidLoad {
    [Enhance setCurrencyGrantedDelegate:self];
}

-(void)onCurrencyGranted:(int)amount {
    [self writeLog:[NSString stringWithFormat:@"Currency granted: %d", amount]];
}

-(void)showOfferwall {
    bool isOfferwallReady = [Enhance isOfferwallReady];
    
    if(isOfferwallReady) {
        [Enhance showOfferwall];
    }
}

Methods

void [Enhance setCurrencyGrantedDelegate: (id)delegate ]

Set the callback which is fired every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
id delegate - Specify the object which implements the CurrencyGrantedDelegate protocol (for more information about this type, see the Protocols section).

BOOL [Enhance isOfferwallReady]

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

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

BOOL [Enhance isOfferwallReady: (NSString*)placement ]

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

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

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

void [Enhance showOfferwall]

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

void [Enhance showOfferwall: (NSString*)placement ]

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

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

Protocols

protocol CurrencyGrantedDelegate<NSObject> -(void)onCurrencyGranted:(int)amount;


Members

NSString* PLACEMENT_DEFAULT

The default placement of ads, including special offers.

Offer Wall: OpenFL (Haxe)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

var onCurrencyReceived = function(amount:Int) {
    writeLog ("Currency received: " + amount);
};

Enhance.setReceivedCurrencyCallback(onCurrencyReceived);

if(Enhance.isOfferwallReady()) {
    Enhance.showOfferwall();
}

Methods

Enhance.setReceivedCurrencyCallback( onCurrencyReceivedCallback:Int->Void ):Void

Specify the function which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
Int->VoidonCurrencyReceivedCallback - The callback. As a parameter, this action will receive an amount of the granted currency.

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

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

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

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

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

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

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

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including offerwalls.

Offer Wall: Adobe Air (AS3)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

private function onCurrencyReceived(amount:int):void {
    writeLog ("Currency received: " + amount);
};

private function init():void {
    Enhance.setReceivedCurrencyCallback(onCurrencyReceived);

    if(Enhance.isOfferwallReady()) {
        Enhance.showOfferwall();
    }
}

Methods

Enhance.setReceivedCurrencyCallback( onCurrencyReceivedCallback:Function ):void

Specify the function which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
FunctiononCurrencyReceivedCallback - The callback. As a parameter, this action will receive an amount of the granted currency (int).

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

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

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

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

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

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

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

Members

Enhance.PLACEMENT_DEFAULT:String

The default placement of ads, including offerwalls.

Offer Wall: Defold (Lua)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

function init(self)
    enhance.setReceivedCurrencyCallback(on_currency_received)
end

function on_currency_received(self, amount)
    write_log("Currency received: " .. amount)
end

function showOfferwall()
    if enhance.isOfferwallReady() then
        enhance.showOfferwall()
    end
end

Methods

nil enhance.setReceivedCurrencyCallback( function onCurrencyReceivedCallback )

Specify the function which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
functiononCurrencyReceivedCallback - The callback. As a parameter, this action will receive an amount of the granted currency (number).

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

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

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

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

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

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

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

Offer Wall: Construct 2 (Visual)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

System On start of layout
    Enhance Show offerwall with placement "default"

Enhance On offerwall failed
    Function Call "writeLog" ("Offerwall is not ready")

Enhance On currency granted
    Function Call "writeLog" ("Currency granted: " & Enhance.LastCurrencyAmount)

Actions

Enhance Show offerwall

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

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

Conditions

Enhance On offerwall failed

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

Enhance On currency granted

Triggered every time the user receives a reward from any offerwall. The fetch the reward amount, use the Enhance.LastCurrencyAmount expression.

Expressions

number Enhance.LastCurrencyAmount

Amount of the latest granted currency.

Offer Wall: Cordova (JS)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

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

    Enhance.setReceivedCurrencyCallback(function(amount) {
        app.writeLog('Currency received: ' + amount);
    });

    Enhance.showOfferwall();
};

Enhance.isOfferwallReady(callback);

Methods

void Enhance.setReceivedCurrencyCallback( onCurrencyReceivedCallback )

Specify the function which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
functiononCurrencyReceivedCallback - The callback. As a parameter, this function will receive an amount of the granted currency.

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

Check if an offerwall 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 offerwall (describes in what moment the offerwall is shown).

void Enhance.showOfferwall( placement = 'default' )

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

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

Offer Wall: Stencyl (Visual)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage


Action Blocks



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



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

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

Normal Blocks



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

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



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

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

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

Wrapper Blocks



Define actions which are called every time the user receives a reward from any offerwall. We recommend that you set this at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!
Use the attached currency amount block to read the currency's value.

Offer Wall: Construct 3 (Visual)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

System On start of layout
    Enhance Show offerwall with placement Enhance.PLACEMENT_DEFAULT

Enhance On offerwall failed
    Browser Alert "Offerwall is not ready"

Enhance On offerwall currency granted
    Browser Alert "Currency granted: " & Enhance.LastCurrencyAmount

Actions

Enhance Show offerwall

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

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

Conditions

Enhance On offerwall failed

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

Enhance On offerwall currency granted

Triggered every time the user receives a reward from any offerwall. The fetch the reward amount, use the Enhance.LastCurrencyAmount expression.

Expressions

number Enhance.LastCurrencyAmount

Amount of the latest granted currency.

string Enhance.PLACEMENT_DEFAULT

The default placement of ads, including offer walls.

Offer Wall: Xamarin (C#)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

private void OnCurrencyReceived(int amount) {
    writeLog ("Currency received: " + amount);
}

Enhance.SetReceivedCurrencyCallback (OnCurrencyReceived);

if(Enhance.IsOfferwallReady()) {
    Enhance.ShowOfferwall();
}

Methods

void Enhance.SetReceivedCurrencyCallback( Action<int> onCurrencyReceived )

Specify the action which is called every time the user receives a reward from any offerwall. We recommend that you use this function at the beginning of your app’s logic to be sure the callback is ready as soon as an offerwall sends the reward. This could happen at different times, even right after your app starts!

Parameters:
Action<int>onCurrencyReceived - The callback. As a parameter, this action will receive an amount of the granted currency.

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

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

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

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

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

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

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

Members

string Enhance.DEFAULT_PLACEMENT

The default placement of ads, including offerwalls.

Offer Wall: MIT App Inventor (Visual)




Offer Walls show full screen of real world offers (e.g. surveys), usually with a reward offered in return for a completion.

Example Usage

when Button.Click
do
    if      call EnhanceConnector1.IsOfferwallReady
    then    call EnhanceConnector1.ShowOfferwall
    else    call Notifier1.ShowAlert
                 notice = "Offerwall is not ready"

when EnhanceConnector1.CurrencyGranted
do
    call Notifier1.ShowAlert
         notice = get currencyAmount

Methods

boolean IsOfferwallReady

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

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

boolean IsOfferwallReadyForPlacement

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

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

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

void ShowOfferwall

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

void ShowOfferwallWithPlacement

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

Events

CurrencyGranted

Triggered when an offerwall currency is granted to the user. To fetch more information about the reward, use the attached currencyAmountvariable.