OMID 分册导航
枚举清单
清单本页清单由 scripts/gen-omid-spec.mjs 自 IAB Tech Lab 官方源生成,描述为官方英文原文;采集基线见页尾。 规范收录数据保留英文原文;已提供的中文译文为初稿(draft),打开中英对照可查看原文。
定位与职责
开放测量接口定义(Open Measurement Interface Definition,OMID)全部枚举常量的机器可读清单:事件类型、曝光判定口径、创意类型、访问模式、播放器状态、遮挡成因等,含官方描述原文与废弃标注(如 AccessMode.DOMAIN 于 1.5.4 移除、AdEventType.VIDEO 被 MEDIA 取代)。
- 枚举
- 26
- 取值
- 129
- 规范版本
- OMID 1.6
- 当前基线
- 2026-09-22
事件与错误类型
AdEventTypejs · 22
所有 OMID 广告事件类型的清单。ENList of all OMID ad event types.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| IMPRESSION | impression | OMID 提供方已为本次广告记录曝光。对视频广告而言,该事件对应 VAST 的 <Impression>,应与其同时触发。ENThe OMID provider has recorded an impression for this ad. For video ads, this corresponds to the VAST <Impression> and should be fired simultaneously with that event. Constant has value 'impression'.译稿校对中 |
| LOADED | loaded | OM 集成方已加载展示、视频或音频广告创意的素材。对视频与音频广告而言,创意媒体已缓冲至可随即播放的程度。对应 VAST 的 'loaded' 事件。ENThe OM integration has loaded the display, video, or audio ad creative's assets. For video and audio ads, it has buffered the creative’s media to the extent that it is ready to play the media. Corresponds to the VAST 'loaded' event. Constant has value 'loaded'.译稿校对中 |
| GEOMETRY_CHANGE | geometryChange | 几何状态发生变化。具体而言,每当广告容器状态变化、致使视口(viewport)或广告视图(ad view)的任一字段相对上次上报的取值发生改变时,都会触发该事件。事件提供已注册广告视图的完整几何数据,包含遮挡(obstruction)以及检测到的成因码(reason code)。事件数据中上报的所有尺寸与位置单位均为独立像素(independent pixels),所有坐标均相对于屏幕坐标。ENThe geometry state has changed. Specifically, this event is fired every time the ad container state changes such that any field of the viewport or ad view would change value from the previous report. Provides full geometry data of the registered ad view including obstructions along with any detected reason codes. All size and location units reported in the event data are in independent pixels, and all coordinates are relative to the screen coordinates. Constant has value 'geometryChange'.译稿校对中 |
| SESSION_START | sessionStart | 该事件在 OMID 提供方完成初始化、且已具备填充事件数据中 'context' 与 'verificationParameters' 所需数据时立即触发。它不表示广告已渲染或视频已开始播放,仅标志广告会话的初始化。它始终是一个会话中触发的第一个事件。ENThis event fires as soon as the OMID provider has initialized and has the necessary data to fill in the 'context' and 'verificationParameters' of the event data. It does not imply that the ad has rendered or the video has started playing; it only marks the initialization of the of the ad session. This is always the first event fired for a session. Constant has value 'sessionStart'.译稿校对中 |
| SESSION_ERROR | sessionError | 该事件在发生播放、渲染或其他与广告相关的错误之后触发,此类错误可能导致会话终止,也可能可恢复。对于不可恢复的错误,该事件不替代 'sessionFinish'——在 'sessionError' 事件之后仍必须触发 'sessionFinish'。ENThis event is fired following a playback, rendering, or other ad-related error, which may be session terminal or recoverable. In the case of non-recoverable errors, this event does not replace 'sessionFinish', which still must be fired following the 'sessionError' event. Constant has value 'sessionError'.译稿校对中 |
| SESSION_FINISH | sessionFinish | 该事件在广告会话终止时触发,表示验证资源应开始清理并处理会话结束上报。它始终是一个会话中发送的最后一个事件。ENThis event is fired when the ad session has terminated and indicates that verification resources should start clean up and handle end-of-session reporting. This is the always the last event sent for a session. Constant has value 'sessionFinish'.译稿校对中 |
| MEDIA | media | 便捷简写,一次注册所有媒体事件:'loaded'、'start'、'firstQuartile'、'midpoint'、'thirdQuartile'、'complete'、'pause'、'resume'、'bufferStart'、'bufferFinish'、'skipped'、'volumeChange'、'playerStateChange' 与 'adUserInteraction'。OM SDK 从不发送该类型的事件。ENConvenient shorthand that registers for all media events: 'loaded', 'start', 'firstQuartile', 'midpoint', 'thirdQuartile', 'complete', 'pause', 'resume', 'bufferStart', 'bufferFinish', 'skipped', 'volumeChange', 'playerStateChange', and 'adUserInteraction'. OM SDK never sends events with this type. Constant has value 'media'.译稿校对中 |
| VIDEO已废弃 | video | 注册与 'media' 相同的事件。已被取值 'media' 取代;OM SDK 为向后兼容仍继续支持该取值。OM SDK 从不发送该类型的事件。ENRegisters for the same events as 'media'. Superseded by value 'media'; OM SDK continues to support this value for backwards compatibility. OM SDK never sends events with this type. Constant has value 'video'.译稿校对中 |
| START | start | 仅媒体(media-only)事件。播放器开始播放视频广告创意。对应 VAST 的 'start' 事件。ENMedia-only event. The player began playback of the video ad creative. Corresponds to the VAST 'start' event. Constant has value 'start'.译稿校对中 |
| FIRST_QUARTILE | firstQuartile | 仅媒体(media-only)事件。创意已连续播放至少达到总时长的 25%。对应 VAST 的 'firstQuartile' 事件。ENMedia-only event. The creative played continuously for at least 25% of the total duration. Corresponds to the VAST 'firstQuartile' event. Constant has value 'firstQuartile'.译稿校对中 |
| MIDPOINT | midpoint | 仅媒体(media-only)事件。创意已连续播放至少达到总时长的 50%。对应 VAST 的 midpoint 事件。ENMedia-only event. The creative played continuously for at least 50% of the total duration. Corresponds to the VAST midpoint event. Constant has value 'midpoint'.译稿校对中 |
| THIRD_QUARTILE | thirdQuartile | 仅媒体(media-only)事件。创意已连续播放至少达到总时长的 75%。对应 VAST 的 'thirdQuartile' 事件。ENMedia-only event. The creative played continuously for at least 75% of the total duration. Corresponds to the VAST 'thirdQuartile' event. Constant has value 'thirdQuartile'.译稿校对中 |
| COMPLETE | complete | 仅媒体(media-only)事件。创意已播放至结尾,达到总时长的 100%。对应 VAST 的 'complete' 事件。ENMedia-only event. The creative played to the end for 100% of the total duration. Corresponds to the VAST 'complete' event. Constant has value 'complete'.译稿校对中 |
| PAUSE | pause | 仅媒体(media-only)事件。因用户交互,播放以之后可恢复的方式停止。对应 VAST 的 'pause' 事件。ENMedia-only event. Playback was stopped in a way from which it may later be resumed, due to user interaction. Corresponds to the VAST 'pause' event. Constant has value 'pause'.译稿校对中 |
| RESUME | resume | 仅媒体(media-only)事件。在由用户发起的暂停之后,播放恢复。对应 VAST 的 'resume' 事件。ENMedia-only event. Playback resumed following a user-originated pause. Corresponds to the VAST 'resume' event. Constant has value 'resume'.译稿校对中 |
| BUFFER_START | bufferStart | 仅媒体(media-only)事件。因用户交互以外的原因(通常是可用视频数据不足而缓冲),播放以之后可恢复的方式停止。ENMedia-only event. Playback was stopped in a way from which it may later be resumed, due to a cause other than user interaction (generally buffering from insufficient available video data). Constant has value 'bufferStart'.译稿校对中 |
| BUFFER_FINISH | bufferFinish | 仅媒体(media-only)事件。在非用户发起的暂停之后,播放已恢复。ENMedia-only event. Playback has resumed following a non-user-originated pause. Constant has value 'bufferFinish'.译稿校对中 |
| SKIPPED | skipped | 仅媒体(media-only)事件。用户触发了某个控件,导致广告播放终止。对应 VAST 的 'skip' 事件。ENMedia-only event. The user activated a control which caused ad playback to terminate. Corresponds to the VAST 'skip' event. Constant has value 'skipped'.译稿校对中 |
| VOLUME_CHANGE | volumeChange | 仅媒体(media-only)事件。播放器和/或设备的音量发生变化。ENMedia-only event. The player and/or device volume has changed. Constant has value 'volumeChange'.译稿校对中 |
| PLAYER_STATE_CHANGE | playerStateChange | 仅媒体(media-only)事件。播放器切换了播放状态,通常是尺寸变化,其中包括从非全屏切换到全屏状态。默认假定视频在 start 时处于 normal 状态。若播放开始时播放器已处于 minimized 或 fullscreen 状态,则会在 start 之后立即触发该事件,以反映当前状态。ENMedia-only event. The player has changed playback states, generally to resize. This includes moving from non-fullscreen to fullscreen state. The assumption is that at start time the video is in the normal state. If playback begins when the player is in a minimized or fullscreen state, then this event is fired immediately following start in order to reflect the current state. Constant has value 'playerStateChange'.译稿校对中 |
| AD_USER_INTERACTION | adUserInteraction | 用户在标准播放控件之外与广告发生了交互(例如点击广告以加载广告落地页)。注意:若该交互导致播放暂停,则应在该事件之后另行触发一个 'pause' 事件。ENThe user has interacted with the ad outside of any standard playback controls (e.g. clicked the ad to load an ad landing page). NOTE: If this interaction causes playback to pause, then this event should be followed by a separate 'pause' event. Constant has value 'adUserInteraction'.译稿校对中 |
| STATE_CHANGE已废弃 | stateChange | 不属于 OMID API,OM SDK 从不发送该类型的事件。该常量将在 OM SDK 的未来版本中被移除。ENNot part of OMID API, and OM SDK never sends events with this type. This constant will be removed in a future release of OM SDK.译稿校对中 |
MediaEventTypejs · 14
表示媒体事件的广告事件类型枚举。ENEnum for ad events type representing media events.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| LOADED | loaded | — |
| START | start | — |
| FIRST_QUARTILE | firstQuartile | — |
| MIDPOINT | midpoint | — |
| THIRD_QUARTILE | thirdQuartile | — |
| COMPLETE | complete | — |
| PAUSE | pause | — |
| RESUME | resume | — |
| BUFFER_START | bufferStart | — |
| BUFFER_FINISH | bufferFinish | — |
| SKIPPED | skipped | — |
| VOLUME_CHANGE | volumeChange | — |
| PLAYER_STATE_CHANGE | playerStateChange | — |
| AD_USER_INTERACTION | adUserInteraction | — |
ErrorTypejs · ios · iOS OMIDErrorType · 3
'sessionError' 事件中错误通知的类型。ENThe types of error notifications in 'sessionError' events.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| GENERIC | generic | 集成方向验证脚本发布通用(generic)错误。用作非媒体类问题的兜底类型。ENThe integration is publishing a generic error to verification scripts. Used as a catch-all for non-media issues. Constant has value 'generic'.译稿校对中 |
| VIDEO已废弃 | video | 集成方向验证脚本发布视频错误,用于与视频相关的渲染或加载错误。该错误类型已被 'media' 取代。ENThe integration is publishing a video error to verification scripts. Used for video-related rendering or loading errors. This type of error has been superseded by 'media'. Constant has value 'video'.译稿校对中 |
| MEDIA | media | 集成方向验证脚本发布媒体错误,用于与媒体相关的渲染或加载错误。ENThe integration is publishing a media error to verification scripts. Used for media-related rendering or loading errors. Constant has value 'media'.译稿校对中 |
InteractionTypejs · ios · iOS OMIDInteractionType · 2
媒体播放器中用户与广告交互的类型。ENThe types of user interactions with ads in a media player.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| CLICK | click | 用户点击以加载广告的落地页。ENThe user clicked to load the ad's landing page. Constant has value 'click'.译稿校对中 |
| INVITATION_ACCEPT | invitationAccept | 用户与广告内容互动,以加载一个独立的体验。ENThe user engaged with ad content to load a separate experience. Constant has value 'invitationAccept'.译稿校对中 |
会话、所有权与访问模式
AdSessionTypejs · 3
广告会话类型(Ad Session Type)枚举。可能取值包括 "native"、"html" 或 "javascript"。ENEnum for Ad Session Type. Possible values include; "native" or "html" or "javascript".译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| NATIVE | native | — |
| HTML | html | — |
| JAVASCRIPT | javascript | — |
SessionOwnerjs · ios · iOS OMIDOwner · 2
描述会话归属方(即启动并结束会话的一方)的枚举。ENEnum describing who owns a session (starts and finishes it).译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| JAVASCRIPT | javascript | — |
| NATIVE | native | — |
EventOwnerjs · ios · iOS OMIDOwner · 3
描述事件类型归属方的枚举。ENEnum describing who owns an event type.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| NATIVE | native | — |
| JAVASCRIPT | javascript | — |
| NONE | none | — |
AccessModejs · 3
沙箱模式(sandboxing mode)枚举。FULL 同时意味着验证代码可访问创意元素,且 OMSDK 会在 context 中通过 video/slotElement 提供该创意元素的引用。ENEnum for sandboxing mode. FULL implies both that verification code has access to the creative element and that OMSDK will provide a reference to that creative element via video/slotElement in the context.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| FULL | full | — |
| DOMAIN已废弃 | domain | — |
| LIMITED | limited | — |
Environmentjs · 2
OM SDK JS 所处运行环境(Environment)枚举。ENEnum for Environment OM SDK JS is running in.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| APP | app | — |
| WEB | web | — |
CommunicationTypejs · 3
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| NONE | NONE | — |
| DIRECT | DIRECT | — |
| POST_MESSAGE | POST_MESSAGE | — |
MessageMethodjs · 1
发送给 OM SDK 服务或由其发出的消息所使用的 `method` 取值。"method" 标识该消息的用途,并决定其参数将如何被解释。TODO(OMSDK-930):补全客户端与服务之间通信所用的全部 method。ENValues for the `method` of a particular message sent to or from the OM SDK service. The "method" identifies the purpose of the message and determines how its arguments will be interpreted. TODO(OMSDK-930): Include all methods used for client-service communication.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| IDENTIFY_SERVICE_WINDOW | identifyServiceWindow | — |
OmidImplementerjs · 1
提供 OMID 的一方的标识。ENIdentifier of party providing OMID.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| OMSDK | omsdk | — |
创意、曝光口径与播放状态
CreativeTypejs · ios · iOS OMIDCreativeType · 5
广告会话中所测量的广告创意类型。ENThe type of ad creative being measured in the ad session.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| DEFINED_BY_JAVASCRIPT | definedByJavaScript | 创意类型需由 JavaScript 会话脚本设置。ENCreative type needs to be set by JavaScript session script. Constant has value 'definedByJavaScript'.译稿校对中 |
| HTML_DISPLAY | htmlDisplay | 以展示(display)方式测量、以 HTML 形式投放的创意。在 webview 中渲染。验证脚本既可以包裹创意,也可以置于 resources 中。ENCreatives measured using display methodology that are trafficked as HTML. Rendered in webview. Verification scripts can wrap creative or be in resources. Constant has value 'htmlDisplay'.译稿校对中 |
| NATIVE_DISPLAY | nativeDisplay | 以展示(display)方式测量、以 JSON 或其他结构化数据格式投放的创意。由原生代码渲染。验证脚本只能置于 resources 中。ENCreatives measured using display methodology that are trafficked as JSON or other format for structured data. Rendered by native code. Verification scripts can be in resources only. Constant has value 'nativeDisplay'.译稿校对中 |
| VIDEO | video | 以视频方式测量的创意。可在多种广告位形态中渲染,如内流(instream)、外流(outstream)、横幅(banner)、信息流(in-feed)等。验证脚本只能置于 resources 中。ENCreatives measured using video methodology. Rendered in many kinds of placements (such as instream, outstream, banner, in-feed, etc.). Verification scripts can be in resources only. Constant has value 'video'.译稿校对中 |
| AUDIO | audio | 以音频方式测量的创意。OMID 不提供任何可见性(visibility)数据。验证脚本只能置于 resources 中。ENCreatives measured using audio methodology. OMID does not provide any visibility data. Verification scripts can be in resources only. Constant has value 'audio'.译稿校对中 |
ImpressionTypejs · ios · iOS OMIDImpressionType · 8
广告会话 OMID 曝光事件的判定口径(criterion)。声明曝光类型可让人更容易理解同一广告会话各测量方之间的差异,因为许多指标都依赖曝光。ENThe 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.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| DEFINED_BY_JAVASCRIPT | definedByJavaScript | 曝光类型需由 JavaScript 会话脚本设置。ENImpression type needs to be set by JavaScript session script. Constant has value 'definedByJavaScript'.译稿校对中 |
| UNSPECIFIED | unspecified | 集成方未声明 OMID 曝光的判定口径。这是 OMID 1.2 的默认曝光类型,也是未在广告会话中设置曝光类型的集成方的默认类型。ENThe integration is not declaring the criteria for the OMID impression. This is the default impression type for OMID 1.2 and for integrations that don't set an impression type in an ad session. Constant has value 'unspecified'.译稿校对中 |
| LOADED | loaded | 集成方以下载即计数(count-on-download)口径记 OMID 曝光。ENThe integration is using count-on-download criteria for the OMID impression. Constant has value 'loaded'.译稿校对中 |
| BEGIN_TO_RENDER | beginToRender | 集成方以开始渲染(begin-to-render)口径记 OMID 曝光。ENThe integration is uing begin-to-render criteria for the OMID impression. Constant has value 'beginToRender'.译稿校对中 |
| ONE_PIXEL | onePixel | 集成方以一个像素(one-pixel)口径记 OMID 曝光。ENThe integration is using one-pixel criteria for the OMID impression. Constant has value 'onePixel'.译稿校对中 |
| VIEWABLE | viewable | 集成方以可见(viewable)口径记 OMID 曝光:展示广告 1 秒、视频广告 2 秒。ENThe integration is using viewable criteria (1 second for display, 2 seconds for video) for the OMID impression. Constant has value 'viewable'.译稿校对中 |
| AUDIBLE | audible | 集成方以可听(audible)口径记 OMID 曝光:播放 2 秒且音量非零。ENThe integration is using audible criteria (2 seconds of playback with non-zero volume) for the OMID impression. Constant has value 'audible'.译稿校对中 |
| OTHER | other | 集成方记 OMID 曝光所用的口径不属于上述任何一种。ENThe integration's criteria uses none the above for the OMID impression. Constant has value 'other'.译稿校对中 |
MediaTypejs · 2
广告媒体类型。ENType of ad media.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| DISPLAY | display | — |
| VIDEO | video | — |
VideoPositionjs · ios · android · iOS OMIDPosition · Android Position · 4
广告相对于媒体内容的位置。ENThe positions of ads relative to media content.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| PREROLL | preroll | 广告在媒体内容之前播放。ENThe ad plays preceding media content. Constant has value 'preroll'.译稿校对中 |
| MIDROLL | midroll | 广告在媒体内容中间播放,或在两段独立的媒体内容之间播放。ENThe ad plays in the middle of media content, or between two separate content media. Constant has value 'midroll'.译稿校对中 |
| POSTROLL | postroll | 广告在媒体内容之后播放。ENThe ad plays following media content. Constant has value 'postroll'.译稿校对中 |
| STANDALONE | standalone | 广告独立于任何媒体内容播放。ENThe ad plays independently of any media content. Constant has value 'standalone'.译稿校对中 |
VideoPlayerStatejs · ios · android · iOS OMIDPlayerState · Android PlayerState · 5
广告媒体播放器的播放状态。ENThe playback states of the ad media player.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| MINIMIZED | minimized | 播放器被折叠至视频不可见。该状态下视频可能仍在推进,也可能已停止,声音仍可能可听。这专指页面上视频播放器的状态,而非浏览器窗口的状态。ENThe player is collapsed in such a way that the video is hidden. The video may or may not still be progressing in this state, and sound may be audible. This refers specifically to the video player state on the page, and not the state of the browser window. Constant has value 'minimized'.译稿校对中 |
| COLLAPSED | collapsed | 播放器已从原始尺寸缩小。视频仍有可能可见。ENThe player has been reduced from its original size. The video is still potentially visible. Constant has value 'collapsed'.译稿校对中 |
| NORMAL | normal | 播放器的默认播放尺寸。ENThe player's default playback size. Constant has value 'normal'.译稿校对中 |
| EXPANDED | expanded | 播放器已从原始尺寸放大。ENThe player has expanded from its original size. Constant has value 'expanded'.译稿校对中 |
| FULLSCREEN | fullscreen | 播放器已进入全屏模式。ENThe player has entered fullscreen mode. Constant has value 'fullscreen'.译稿校对中 |
SupportedFeaturesjs · 2
OM SDK JS 所支持特性的枚举。ENEnum for features supported by OM SDK JS.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| CONTAINER | clid | — |
| VIDEO | vlid | — |
几何、遮挡与视图标记
Reasonjs · 11
可见性(viewability)计算结果的成因枚举。ENEnum for reasons for viewability calculation results.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| NOT_FOUND | notFound | — |
| BACKGROUNDED | backgrounded | — |
| PICTURE_IN_PICTURE | pictureInPicture | — |
| DEVICE_LOCKED | deviceLocked | — |
| VIEWPORT | viewport | — |
| OBSTRUCTED | obstructed | — |
| CLIPPED | clipped | — |
| UNMEASURABLE | unmeasurable | — |
| NO_WINDOW_FOCUS | noWindowFocus | — |
| NO_OUTPUT_DEVICE | noOutputDevice | — |
NativeViewKeysjs · 18
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| X | x | — |
| LEFT | left | — |
| Y | y | — |
| TOP | top | — |
| WIDTH | width | — |
| HEIGHT | height | — |
| AD_SESSION_ID | adSessionId | — |
| IS_FRIENDLY_OBSTRUCTION_FOR | isFriendlyObstructionFor | — |
| CLIPS_TO_BOUNDS | clipsToBounds | — |
| CHILD_VIEWS | childViews | — |
| END_X | endX | — |
| END_Y | endY | — |
| OBSTRUCTIONS | obstructions | — |
| OBSTRUCTION_CLASS | obstructionClass | — |
| OBSTRUCTION_PURPOSE | obstructionPurpose | — |
| OBSTRUCTION_REASON | obstructionReason | — |
| PIXELS | pixels | — |
| HAS_WINDOW_FOCUS | hasWindowFocus | — |
MeasurementStateChangeSourcejs · 2
状态变化来源枚举。ENEnum for state change sources.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| CONTAINER | container | — |
| CREATIVE | creative | — |
ElementMarkupjs · 1
DOM 元素的标记(mark-up)。ENMark-up for DOM elements.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| OMID_ELEMENT_CLASS_NAME | omid-element | — |
OMIDFriendlyObstructionTypeios · iOS OMIDFriendlyObstructionType · 4
允许的友好遮挡(friendly obstruction)用途清单。ENList of allowed friendly obstruction purposes.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| OMIDFriendlyObstructionMediaControls | 该友好遮挡与视频交互相关(如播放/暂停按钮)。ENThe friendly obstruction relates to interacting with a video (such as play/pause buttons).译稿校对中 | |
| OMIDFriendlyObstructionCloseAd | 该友好遮挡与关闭广告相关(如关闭按钮)。ENThe friendly obstruction relates to closing an ad (such as a close button).译稿校对中 | |
| OMIDFriendlyObstructionNotVisible | 该友好遮挡在视觉上并未遮挡广告,但因技术限制可能看似遮挡。ENThe friendly obstruction is not visibly obstructing the ad but may seem so due to technical limitations.译稿校对中 | |
| OMIDFriendlyObstructionOther | 该友好遮挡出于上述未描述的任何其他用途而形成遮挡。ENThe friendly obstruction is obstructing for any purpose not already described.译稿校对中 |
应用与设备状态
AppStatejs · 2
原生应用(native app)状态枚举。ENEnum for state of the native app.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| BACKGROUNDED | backgrounded | — |
| FOREGROUNDED | foregrounded | — |
DeviceLockStatejs · 2
原生设备锁屏状态(device lock state)枚举。ENEnum for device lock state of the native device.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| LOCKED | locked | — |
| UNLOCKED | unlocked | — |
DeviceCategoryjs · 4
OM SDK 所运行设备的类别枚举。ENEnum for category of device OM SDK is running on.译稿校对中
| 常量 | 字面值 | 官方描述 |
|---|---|---|
| CTV | ctv | — |
| DESKTOP | desktop | — |
| MOBILE | mobile | — |
| OTHER | other | — |
已废弃与被取代的取值
- AccessMode.DOMAIN = domain
DOMAIN access mode is no longer supported. Selecting DOMAIN access mode will result in LIMITED access mode being applied.
- AdEventType.VIDEO = video
Superseded by value 'media'; OM SDK continues to support this value for backwards compatibility.
- AdEventType.STATE_CHANGE = stateChange
This constant will be removed in a future release of OM SDK.
- ErrorType.VIDEO = video
This type of error has been superseded by 'media'.