Enum Class APSVASTRootNode.APSAdPodFallback

java.lang.Object
java.lang.Enum<APSVASTRootNode.APSAdPodFallback>
com.appscend.vast.APSVASTRootNode.APSAdPodFallback
All Implemented Interfaces:
Serializable, Comparable<APSVASTRootNode.APSAdPodFallback>, Constable
Enclosing class:
APSVASTRootNode

public static enum APSVASTRootNode.APSAdPodFallback extends Enum<APSVASTRootNode.APSAdPodFallback>
VAST 3.0 defines Ad Pods, with fallback mechanisms that allow loading an ad buffet of commercials to playback if the main ads fail. This value specifies how to treat backwards compatibility issues with VAST 2.0 and 1.0, by choosing what ads are promoted to the main Ad Pod if no valid Pods are detected.
  • Enum Constant Details

    • APSAdPodFallbackSelectAll

      public static final APSVASTRootNode.APSAdPodFallback APSAdPodFallbackSelectAll
      Load all retrieved ads if no valid Ad Pods are found.
    • APSAdPodFallbackSelectFirst

      public static final APSVASTRootNode.APSAdPodFallback APSAdPodFallbackSelectFirst
      Load only the first retrieved ad if no valid Ad Pods are found.
    • APSAdPodFallbackDrop

      public static final APSVASTRootNode.APSAdPodFallback APSAdPodFallbackDrop
      Drop the whole ad request if no valid Ad Pods are found. This value will disable VAST 1.0 and 2.0 compatibility.
  • Method Details

    • values

      public static APSVASTRootNode.APSAdPodFallback[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static APSVASTRootNode.APSAdPodFallback valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null