ALRewardedInterstitialAd Class Reference
Inherits from | NSObject |
---|---|
Declared in | ALRewardedInterstitialAd.h |
Overview
This class represents a fullscreen ad which the user can skip and be granted a reward upon successful completion of the ad.
– initWithSdk:
Initialize an instance of this class with a SDK instance.
- (instancetype)initWithSdk:(ALSdk *)sdk
Parameters
sdk |
The AppLovin SDK instance to use. |
---|
Discussion
Initialize an instance of this class with a SDK instance.
Declared In
ALRewardedInterstitialAd.h
adDisplayDelegate
An object conforming to the ALAdDisplayDelegate protocol, which, if set, will be notified of ad show/hide events.
@property (nonatomic, strong, nullable) id<ALAdDisplayDelegate> adDisplayDelegate
Discussion
An object conforming to the ALAdDisplayDelegate protocol, which, if set, will be notified of ad show/hide events.
Declared In
ALRewardedInterstitialAd.h
adVideoPlaybackDelegate
An object conforming to the ALAdVideoPlaybackDelegate protocol, which, if set, will be notified of video start/finish events.
@property (nonatomic, strong, nullable) id<ALAdVideoPlaybackDelegate> adVideoPlaybackDelegate
Discussion
An object conforming to the ALAdVideoPlaybackDelegate protocol, which, if set, will be notified of video start/finish events.
Declared In
ALRewardedInterstitialAd.h
– showAd:andNotify:
Show a rewarded interstitial with the provided ad.
- (void)showAd:(ALAd *)ad andNotify:(nullable id<ALAdRewardDelegate>)adRewardDelegate
Parameters
ad |
The ad to render into this rewarded interstitial ad. |
---|---|
adRewardDelegate |
The reward delegate to notify upon validating reward authenticitye with AppLovin. |
Discussion
Show a rewarded interstitial with the provided ad.
Using the ALAdRewardDelegate, you will be able to verify with AppLovin servers that the video view is legitimate, as we will confirm whether the specific ad was actually served - then we will ping your server with a url for you to update the user’s balance. The Reward Validation Delegate will tell you whether we were able to reach our servers or not. If you receive a successful response, you should refresh the user’s balance from your server. For more info, see the documentation.
Declared In
ALRewardedInterstitialAd.h