Integrate with Enhance - Unity
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 void OnCurrencyReceived(int amount) { writeLog ("Currency received: " + amount); } Enhance.SetReceivedCurrencyCallback (OnCurrencyReceived); if(Enhance.IsOfferwallReady()) { Enhance.ShowOfferwall(); }
Methods
Enhance.SetReceivedCurrencyCallback
void Enhance.SetReceivedCurrencyCallback(
Action<int> onCurrencyReceived
)
Parameters:
Action<int> onCurrencyReceived
- The offer wall callback. As a parameter, will receive an amount
of the granted currency as an integer.
Enhance.IsOfferwallReady
bool 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"
.