Class AdUnitManager
-
- All Implemented Interfaces:
public abstract class AdUnitManagerAbstract base class for managing ad units and their lifecycle.
This class provides a high-level interface for ad unit management, coordinating between the publisher settings, ad configuration, and the underlying AUMStateMachine. It handles initialization of the ad manager context, telemetry, logging, and provides a unified API for ad operations like fetch, load, inflate, and destroy.
-
-
Constructor Summary
Constructors Constructor Description AdUnitManager(Context context, String logType, String adType, PubSettings pubSettings)
-
Method Summary
Modifier and Type Method Description final Unitfetch(Boolean isPreload)Initiates an ad fetch operation. final Unitload(ByteArray response)Loads an ad from the provided response data. final Unitinflate()Inflates the ad unit for rendering. final Unitdestroy()Destroys the ad unit and releases all associated resources. -
-
Constructor Detail
-
AdUnitManager
AdUnitManager(Context context, String logType, String adType, PubSettings pubSettings)
-
-
Method Detail
-
fetch
final Unit fetch(Boolean isPreload)
Initiates an ad fetch operation.
- Parameters:
isPreload- Whether this is a preload operation
-
load
final Unit load(ByteArray response)
Loads an ad from the provided response data.
- Parameters:
response- The ad response data as a ByteArray, or null for regular fetch
-
-
-
-