GoogleMobileAds Framework Reference

  • GADMediationNativeAdEventDelegate enables communication between mediation adapters and the Google Mobile Ads SDK for native ad events.

  • It reports video playback related information, such as play, pause, end, mute, and unmute actions, back to the SDK.

  • This delegate is used to enhance the functionality and tracking of native ad video interactions within the mediation flow.

  • It provides a mechanism to notify the SDK about changes in the video state of a native ad being served by a mediation adapter.

GADMediationNativeAdEventDelegate

@protocol GADMediationNativeAdEventDelegate <GADMediationAdEventDelegate>

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

    Swift

    func didEndVideo()

    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;