Skip to main content
Google Dynamic Ad Insertion
  • Google Dynamic Ad Insertion
  • Home
  • Full service DAI
  • Pod serving DAI
  • Server guided DAI
SDKs
  • HTML5
  • Android
  • iOS
  • tvOS
  • Chromecast
  • Roku
  • Full service DAI
  • Pod serving DAI
  • Early ad break notification v1
  • Support
  • Terms of service
  • Developer (IMA SDK) forum
  • Ads developer blog
  • Test tools
  • Video Suite Inspector
  • Sample streams
/
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어
Sign in
  • IMA DAI SDK for Android
Guides Reference Download
Google Dynamic Ad Insertion
  • Google Dynamic Ad Insertion
  • Home
    • More
  • Solutions
    • More
  • SDKs
    • More
    • Guides
    • Reference
    • Download
  • APIs
    • More
  • Resources
    • More
  • Interactive Media Ads SDK
    • api
      • Overview
      • Interfaces
        • Ad
        • AdDisplayContainer
        • AdErrorEvent
        • AdErrorEvent.AdErrorListener
        • AdEvent
        • AdEvent.AdEventListener
        • AdPodInfo
        • AdProgressInfo
        • AdsLoader
        • AdsLoader.AdsLoadedListener
        • AdsManager
        • AdsManagerLoadedEvent
        • AdsRenderingSettings
        • AdsRequest
        • BaseDisplayContainer
        • BaseManager
        • BaseRequest
        • CompanionAd
        • CompanionAdSlot
        • CompanionAdSlot.ClickListener
        • CuePoint
        • FriendlyObstruction
        • ImaSdkSettings
        • StreamDisplayContainer
        • StreamManager
        • StreamRequest
        • UiElement
        • UniversalAdId
      • Classes
        • ImaSdkFactory
        • VersionInfo
      • Enums
        • AdError.AdErrorCode
        • AdError.AdErrorType
        • AdEvent.AdEventType
        • FriendlyObstructionPurpose
        • StreamRequest.StreamFormat
      • Exceptions
        • AdError
    • api.player
      • Overview
      • Interfaces
        • AdProgressProvider
        • ContentProgressProvider
        • ResizablePlayer
        • VideoAdPlayer
        • VideoAdPlayer.VideoAdPlayerCallback
        • VideoStreamPlayer
        • VideoStreamPlayer.VideoStreamPlayerCallback
        • VolumeProvider
      • Classes
        • AdMediaInfo
        • VideoProgressUpdate
    • api.signals
      • Overview
      • Interfaces
        • SecureSignalsAdapter
        • SecureSignalsCollectSignalsCallback
        • SecureSignalsInitializeCallback
      • Classes
        • SecureSignals
  • Google User Messaging Platform
    • com.google.android.ump
      • Overview
      • Interfaces
        • ConsentForm
        • ConsentForm.OnConsentFormDismissedListener
        • ConsentInformation
        • ConsentInformation.OnConsentInfoUpdateFailureListener
        • ConsentInformation.OnConsentInfoUpdateSuccessListener
        • UserMessagingPlatform.OnConsentFormLoadFailureListener
        • UserMessagingPlatform.OnConsentFormLoadSuccessListener
      • Classes
        • ConsentDebugSettings
        • ConsentDebugSettings.Builder
        • ConsentRequestParameters
        • ConsentRequestParameters.Builder
        • FormError
        • UserMessagingPlatform
      • Enums
        • ConsentInformation.PrivacyOptionsRequirementStatus
      • Annotations
        • ConsentDebugSettings.DebugGeography
        • ConsentInformation.ConsentStatus
        • FormError.ErrorCode
  • Home
  • Full service DAI
  • Pod serving DAI
  • Server guided DAI
  • HTML5
  • Android
  • iOS
  • tvOS
  • Chromecast
  • Roku
  • Full service DAI
  • Pod serving DAI
  • Early ad break notification v1
  • Support
  • Terms of service
  • Developer (IMA SDK) forum
  • Ads developer blog
  • Test tools
  • Video Suite Inspector
  • Sample streams
  • Home
  • Products
  • Dynamic Ad Insertion
  • IMA DAI SDK for Android
  • Reference
Stay organized with collections Save and categorize content based on your preferences.

AdEvent.AdEventListener

Kotlin |Java

interface AdEvent.AdEventListener


Listener interface for ad events.

Summary

Public functions

Unit
onAdEvent(event: AdEvent!)

Respond to an occurrence of an AdEvent.

Public functions

onAdEvent

fun onAdEvent(event: AdEvent!): Unit

Respond to an occurrence of an AdEvent.

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-01-22 UTC.

  • Connect

    • Blog
    • Instagram
    • LinkedIn
    • X (Twitter)
    • YouTube
  • Programs

    • Google Developer Groups
    • Google Developer Experts
    • Accelerators
    • Women Techmakers
    • Google Cloud & NVIDIA
  • Developer consoles

    • Google API Console
    • Google Cloud Platform Console
    • Google Play Console
    • Firebase Console
    • Actions on Google Console
    • Cast SDK Developer Console
    • Chrome Web Store Dashboard
    • Google Home Developer Console
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • Google AI
  • All products
  • Terms
  • Privacy
  • Manage cookies
  • Sign up for the Google for Developers newsletter Subscribe
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어