GADNativeExpressAdViewDelegate

@protocol GADNativeExpressAdViewDelegate <NSObject>

Delegate methods for receiving GADNativeExpressAdView state change messages such as ad request status and ad click lifecycle.

  • Tells the delegate that a full screen view will be presented in response to the user clicking on an ad. The delegate may want to pause animations and time sensitive interactions.

    Declaration

    Swift

    optional func nativeExpressAdViewWillPresentScreen(_ nativeExpressAdView: GADNativeExpressAdView)

    Objective-C

    - (void)nativeExpressAdViewWillPresentScreen:
        (nonnull GADNativeExpressAdView *)nativeExpressAdView;
  • Tells the delegate that the full screen view will be dismissed.

    Declaration

    Swift

    optional func nativeExpressAdViewWillDismissScreen(_ nativeExpressAdView: GADNativeExpressAdView)

    Objective-C

    - (void)nativeExpressAdViewWillDismissScreen:
        (nonnull GADNativeExpressAdView *)nativeExpressAdView;
  • Tells the delegate that the full screen view has been dismissed. The delegate should restart anything paused while handling adViewWillPresentScreen:.

    Declaration

    Swift

    optional func nativeExpressAdViewDidDismissScreen(_ nativeExpressAdView: GADNativeExpressAdView)

    Objective-C

    - (void)nativeExpressAdViewDidDismissScreen:
        (nonnull GADNativeExpressAdView *)nativeExpressAdView;
  • Tells the delegate that the user click will open another app, backgrounding the current application. The standard UIApplicationDelegate methods, like applicationDidEnterBackground:, are called immediately before this method is called.

    Declaration

    Swift

    optional func nativeExpressAdViewWillLeaveApplication(_ nativeExpressAdView: GADNativeExpressAdView)

    Objective-C

    - (void)nativeExpressAdViewWillLeaveApplication:
        (nonnull GADNativeExpressAdView *)nativeExpressAdView;