AI-generated Key Takeaways
- 
          GADMediatedUnifiedNativeAdNotificationSource is used by adapters to notify the Google Mobile Ads SDK about events. 
- 
          Adapters should call methods from this class when performing actions like opening a browser or the iTunes store. 
- 
          Methods are available to record impressions, clicks, and screen presentation/dismissal events. 
- 
          Methods are available for notifying about native video playback events like starting, pausing, and ending. 
GADMediatedUnifiedNativeAdNotificationSource
@interface GADMediatedUnifiedNativeAdNotificationSource : NSObjectNotifies 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.
- 
                  
                  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. DeclarationSwift class func mediatedNativeAdDidRecordImpression(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidRecordImpression: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  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. DeclarationSwift class func mediatedNativeAdDidRecordClick(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidRecordClick: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Must be called by the adapter just before mediatedNativeAd has opened an in-app modal screen. DeclarationSwift class func mediatedNativeAdWillPresentScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdWillPresentScreen: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Must be called by the adapter just before the in-app modal screen opened by mediatedNativeAd is dismissed. DeclarationSwift class func mediatedNativeAdWillDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdWillDismissScreen: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Must be called by the adapter after the in-app modal screen opened by mediatedNativeAd is dismissed. DeclarationSwift class func mediatedNativeAdDidDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidDismissScreen: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Called by the adapter when native video playback has begun or resumed. DeclarationSwift class func mediatedNativeAdDidPlayVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidPlayVideo: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Called by the adapter when native video playback has paused. DeclarationSwift class func mediatedNativeAdDidPauseVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidPauseVideo: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;
- 
                  
                  Called by the adapter when native video playback has ended. DeclarationSwift class func mediatedNativeAdDidEndVideoPlayback(_ mediatedNativeAd: any MediatedUnifiedNativeAd)Objective-C + (void)mediatedNativeAdDidEndVideoPlayback: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd;