# GoogleMobileAds Framework Reference

# GADMediatedUnifiedNativeAdNotificationSource


    @interface GADMediatedUnifiedNativeAdNotificationSource : NSObject

Notifies the Google Mobile Ads SDK about the events performed by adapters. Adapters may perform
some action (e.g. opening an in app browser or opening the iTunes store) when handling methods
in GADMediatedUnifiedNativeAd. Adapters in such case should notify the Google Mobile Ads SDK by
calling the relevant methods from this class.
- `


  ### [+mediatedNativeAdDidRecordImpression:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidRecordImpression:)


  ` Called by the adapter when it has registered an impression on the tracked view. Adapter should
  only call this method if -\[GADMAdNetworkAdapter handlesUserImpressions\] returns YES.

  #### Declaration

  Swift

      class func mediatedNativeAdDidRecordImpression(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidRecordImpression:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdDidRecordClick:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidRecordClick:)


  ` Called by the adapter when it has registered a user click on the tracked view. Adapter should
  only call this method if -\[GADMAdNetworkAdapter handlesUserClicks\] returns YES.

  #### Declaration

  Swift

      class func mediatedNativeAdDidRecordClick(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidRecordClick:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdWillPresentScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdWillPresentScreen:)


  ` Must be called by the adapter just before mediatedNativeAd has opened an in-app modal screen.

  #### Declaration

  Swift

      class func mediatedNativeAdWillPresentScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdWillPresentScreen:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdWillDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdWillDismissScreen:)


  ` Must be called by the adapter just before the in-app modal screen opened by mediatedNativeAd is
  dismissed.

  #### Declaration

  Swift

      class func mediatedNativeAdWillDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdWillDismissScreen:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdDidDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidDismissScreen:)


  ` Must be called by the adapter after the in-app modal screen opened by mediatedNativeAd is
  dismissed.

  #### Declaration

  Swift

      class func mediatedNativeAdDidDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidDismissScreen:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

[## Mediated Native Video Ad Notifications](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/Mediated-Native-Video-Ad-Notifications)

- `


  ### [+mediatedNativeAdDidPlayVideo:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidPlayVideo:)


  ` Called by the adapter when native video playback has begun or resumed.

  #### Declaration

  Swift

      class func mediatedNativeAdDidPlayVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidPlayVideo:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdDidPauseVideo:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidPauseVideo:)


  ` Called by the adapter when native video playback has paused.

  #### Declaration

  Swift

      class func mediatedNativeAdDidPauseVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidPauseVideo:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;

- `


  ### [+mediatedNativeAdDidEndVideoPlayback:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADMediatedUnifiedNativeAdNotificationSource#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidEndVideoPlayback:)


  ` Called by the adapter when native video playback has ended.

  #### Declaration

  Swift

      class func mediatedNativeAdDidEndVideoPlayback(_ mediatedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      + (void)mediatedNativeAdDidEndVideoPlayback:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedNativeAd;