AdsDelegate
@protocol AdsDelegate <NSObject>
Ads delegate protocol
-
Sent when an interstitial ad is successfully loaded.
Declaration
Swift
- (void)adDidLoad; -
Sent when an interstitial ad fails to load.
Declaration
Swift
- (void)adDidFailToLoad; -
Sent immediately before an interstitial ad is presented on the screen.
Your implementation of this method should pause any application activity that requires user interaction.
Declaration
Swift
- (void)adWillAppear; -
Sent after an interstitial ad has been presented on the screen.
Declaration
Swift
- (void)adDidAppear; -
Sent immediately before an interstitial ad will be dismissed from the screen.
Declaration
Swift
- (void)adWillDisappear; -
Sent after an interstitial ad has been dismissed from the screen, returning control to your application.
Your implementation of this method should resume any application activity that was paused prior to the interstitial being presented on-screen.
Declaration
Swift
- (void)adDidDisappear; -
Send after a showAd call when the ad is skipped.
Declaration
Swift
- (void)adSkipped:(AdSkipReason)reason;Parameters
reasonThe reason why the ad was skipped.
-
Sent when the user taps the interstitial ad and the ad is about to perform its target action.
This action may include displaying a modal or leaving your application. Certain ad networks may not expose a
tapped
callback so you should not rely on this callback to perform critical tasks.Declaration
Swift
- (void)adDidReceiveTapEvent; -
Sent when a rewarded video ad is successfully loaded.
Declaration
Swift
- (void)rewardedVideoAdDidLoad; -
Sent when a rewarded video ad fails to load.
Declaration
Swift
- (void)rewardedVideoAdDidFailToLoad; -
Sent when a rewarded video ad tries to play but fails for some reason.
Declaration
Swift
- (void)rewardedVideoAdDidFailToPlay; -
Sent immediately before a rewarded video ad is presented on the screen.
Your implementation of this method should pause any application activity that requires user interaction.
Declaration
Swift
- (void)rewardedVideoAdWillAppear; -
Sent after a rewarded video has been presented on the screen.
Declaration
Swift
- (void)rewardedVideoAdDidAppear; -
Sent immediately before a rewarded video ad will be dismissed from the screen.
Declaration
Swift
- (void)rewardedVideoAdWillDisappear; -
Sent after a rewarded video ad has been dismissed from the screen, returning control to your application.
Your implementation of this method should resume any application activity that was paused prior to the interstitial being presented on-screen.
Declaration
Swift
- (void)rewardedVideoAdDidDisappear; -
Send after a showRewardedVideoAd call when the ad is skipped.
Declaration
Swift
- (void)rewardedVideoAdSkipped:(AdSkipReason)reason;Parameters
reasonThe reason why the ad was skipped.
-
Sent when the user taps the rewarded video ad and the ad is about to perform its target action.
This action may include displaying a modal Certain ad networks may not expose a
tapped
callback so you should not rely on this callback to perform critical tasks.Declaration
Swift
- (void)rewardedVideoAdDidReceiveTapEvent; -
Sent when the user taps the rewarded video ad and the ad is about to leave the application.
Declaration
Swift
- (void)rewardedVideoAdWillLeaveApplication; -
Sent when the user should be rewarded for watching a rewarded video ad.
Declaration
Swift
- (void)rewardedVideoAdShouldReward; -
Sent when the ad library triggers an analytics event
Declaration
Swift
- (void)analyticsEvent:(nonnull NSData *)eventData;
AdsDelegate Protocol Reference