SASMediationBannerAdapterDelegate
Objective-C
@protocol SASMediationBannerAdapterDelegate <NSObject>Swift
protocol SASMediationBannerAdapterDelegate : NSObjectProtocolProtocol implemented by SASMediationBannerAdapter 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 a banner ad has been loaded successfully. DeclarationObjective-C - (void)mediationBannerAdapter:(nonnull id<SASMediationBannerAdapter>)adapter didLoadBanner:(nonnull UIView *)bannerView;Swift func mediationBannerAdapter(_ adapter: any SASMediationBannerAdapter, didLoadBanner bannerView: UIView)ParametersadapterThe mediation adapter. bannerViewThe banner view that has been loaded. 
- 
                    
                    Notify the Smart Display SDK that a banner ad has been loaded successfully. DeclarationObjective-C - (void)mediationBannerAdapter:(nonnull id<SASMediationBannerAdapter>)adapter didLoadBanner:(nonnull UIView *)bannerView bannerSize:(CGSize)bannerSize;Swift func mediationBannerAdapter(_ adapter: any SASMediationBannerAdapter, didLoadBanner bannerView: UIView, bannerSize: CGSize)ParametersadapterThe mediation adapter. bannerViewThe banner view that has been loaded. bannerSizeThe size of the banner view that has been loaded. This size will be provided to the publisher app through the ‘optimalAdHeightForContainer:’ method but note that it does not guaranted that the app will takes any action to resize the banner view container. 
- 
                    
                    Notify the Smart Display SDK that a banner ad has failed to load. DeclarationObjective-C - (void)mediationBannerAdapter:(nonnull id<SASMediationBannerAdapter>)adapter didFailToLoadWithError:(nonnull NSError *)error noFill:(BOOL)noFill;Swift func mediationBannerAdapter(_ adapter: any SASMediationBannerAdapter, didFailToLoadWithError error: any Error, noFill: Bool)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 a banner ad will present a modal view, for instance after a click. DeclarationObjective-C - (void)mediationBannerAdapterWillPresentModalView: (nonnull id<SASMediationBannerAdapter>)adapter;Swift func mediationBannerAdapterWillPresentModalView(_ adapter: any SASMediationBannerAdapter)ParametersadapterThe mediation adapter. 
- 
                    
                    Notify the Smart Display SDK that a banner ad will dismiss a modal view, for instance a post click modal view that was open before. DeclarationObjective-C - (void)mediationBannerAdapterWillDismissModalView: (nonnull id<SASMediationBannerAdapter>)adapter;Swift func mediationBannerAdapterWillDismissModalView(_ adapter: any SASMediationBannerAdapter)ParametersadapterThe mediation adapter. 
- 
                    
                    Notify the Smart Display SDK that a banner has sent a click event. DeclarationObjective-C - (void)mediationBannerAdapterDidReceiveAdClickedEvent: (nonnull id<SASMediationBannerAdapter>)adapter;Swift func mediationBannerAdapterDidReceiveAdClickedEvent(_ adapter: any SASMediationBannerAdapter)ParametersadapterThe mediation adapter. 
