Offer Wall



Offer Wall: Unity (C#)




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

1) Set currency callback. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic (Awake function for example).
FGLEnhance.SetReceivedCurrencyCallback (onCurrencyReceived);
2) Check whether any offer wall is available:
bool isReady = FGLEnhance.IsOfferwallReady();
3) Display the offer wall:
FGLEnhance.ShowOfferwall();
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Android (Java)




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

1) Set currency callback. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic.
FglEnhance.setCurrencyCallback(new CurrencyCallback() {
    @Override
    public void onCurrencyGranted(int i) {}
});
2) Check whether any offer wall is available:
boolean isReady = FglEnhance.isOfferwallReady();
3) Display the offer wall:
FglEnhance.showOfferwall();
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: iOS (Objective-C)




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

1) Set currency delegate. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic:
[[FglEnhance sharedInstance] setCurrencyGrantedDelegate:self];
2) Check whether any offer wall is available:
bool isOfferwallReady = [[FglEnhance sharedInstance] isOfferwallReady];
3) Display the offer wall:
[[FglEnhance sharedInstance] showOfferwall];
4) Implement CurrencyDelegate:
-(void)onCurrencyGranted:(int)amount {}
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: OpenFL (Haxe)




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

1) Set currency callback. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic.
Enhance.setReceivedCurrencyCallback(onCurrencyReceived);
2) Check whether any offer wall is available:
var isReady:Bool = Enhance.isOfferwallReady();
3) Display the offer wall:
Enhance.showOfferwall();
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Adobe Air (AS3)




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

1) Set currency callback. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic.
FglEnhance.setReceivedCurrencyCallback(onCurrencyReceived);
2) Check whether any offer wall is available:
var isReady:Boolean = FglEnhance.isOfferwallReady();
3) Display the offer wall:
FglEnhance.showOfferwall();
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Defold (Lua)




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

1) Set currency callback. It is triggered every time the user receives a reward from any offerwall. It is important to do it in the beginning of the application's logic.
enhance.setCurrencyCallback(on_currency_received)
2) Check whether any offer wall is available:
is_ready = enhance.isOfferwallReady()
3) Display the offer wall:
enhance.showOfferwall()
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Construct 2 (Visual)




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

1) Actions
[Show Offerwall]
Try to show an offerwall. 2) Conditions
[On Offerwall success]
Triggered when the offerwall is available and successfully displayed.
[On Offerwall failed]
Triggered when Enhance failed to show the offerwall (e.g. received no fill error from the ad network).
[On Currency granted]
Triggered every time the user receives a reward from any offerwall. 3) Expressions
[Last Currency Amount]
Amount of the last granted currency. You can use it after [On Currency granted] is triggered. Returns number value.

Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Cordova (JS)




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

1) Set currency callback. It's called whenever the user receives a reward from offerwall. It's important to do it in the 'deviceready' event.
Enhance.setCurrencyReceivedCallback(onCurrencyReceived);
2) Check whether any offer wall is available:
Enhance.isOfferwallReady(isReadyCallback);
3) Display the offer wall:
Enhance.showOfferwall();
Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.

Offer Wall: Stencyl (Visual)




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

1) Action Blocks
[show offerwall]
Show offerwall if any is available.

2) Normal Blocks
[is offerwall ready] -- returns boolean
Check whether an offerwall is available or not. You can connect this with [if] block to be sure an offerwall is ready before displaying it.

3) Wrapper Blocks
[on offerwall currency granted]
Define actions which are triggered after the currency is granted to the user for an offer completion. This will come together with [currency amount] block which simply returns number.

Note:
Offer walls will automatically interrupt the flow of your application until the user completes interaction with the offer wall.