SASMediationInterstitialAdapterDelegate
Objective-C
@protocol SASMediationInterstitialAdapterDelegate <NSObject>
Swift
protocol SASMediationInterstitialAdapterDelegate
Protocol implemented by SASMediationInterstitialAdapter delegate.
Use this protocol to provide information about the ad loading status or events to the Smart Display SDK.
-
Notify the Smart Display SDK that an interstitial ad has been loaded successfully.
Declaration
Objective-C
- (void)mediationInterstitialAdapterDidLoad: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterDidLoad(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that an interstitial ad has failed to load.
Declaration
Objective-C
- (void)mediationInterstitialAdapter: (nonnull id<SASMediationInterstitialAdapter>)adapter didFailToLoadWithError:(nonnull NSError *)error noFill:(BOOL)noFill;
Swift
func mediationInterstitialAdapter(_ adapter: (any SASMediationInterstitialAdapter)!, didFailToLoadWithError error: Any!, noFill: Any!)
Parameters
adapter
The mediation adapter.
error
The error returned by the mediation SDK.
noFill
YES if the error is a ‘no fill’, NO in all other cases (network error, wrong placement, …). If you are unsure, send YES.
-
Notify the Smart Display SDK that an interstitial ad has been displayed successfully.
Warning
You must call this method as soon as your ad is shown, no impression will be logged on Smart side if you don’t.
Declaration
Objective-C
- (void)mediationInterstitialAdapterDidShow: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterDidShow(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that an interstitial ad has failed to show.
Note
Since this error will always happen after a successfull loading, calling this delegate will simply forward the error to the app without attempting the loading of the next mediation ad.
Declaration
Objective-C
- (void)mediationInterstitialAdapter: (nonnull id<SASMediationInterstitialAdapter>)adapter didFailToShowWithError:(nonnull NSError *)error;
Swift
func mediationInterstitialAdapter(_ adapter: (any SASMediationInterstitialAdapter)!, didFailToShowWithError error: Any!)
Parameters
adapter
The mediation adapter.
error
The error returned by the mediation SDK.
-
Notify the Smart Display SDK that an interstitial ad will present a modal view, for instance after a click.
Declaration
Objective-C
- (void)mediationInterstitialAdapterWillPresentModalView: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterWillPresentModalView(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that an interstitial ad will dismiss a modal view, for instance a post click modal view that was open before.
Declaration
Objective-C
- (void)mediationInterstitialAdapterWillDismissModalView: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterWillDismissModalView(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that an interstitial has sent a click event.
Declaration
Objective-C
- (void)mediationInterstitialAdapterDidReceiveAdClickedEvent: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterDidReceiveAdClickedEvent(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that the currently displayed interstitial has been closed.
Declaration
Objective-C
- (void)mediationInterstitialAdapterDidClose: (nonnull id<SASMediationInterstitialAdapter>)adapter;
Swift
func mediationInterstitialAdapterDidClose(_ adapter: (any SASMediationInterstitialAdapter)!)
Parameters
adapter
The mediation adapter.