Integrate with Enhance - Native iOS
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
-(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
Enhance setCurrencyGrantedDelegate
void [Enhance setCurrencyGrantedDelegate:
(id) delegate
]
Parameters:
id delegate
- Specifies the callback object. Should implement the CurrencyGrantedDelegate
protocol. (See the Protocols section for more information)
Enhance isOfferwallReady
BOOL [Enhance isOfferwallReady]
Return Value:
Returns true
if any offer wall is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.isOfferwallReady
BOOL [Enhance.isOfferwallReady:
(NSString*) placement
]
Parameters:
NSString* 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]
Enhance showOfferwall
void [Enhance showOfferwall:
(NSString*) placement
]
Parameters:
NSString* placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Protocols
protocol CurrencyGrantedDelegate-(void)onCurrencyGranted:(int)amount;
Properties
NSString* PLACEMENT_DEFAULT
The default internal placement of all ad types. Always equal to "default"
.