# GoogleMobileAds Framework Reference

# GADCustomNativeAdDelegate

    @protocol GADCustomNativeAdDelegate <NSObject>

Identifies native ad assets.
[## Ad Lifecycle Events](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/Ad-Lifecycle-Events)

- `


  ### [-customNativeAdDidRecordImpression:](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/c:objc(pl)GADCustomNativeAdDelegate(im)customNativeAdDidRecordImpression:)


  ` Called when an impression is recorded for a custom native ad.

  #### Declaration

  Swift

      @MainActor optional func customNativeAdDidRecordImpression(_ nativeAd: GADCustomNativeAd)

  Objective-C

      - (void)customNativeAdDidRecordImpression:(nonnull GADCustomNativeAd *)nativeAd;

- `


  ### [-customNativeAdDidRecordClick:](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/c:objc(pl)GADCustomNativeAdDelegate(im)customNativeAdDidRecordClick:)


  ` Called when a click is recorded for a custom native ad.

  #### Declaration

  Swift

      @MainActor optional func customNativeAdDidRecordClick(_ nativeAd: GADCustomNativeAd)

  Objective-C

      - (void)customNativeAdDidRecordClick:(nonnull GADCustomNativeAd *)nativeAd;

[## Click-Time Lifecycle Notifications](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/Click-Time-Lifecycle-Notifications)

- `


  ### [-customNativeAdWillPresentScreen:](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/c:objc(pl)GADCustomNativeAdDelegate(im)customNativeAdWillPresentScreen:)


  ` Called just before presenting the user a full screen view, such as a browser, in response to
  clicking on an ad. Use this opportunity to stop animations, time sensitive interactions, etc.

  Normally the user looks at the ad, dismisses it, and control returns to your application with
  the customNativeAdDidDismissScreen: message. However, if the user hits the Home button or clicks
  on an App Store link, your application will end. The next method called will be the
  applicationWillResignActive: of your UIApplicationDelegate object.

  #### Declaration

  Swift

      @MainActor optional func customNativeAdWillPresentScreen(_ nativeAd: GADCustomNativeAd)

  Objective-C

      - (void)customNativeAdWillPresentScreen:(nonnull GADCustomNativeAd *)nativeAd;

- `


  ### [-customNativeAdDidDismissScreen:](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/c:objc(pl)GADCustomNativeAdDelegate(im)customNativeAdDidDismissScreen:)


  ` Called just after dismissing a full screen view. Use this opportunity to restart anything you
  may have stopped as part of customNativeAdWillPresentScreen:.

  #### Declaration

  Swift

      @MainActor optional func customNativeAdDidDismissScreen(_ nativeAd: GADCustomNativeAd)

  Objective-C

      - (void)customNativeAdDidDismissScreen:(nonnull GADCustomNativeAd *)nativeAd;

[## Deprecated](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/Deprecated)

- `


  ### [-customNativeAdWillDismissScreen:](https://developers.google.com/admob/ios/api/reference/Protocols/GADCustomNativeAdDelegate.md.txt#/c:objc(pl)GADCustomNativeAdDelegate(im)customNativeAdWillDismissScreen:)


  ` Deprecated

  Deprecated. Use \[GADCustomNativeAdDelegate customNativeAdDidDismissScreen:\] instead.
  Called just before dismissing a full screen view.

  #### Declaration

  Swift

      @MainActor optional func customNativeAdWillDismissScreen(_ nativeAd: GADCustomNativeAd)

  Objective-C

      - (void)customNativeAdWillDismissScreen:(nonnull GADCustomNativeAd *)nativeAd;