SASMediationInterstitialAdapterDelegate
Objective-C
@protocol SASMediationInterstitialAdapterDelegate <NSObject>Swift
protocol SASMediationInterstitialAdapterDelegateProtocol 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. DeclarationObjective-C - (void)mediationInterstitialAdapterDidLoad: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterDidLoad(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe mediation adapter. 
- 
                    
                    Notify the Smart Display SDK that an interstitial ad has failed to load. DeclarationObjective-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!)ParametersadapterThe mediation adapter. errorThe error returned by the mediation SDK. noFillYES 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. DeclarationObjective-C - (void)mediationInterstitialAdapterDidShow: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterDidShow(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe 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. DeclarationObjective-C - (void)mediationInterstitialAdapter: (nonnull id<SASMediationInterstitialAdapter>)adapter didFailToShowWithError:(nonnull NSError *)error;Swift func mediationInterstitialAdapter(_ adapter: (any SASMediationInterstitialAdapter)!, didFailToShowWithError error: Any!)ParametersadapterThe mediation adapter. errorThe 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. DeclarationObjective-C - (void)mediationInterstitialAdapterWillPresentModalView: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterWillPresentModalView(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe 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. DeclarationObjective-C - (void)mediationInterstitialAdapterWillDismissModalView: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterWillDismissModalView(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe mediation adapter. 
- 
                    
                    Notify the Smart Display SDK that an interstitial has sent a click event. DeclarationObjective-C - (void)mediationInterstitialAdapterDidReceiveAdClickedEvent: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterDidReceiveAdClickedEvent(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe mediation adapter. 
- 
                    
                    Notify the Smart Display SDK that the currently displayed interstitial has been closed. DeclarationObjective-C - (void)mediationInterstitialAdapterDidClose: (nonnull id<SASMediationInterstitialAdapter>)adapter;Swift func mediationInterstitialAdapterDidClose(_ adapter: (any SASMediationInterstitialAdapter)!)ParametersadapterThe mediation adapter. 
