GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Reports native related information to the Google Mobile Ads SDK from the adapter.
-
Notifies Google Mobile Ads SDK that the GADMediationAd started video playback.
Declaration
Swift
func didPlayVideo()
Objective-C
- (void)didPlayVideo;
-
Notifies Google Mobile Ads SDK that the GADMediationAd paused video playback.
Declaration
Swift
func didPauseVideo()
Objective-C
- (void)didPauseVideo;
-
Notifies Google Mobile Ads SDK that the GADMediationAd’s video playback finished.
Declaration
Objective-C
- (void)didEndVideo;
-
Notifies Google Mobile Ads SDK that the GADMediationAd muted video playback.
Declaration
Swift
func didMuteVideo()
Objective-C
- (void)didMuteVideo;
-
Notifies Google Mobile Ads SDK that the GADMediationAd unmuted video playback.
Declaration
Swift
func didUnmuteVideo()
Objective-C
- (void)didUnmuteVideo;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["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\u003eGADMediationNativeAdEventDelegate\u003c/code\u003e relays native ad events, such as video interactions, from the adapter to the Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to inform the SDK about video playback states like starting, pausing, ending, muting, and unmuting.\u003c/p\u003e\n"],["\u003cp\u003eThese methods are implemented by the adapter and called at the appropriate times during native ad interactions.\u003c/p\u003e\n"],["\u003cp\u003eDeclarations for the delegate methods are provided in both Swift and Objective-C.\u003c/p\u003e\n"]]],["The `GADMediationNativeAdEventDelegate` protocol informs the Google Mobile Ads SDK about video playback events within a mediated native ad. It includes methods to notify the SDK when a video starts (`didPlayVideo`), pauses (`didPauseVideo`), or finishes (`didEndVideo`). Additionally, it signals when a video is muted (`didMuteVideo`) or unmuted (`didUnmuteVideo`). These notifications ensure the SDK is updated on the ad's video playback status.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADMediationNativeAdEventDelegate\n=================================\n\n @protocol GADMediationNativeAdEventDelegate \u003c../Protocols/GADMediationAdEventDelegate.html\u003e\n\nReports native related information to the Google Mobile Ads SDK from the adapter.\n- `\n ``\n ``\n `\n\n ### [-didPlayVideo](#/c:objc(pl)GADMediationNativeAdEventDelegate(im)didPlayVideo)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd started video playback. \n\n #### Declaration\n\n Swift \n\n func didPlayVideo()\n\n Objective-C \n\n - (void)didPlayVideo;\n\n- `\n ``\n ``\n `\n\n ### [-didPauseVideo](#/c:objc(pl)GADMediationNativeAdEventDelegate(im)didPauseVideo)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd paused video playback. \n\n #### Declaration\n\n Swift \n\n func didPauseVideo()\n\n Objective-C \n\n - (void)didPauseVideo;\n\n- `\n ``\n ``\n `\n\n ### [-didEndVideo](#/c:objc(pl)GADMediationNativeAdEventDelegate(im)didEndVideo)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd's video playback finished. \n\n #### Declaration\n\n Swift \n\n func didEndVideo()\n\n Objective-C \n\n - (void)didEndVideo;\n\n- `\n ``\n ``\n `\n\n ### [-didMuteVideo](#/c:objc(pl)GADMediationNativeAdEventDelegate(im)didMuteVideo)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd muted video playback. \n\n #### Declaration\n\n Swift \n\n func didMuteVideo()\n\n Objective-C \n\n - (void)didMuteVideo;\n\n- `\n ``\n ``\n `\n\n ### [-didUnmuteVideo](#/c:objc(pl)GADMediationNativeAdEventDelegate(im)didUnmuteVideo)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd unmuted video playback. \n\n #### Declaration\n\n Swift \n\n func didUnmuteVideo()\n\n Objective-C \n\n - (void)didUnmuteVideo;"]]