Interface AdUnit

  • All Implemented Interfaces:
    com.inmobi.ads.core.WinLossNotifier , com.inmobi.media.ads.common.listeners.AUDestroyListener

    
    public interface AdUnit
     implements AUDestroyListener, WinLossNotifier
                        

    Represents a generic ad unit that can be inflated and destroyed.

    This interface defines the basic contract for any ad unit within the application. Ad units are responsible for displaying ad content, managing their own lifecycle, and handling win/loss notifications for auction-based scenarios.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit inflate()
      abstract Unit fillTelemetryExtras(Map<String, Object> extras) Adds this ad unit's ad context details to a telemetry payload.
      • Methods inherited from class com.inmobi.media.ads.common.listeners.AUDestroyListener

        onDestroy
      • Methods inherited from class com.inmobi.ads.core.WinLossNotifier

        notifyLoss, notifyWin
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fillTelemetryExtras

         abstract Unit fillTelemetryExtras(Map<String, Object> extras)

        Adds this ad unit's ad context details to a telemetry payload.

        Ad manager level telemetry is built from AdManagerContext, which knows the placement but not the ad that was selected. Events raised once an ad unit exists call this so the payload also carries the creative details that ad level events such as AdLoadSuccessful already report.

        Parameters:
        extras - The payload to add the ad context details to.