SASMediationNativeAdAdapterDelegate
Objective-C
@protocol SASMediationNativeAdAdapterDelegate <NSObject>Swift
protocol SASMediationNativeAdAdapterDelegate : NSObjectProtocolProtocol implemented by SASMediationNativeAdAdapter 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 native ad has been loaded successfully. When a native ad is fetched using a third party SDK, you must convert it into a SASMediationNativeAdInfo object so the Smart SDK is able to use it. DeclarationObjective-C - (void)mediationNativeAdAdapter: (nonnull id<SASMediationNativeAdAdapter>)adapter didLoadAdInfo:(nonnull SASMediationNativeAdInfo *)adInfo;Swift func mediationNativeAdAdapter(_ adapter: any SASMediationNativeAdAdapter, didLoad adInfo: SASMediationNativeAdInfo)ParametersadapterThe mediation adapter. adInfoAn instance of SASMediationNativeAdInfo that will hold native ad information retrieved from the third party SDK. 
- 
                    
                    Notify the Smart Display SDK that the native ad has failed to load. DeclarationObjective-C - (void)mediationNativeAdAdapter: (nonnull id<SASMediationNativeAdAdapter>)adapter didFailToLoadWithError:(nonnull NSError *)error noFill:(BOOL)noFill;Swift func mediationNativeAdAdapter(_ adapter: any SASMediationNativeAdAdapter, 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 native ad has sent a click event. DeclarationObjective-C - (void)mediationNativeAdAdapterDidReceiveAdClickedEvent: (nonnull id<SASMediationNativeAdAdapter>)adapter;Swift func mediationNativeAdAdapterDidReceiveAdClickedEvent(_ adapter: any SASMediationNativeAdAdapter)ParametersadapterThe mediation adapter. 
