iOS SDK Version

FBInterstitialAdDelegate

@protocolFBInterstitialAdDelegate<NSObject>
The methods declared by the FBInterstitialAdDelegate protocol allow the adopting delegate to respond to messages from the FBInterstitialAd class and thus respond to operations such as whether the interstitial ad has been loaded, user has clicked or closed the interstitial.
  • Sent after an ad in the FBInterstitialAd object is clicked. The appropriate app store view or app browser will be launched.

    Declaration

    Objective-C
    -(void)interstitialAdDidClick:(nonnullFBInterstitialAd*)interstitialAd;
    Swift
    optionalfuncinterstitialAdDidClick(_interstitialAd:FBInterstitialAd)

    Parameters

  • Sent after an FBInterstitialAd object has been dismissed from the screen, returning control to your application.

    Declaration

    Objective-C
    -(void)interstitialAdDidClose:(nonnullFBInterstitialAd*)interstitialAd;
    Swift
    optionalfuncinterstitialAdDidClose(_interstitialAd:FBInterstitialAd)

    Parameters

  • Sent immediately before an FBInterstitialAd object will be dismissed from the screen.

    Declaration

    Objective-C
    -(void)interstitialAdWillClose:(nonnullFBInterstitialAd*)interstitialAd;
    Swift
    optionalfuncinterstitialAdWillClose(_interstitialAd:FBInterstitialAd)

    Parameters

  • Sent when an FBInterstitialAd successfully loads an ad.

    Declaration

    Objective-C
    -(void)interstitialAdDidLoad:(nonnullFBInterstitialAd*)interstitialAd;
    Swift
    optionalfuncinterstitialAdDidLoad(_interstitialAd:FBInterstitialAd)

    Parameters

  • Sent when an FBInterstitialAd failes to load an ad.

    Declaration

    Objective-C
    -(void)interstitialAd:(nonnullFBInterstitialAd*)interstitialAddidFailWithError:(nonnullNSError*)error;
    Swift
    optionalfuncinterstitialAd(_interstitialAd:FBInterstitialAd,didFailWithErrorerror:Error)

    Parameters

  • Sent immediately before the impression of an FBInterstitialAd object will be logged.

    Declaration

    Objective-C
    -(void)interstitialAdWillLogImpression:(nonnullFBInterstitialAd*)interstitialAd;
    Swift
    optionalfuncinterstitialAdWillLogImpression(_interstitialAd:FBInterstitialAd)

    Parameters