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.
-
-
Method Summary
Modifier and Type Method Description abstract Unitinflate()abstract UnitfillTelemetryExtras(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
-
-
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 asAdLoadSuccessfulalready report.- Parameters:
extras- The payload to add the ad context details to.
-
-
-
-