Skip to end of metadata
Go to start of metadata

JavaScript is disabled on your browser.
com.appnexus.opensdk

Enum ResultCode

  • java.lang.Object
    • java.lang.Enum<ResultCode>
      • com.appnexus.opensdk.ResultCode
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ResultCode>


    public enum ResultCode
    extends java.lang.Enum<ResultCode>
    This enum contains the result codes sent to the onAdRequestFailed method in AdListener, except for SUCCESS. Mediation adaptors should use these result codes to inform the AppNexus SDK of success or failure. Note that the result code passed to the app developer signifies the final result of an ad request, not each individual result passed by mediation networks.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      INTERNAL_ERROR
      An internal error is detected in the interacting with the third-party SDK.
      INVALID_REQUEST
      The ad request failed due to an invalid configuration (for example, size or placement ID not set).
      MEDIATED_SDK_UNAVAILABLE
      Used internally when the third-party SDK is not available.
      NETWORK_ERROR
      The ad request failed due to a network error.
      SUCCESS
      The ad loaded successfully.
      UNABLE_TO_FILL
      The network did not return an ad in this call.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static ResultCode valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ResultCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SUCCESS

        public static final ResultCode SUCCESS
        The ad loaded successfully.
      • INVALID_REQUEST

        public static final ResultCode INVALID_REQUEST
        The ad request failed due to an invalid configuration (for example, size or placement ID not set).
      • UNABLE_TO_FILL

        public static final ResultCode UNABLE_TO_FILL
        The network did not return an ad in this call.
      • MEDIATED_SDK_UNAVAILABLE

        public static final ResultCode MEDIATED_SDK_UNAVAILABLE
        Used internally when the third-party SDK is not available.
      • NETWORK_ERROR

        public static final ResultCode NETWORK_ERROR
        The ad request failed due to a network error.
      • INTERNAL_ERROR

        public static final ResultCode INTERNAL_ERROR
        An internal error is detected in the interacting with the third-party SDK.
    • Method Detail

      • values

        public static ResultCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResultCode c : ResultCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResultCode valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null

  • No labels