SASMediationBannerAdapterDelegate
Objective-C
@protocol SASMediationBannerAdapterDelegate <NSObject>
Swift
protocol SASMediationBannerAdapterDelegate : NSObjectProtocol
Protocol 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.
Declaration
Objective-C
- (void)mediationBannerAdapter:(nonnull id<SASMediationBannerAdapter>)adapter didLoadBanner:(nonnull UIView *)bannerView;
Swift
func mediationBannerAdapter(_ adapter: any SASMediationBannerAdapter, didLoadBanner bannerView: UIView)
Parameters
adapter
The mediation adapter.
bannerView
The banner view that has been loaded.
-
Notify the Smart Display SDK that a banner ad has been loaded successfully.
Declaration
Objective-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)
Parameters
adapter
The mediation adapter.
bannerView
The banner view that has been loaded.
bannerSize
The 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.
Declaration
Objective-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)
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 a banner ad will present a modal view, for instance after a click.
Declaration
Objective-C
- (void)mediationBannerAdapterWillPresentModalView: (nonnull id<SASMediationBannerAdapter>)adapter;
Swift
func mediationBannerAdapterWillPresentModalView(_ adapter: any SASMediationBannerAdapter)
Parameters
adapter
The 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.
Declaration
Objective-C
- (void)mediationBannerAdapterWillDismissModalView: (nonnull id<SASMediationBannerAdapter>)adapter;
Swift
func mediationBannerAdapterWillDismissModalView(_ adapter: any SASMediationBannerAdapter)
Parameters
adapter
The mediation adapter.
-
Notify the Smart Display SDK that a banner has sent a click event.
Declaration
Objective-C
- (void)mediationBannerAdapterDidReceiveAdClickedEvent: (nonnull id<SASMediationBannerAdapter>)adapter;
Swift
func mediationBannerAdapterDidReceiveAdClickedEvent(_ adapter: any SASMediationBannerAdapter)
Parameters
adapter
The mediation adapter.