MARewardedInterstitialAd Class Reference
Inherits from | NSObject |
---|---|
Declared in | MARewardedInterstitialAd.h |
Overview
This class represents a fullscreen ad which the user can skip and be granted a reward upon successful completion of the ad.
– initWithAdUnitIdentifier:sdk:
Create a new MAX rewarded interstitial.
- (instancetype)initWithAdUnitIdentifier:(NSString *)adUnitIdentifier sdk:(ALSdk *)sdk
Parameters
adUnitIdentifier |
Ad unit id to load ads for. |
---|---|
sdk |
SDK to use. An instance of the SDK may be obtained by calling [ALSdk shared]. |
Discussion
Create a new MAX rewarded interstitial.
Declared In
MARewardedInterstitialAd.h
delegate
Set a delegate that will be notified about ad events.
@property (nonatomic, weak, nullable) id<MARewardedAdDelegate> delegate
Discussion
Set a delegate that will be notified about ad events.
Declared In
MARewardedInterstitialAd.h
– setExtraParameterForKey:value:
Set an extra parameter for the ad.
- (void)setExtraParameterForKey:(NSString *)key value:(nullable NSString *)value
Parameters
key |
Parameter key. |
---|---|
value |
Parameter value. |
Discussion
Set an extra parameter for the ad.
Declared In
MARewardedInterstitialAd.h
– loadAd
Load ad for the current rewarded interstitial. Use [MARewardedInterstitialAd delegate] to assign a delegate that should be notified about ad load state.
- (void)loadAd
Discussion
Load ad for the current rewarded interstitial. Use [MARewardedInterstitialAd delegate] to assign a delegate that should be notified about ad load state.
Declared In
MARewardedInterstitialAd.h
– showAd
Show the loaded interstitial.
- (void)showAd
Discussion
Show the loaded interstitial.
Use [MARewardedInterstitialAd setDelegate:] to assign a delegate that should be notified about display events. Use [MARewardedInterstitialAd isReady] to check if an ad was successfully loaded.
Declared In
MARewardedInterstitialAd.h
– showAdForPlacement:
Show the loaded interstitial for a given placement to tie ad events to.
- (void)showAdForPlacement:(nullable NSString *)placement
Parameters
placement |
The placement to tie the showing ad’s events to. |
---|
Discussion
Show the loaded interstitial for a given placement to tie ad events to.
Use [MARewardedInterstitialAd setDelegate:] to assign a delegate that should be notified about display events. Use [MARewardedInterstitialAd isReady] to check if an ad was successfully loaded.
Declared In
MARewardedInterstitialAd.h
ready
Check if this ad is ready to be shown.
@property (nonatomic, assign, readonly, getter=isReady) BOOL ready
Discussion
Check if this ad is ready to be shown.
Declared In
MARewardedInterstitialAd.h