iOS SDK Version

FBNativeBannerAdDelegate

Objective-C
@protocolFBNativeBannerAdDelegate<NSObject>
Swift
protocolFBNativeBannerAdDelegate:NSObjectProtocol
The methods declared by the FBNativeBannerAdDelegate protocol allow the adopting delegate to respond to messages from the FBNativeBannerAd class and thus respond to operations such as whether the native banner ad has been loaded.
  • Sent when an FBNativeBannerAd has been successfully loaded.

    Declaration

    Objective-C
    -(void)nativeBannerAdDidLoad:(nonnullFBNativeBannerAd*)nativeBannerAd;
    Swift
    optionalfuncnativeBannerAdDidLoad(_nativeBannerAd:FBNativeBannerAd)

    Parameters

  • Sent when an FBNativeBannerAd has succesfully downloaded all media

    Declaration

    Objective-C
    -(void)nativeBannerAdDidDownloadMedia:(nonnullFBNativeBannerAd*)nativeBannerAd;
    Swift
    optionalfuncnativeBannerAdDidDownloadMedia(_nativeBannerAd:FBNativeBannerAd)
  • Sent immediately before the impression of an FBNativeBannerAd object will be logged.

    Declaration

    Objective-C
    -(void)nativeBannerAdWillLogImpression:(nonnullFBNativeBannerAd*)nativeBannerAd;
    Swift
    optionalfuncnativeBannerAdWillLogImpression(_nativeBannerAd:FBNativeBannerAd)

    Parameters

  • Sent when an FBNativeBannerAd is failed to load.

    Declaration

    Objective-C
    -(void)nativeBannerAd:(nonnullFBNativeBannerAd*)nativeBannerAddidFailWithError:(nonnullNSError*)error;
    Swift
    optionalfuncnativeBannerAd(_nativeBannerAd:FBNativeBannerAd,didFailWithErrorerror:Error)

    Parameters

  • Sent after an ad has been clicked by the person.

    Declaration

    Objective-C
    -(void)nativeBannerAdDidClick:(nonnullFBNativeBannerAd*)nativeBannerAd;
    Swift
    optionalfuncnativeBannerAdDidClick(_nativeBannerAd:FBNativeBannerAd)

    Parameters

  • When an ad is clicked, the modal view will be presented. And when the user finishes the interaction with the modal view and dismiss it, this message will be sent, returning control to the application.

    Declaration

    Objective-C
    -(void)nativeBannerAdDidFinishHandlingClick:(nonnullFBNativeBannerAd*)nativeBannerAd;
    Swift
    optionalfuncnativeBannerAdDidFinishHandlingClick(_nativeBannerAd:FBNativeBannerAd)

    Parameters