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 2024-02-06 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 2024-02-06 UTC."],[[["`GADMediationNativeAdEventDelegate` relays native ad events, such as video interactions, from the adapter to the Google Mobile Ads SDK."],["It provides methods to inform the SDK about video playback states like starting, pausing, ending, muting, and unmuting."],["These methods are implemented by the adapter and called at the appropriate times during native ad interactions."],["Declarations for the delegate methods are provided in both Swift and Objective-C."]]],["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"]]