Class BaseInterstitialAdUnit

  • All Implemented Interfaces:

    
    public abstract class BaseInterstitialAdUnit
    
                        

    Internal base interstitial ad unit for rendering API.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public BidResponse bidResponse
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • loadAd

         void loadAd()

        Executes ad loading if no request is running.

      • isLoaded

         boolean isLoaded()
        Returns:

        true if auction winner was defined, false otherwise

      • show

         void show()

        Executes interstitial display if auction winner is defined.

      • setImpOrtbConfig

         void setImpOrtbConfig(String ortbConfig)

        Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request. Expected format: "{"new_field": "value"}".

        Parameters:
        ortbConfig - JSON config string.
      • setGlobalOrtbConfig

         void setGlobalOrtbConfig(String ortbConfig)

        Sets the global OpenRTB configuration string for the ad unit. It takes precedence over `Targeting.setGlobalOrtbConfig`. Expected format: "{"new_field": "value"}".

        Parameters:
        ortbConfig - The global OpenRTB JSON configuration string to set.
      • setSkipDelay

         void setSkipDelay(int secondsDelay)

        Sets delay in seconds to show skip or close button.

      • setSkipButtonArea

         void setSkipButtonArea(double buttonArea)

        Sets skip button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default.

      • setSkipButtonPosition

         void setSkipButtonPosition(Position skipButtonPosition)

        Sets skip button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT.

      • setCloseButtonArea

         void setCloseButtonArea(double closeButtonArea)

        Sets close button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default.

      • setCloseButtonPosition

         void setCloseButtonPosition(Position closeButtonPosition)

        Sets close button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT.

      • destroy

         void destroy()

        Cleans up resources when destroyed.