OMIDImpressionType

Objective-C

enum OMIDImpressionType : NSUInteger {}

Swift

enum OMIDImpressionType : UInt, @unchecked Sendable

The criterion for an ad session’s OMID impression event. Declaring an impression type makes it easier to understand discrepancies between measurers of the ad session, since many metrics depend on impressions.

  • ImpressionType will be set by JavaScript session script. Integrations must also pass OMIDJavaScriptOwner for impressionOwner.

    Declaration

    Objective-C

    OMIDImpressionTypeDefinedByJavaScript = 1

    Swift

    case definedByJavaScript = 1
  • The integration is not declaring the criteria for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeUnspecified = 2

    Swift

    case unspecified = 2
  • The integration is using count-on-download criteria for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeLoaded = 3

    Swift

    case loaded = 3
  • The integration is using begin-to-render criteria for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeBeginToRender = 4

    Swift

    case beginToRender = 4
  • The integration is using one-pixel criteria (when the creative has at least 1 visible pixel on screen) for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeOnePixel = 5

    Swift

    case onePixel = 5
  • The integration is using viewable criteria (1 second for display, 2 seconds while playing for video, and at least 50% of the creative is visible) for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeViewable = 6

    Swift

    case viewable = 6
  • The integration is using audible criteria (2 continuous second of media playback with non-zero volume) for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeAudible = 7

    Swift

    case audible = 7
  • The integration’s criteria uses none of the above criteria for the OMID impression.

    Declaration

    Objective-C

    OMIDImpressionTypeOther = 8

    Swift

    case other = 8