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.
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)
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)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADMediatedUnifiedNativeAdNotificationSource\u003c/code\u003e enables adapter communication with the Google Mobile Ads SDK regarding user interactions and events related to mediated native ads.\u003c/p\u003e\n"],["\u003cp\u003eAdapters use this class to inform the SDK about impressions, clicks, screen presentations, and dismissals, ensuring accurate tracking and ad lifecycle management.\u003c/p\u003e\n"],["\u003cp\u003eIt includes specific methods for signaling the start, pause, and end of video playback for mediated native video ads, providing comprehensive video ad event tracking.\u003c/p\u003e\n"],["\u003cp\u003eAdapters should utilize these notification methods to maintain synchronization between their actions and the Google Mobile Ads SDK, ultimately improving ad performance and user experience.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADMediatedUnifiedNativeAdNotificationSource\n============================================\n\n\n @interface GADMediatedUnifiedNativeAdNotificationSource : NSObject\n\nNotifies the Google Mobile Ads SDK about the events performed by adapters. Adapters may perform\nsome action (e.g. opening an in app browser or opening the iTunes store) when handling methods\nin GADMediatedUnifiedNativeAd. Adapters in such case should notify the Google Mobile Ads SDK by\ncalling the relevant methods from this class.\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidRecordImpression:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidRecordImpression:)\n\n `\n ` \n Called by the adapter when it has registered an impression on the tracked view. Adapter should\n only call this method if -\\[GADMAdNetworkAdapter handlesUserImpressions\\] returns YES. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidRecordImpression(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidRecordImpression:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidRecordClick:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidRecordClick:)\n\n `\n ` \n Called by the adapter when it has registered a user click on the tracked view. Adapter should\n only call this method if -\\[GADMAdNetworkAdapter handlesUserClicks\\] returns YES. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidRecordClick(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidRecordClick:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdWillPresentScreen:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdWillPresentScreen:)\n\n `\n ` \n Must be called by the adapter just before mediatedNativeAd has opened an in-app modal screen. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdWillPresentScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdWillPresentScreen:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdWillDismissScreen:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdWillDismissScreen:)\n\n `\n ` \n Must be called by the adapter just before the in-app modal screen opened by mediatedNativeAd is\n dismissed. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdWillDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdWillDismissScreen:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidDismissScreen:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidDismissScreen:)\n\n `\n ` \n Must be called by the adapter after the in-app modal screen opened by mediatedNativeAd is\n dismissed. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidDismissScreen(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidDismissScreen:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n[Mediated Native Video Ad Notifications\n--------------------------------------](#/Mediated-Native-Video-Ad-Notifications)\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidPlayVideo:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidPlayVideo:)\n\n `\n ` \n Called by the adapter when native video playback has begun or resumed. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidPlayVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidPlayVideo:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidPauseVideo:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidPauseVideo:)\n\n `\n ` \n Called by the adapter when native video playback has paused. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidPauseVideo(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidPauseVideo:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [+mediatedNativeAdDidEndVideoPlayback:](#/c:objc(cs)GADMediatedUnifiedNativeAdNotificationSource(cm)mediatedNativeAdDidEndVideoPlayback:)\n\n `\n ` \n Called by the adapter when native video playback has ended. \n\n #### Declaration\n\n Swift \n\n class func mediatedNativeAdDidEndVideoPlayback(_ mediatedNativeAd: any MediatedUnifiedNativeAd)\n\n Objective-C \n\n + (void)mediatedNativeAdDidEndVideoPlayback:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedNativeAd;"]]