Class AdUnitManager

  • All Implemented Interfaces:

    
    public abstract class AdUnitManager
    
                        

    Abstract 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit fetch(Boolean isPreload) Initiates an ad fetch operation.
      final Unit load(ByteArray response) Loads an ad from the provided response data.
      final Unit inflate() Inflates the ad unit for rendering.
      final Unit destroy() Destroys the ad unit and releases all associated resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • inflate

         final Unit inflate()

        Inflates the ad unit for rendering.

      • destroy

         final Unit destroy()

        Destroys the ad unit and releases all associated resources.