Adobe AIR Offer Walls - Enhance
Offer Walls
Offer Walls show full screen of real world offers (e.g. surveys), usually with an in-game 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
void Enhance.setReceivedCurrencyCallback(
Function onCurrencyReceivedCallback
)
Parameters:
Function onCurrencyReceivedCallback
- The offer wall callback. As a parameter, will receive an amount
of the granted currency as an integer.
Enhance.isOfferwallReady
Boolean Enhance.isOfferwallReady(
optional String placement = "default"
)
Parameters:
optional String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Return Value:
Returns true
if any offer wall is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.showOfferwall
void Enhance.showOfferwall(
optional String placement = "default"
)
Parameters:
optional String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Properties
String Enhance.PLACEMENT_DEFAULT
The default internal placement of all ad types. Always equal to "default"
.