Open Measurement を有効にする
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
IMA SDK for HTML5 には、Open Measurement(OM)SDK が含まれています。これは、サードパーティによる視認性と検証の測定を可能にするために Interactive Advertising Bureau(IAB)によって開発された業界標準です。IMA SDK for HTML5 を使用する場合、含まれる OM SDK は VAST 広告タグ内の <AdVerifications>
タグを自動的に解析し、OMID API を使用して指定された測定ベンダーに視認性データを送信します。必要に応じて、リクエストごとにアクセスモード ルールを設定して、検証スクリプトがアクセスできるコンテンツを制御できます。
IMA SDK は OM SDK v1.4 をサポートしています。
前提条件
VAST 4.1 以降を使用している場合は、<AdVerifications>
を使用して検証情報を提供するように広告を設定する必要があります。以前のバージョンの VAST を使用している広告では、<Extension type="AdVerifications">
を使用する必要があります。
広告がアド マネージャー経由でトラフィックされている場合は、アド マネージャー ネットワークの視認性データの提供元を設定し、その視認性データの提供元を広告申込情報に割り当てます。詳細については、アド マネージャー ネットワークで視認性データの提供元を設定するをご覧ください。
アクセスモード
OM SDK は、検証スクリプトがアクセスできる範囲を制御する 4 つの異なるアクセスモードで検証スクリプトの実行をサポートしています。
FULL
: 検証スクリプトは、クリエイティブとパブリッシャー ページに直接アクセスできます。
CREATIVE
: 検証スクリプトとクリエイティブは、パブリッシャー ページからサンドボックス化されます。ただし、スクリプトはクリエイティブに直接アクセスできます。
LIMITED
: 検証スクリプトはサンドボックス化されているため、クリエイティブ ページやパブリッシャー ページにアクセスできず、パブリッシャーのドメインがどこにあるかを直接確認できません。
視認性測定プロバイダによっては、すべてのアクセス モードがサポートされていない場合があります。サポートされているモードを確認するには、ビューアビリティ プロバイダにお問い合わせください。以前、IMA は DOMAIN
アクセス モードをサポートしていましたが、デフォルトは LIMITED
モードになりました。
リクエストのアクセスモード ルールを設定する
アクセスモード ルールは StreamRequest
レベルで設定する必要があります。検証スクリプト プロバイダごとに異なるアクセスモードを設定するには、各 OmidVerificationVendor
を上記のいずれかのアクセスモードにマッピングする辞書を渡します。OmidVerificationVendor.OTHER
フィールドは、ディクショナリに明示的に含まれていないすべてのベンダーのデフォルトのアクセス モードを設定するために使用されます。アクセスモード ルールが指定されていない場合、検証スクリプトはベンダーの LIMITED
アクセスモードで実行されます。
GOOGLE
を google.ima.dai.api.OmidAccessMode.FULL
に設定する次の例をご覧ください。OmidVerificationVendor
に記載されているプロバイダを含む、他のすべてのプロバイダは、デフォルトで OmidVerificationVendor.OTHER
の設定方法になります。
request.omidAccessModeRules = {};
request.omidAccessModeRules[google.ima.dai.api.OmidVerificationVendor.GOOGLE]
= google.ima.dai.api.OmidAccessMode.FULL;
request.omidAccessModeRules[google.ima.dai.api.OmidVerificationVendor.OTHER]
= google.ima.dai.api.OmidAccessMode.LIMITED;
CREATIVE
アクセス モードを実装するには、次の両方を行う必要があります。
サイトの他の部分から分離された安全な iframe で動画プレーヤーをサンドボックス化します。
視認性パートナーの OmidAccessMode
を FULL
に設定します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eThe IMA SDK for HTML5 utilizes the Open Measurement (OM) SDK for third-party viewability and verification measurement, automatically sending data to specified vendors.\u003c/p\u003e\n"],["\u003cp\u003eAds must be configured to use \u003ccode\u003e<AdVerifications>\u003c/code\u003e tags within VAST for the OM SDK to function correctly.\u003c/p\u003e\n"],["\u003cp\u003eFour access modes (FULL, CREATIVE, DOMAIN, LIMITED) control the level of access verification scripts have to creative content and publisher pages.\u003c/p\u003e\n"],["\u003cp\u003eAccess mode rules are set at the \u003ccode\u003eStreamRequest\u003c/code\u003e level and can be customized for different verification vendors.\u003c/p\u003e\n"],["\u003cp\u003eImplementing \u003ccode\u003eCREATIVE\u003c/code\u003e access mode requires sandboxing the video player in a secure iframe and setting the \u003ccode\u003eOmidAccessMode\u003c/code\u003e to \u003ccode\u003eFULL\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["The IMA SDK for HTML5 includes the\n[Open Measurement (OM) SDK](//iabtechlab.com/standards/open-measurement-sdk/),\nan industry standard developed by the\n[Interactive Advertising Bureau (IAB)](//www.iab.com/) to enable third-party\nviewability and verification measurement. When using the IMA SDK for HTML5, the\nincluded OM SDK automatically parses the `\u003cAdVerifications\u003e` tag within VAST ad\ntags and sends viewability data to the specified measurement vendors using the\nOMID API. You can optionally set access mode rules for each request to control\nwhat content the verification script can access.\n\nThe IMA SDK supports OM SDK v1.4.\n\nPrerequisites\n\n- If using VAST 4.1 or higher, ads must be configured to supply verification\n using `\u003cAdVerifications\u003e`. If using previous VAST versions, ads must use\n `\u003cExtension type=\"AdVerifications\"\u003e`.\n\n- If your ads are trafficked through Ad Manager, configure a viewability\n provider for your Ad Manager network and assign that viewability provider to\n your line item. For more information, see\n [Configure a viewability provider for your Ad Manager network](//support.google.com/admanager/answer/9025968#configure-a-viewability-provider).\n\nAccess modes\n\nThe OM SDK supports running verification scripts in four different access modes\nwhich controls how much the verification script can access:\n\n- `FULL`: The verification script has direct access to the creative and the\n publisher page.\n\n- `CREATIVE`: The verification script and creative are sandboxed from the\n publisher page. However, the script has direct access to the creative.\n\n- `LIMITED`: The verification script is sandboxed and cannot access the creative\n or publisher page, and cannot directly confirm what publisher domain it is on.\n\nSome viewability providers might not support all access modes. Contact your\nviewability providers to verify which modes are supported. Previously, IMA\nsupported a `DOMAIN` access mode, which now defaults to `LIMITED` mode.\n\nSet the access mode rules for a request\n\n\u003cbr /\u003e\n\nAccess mode rules must be set at the\n[`StreamRequest`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/StreamRequest#omidAccessModeRules)\nlevel. To set different access modes for different verification script\nproviders, pass a dictionary that maps each\n[`OmidVerificationVendor`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/global#OmidVerificationVendor)\nto one of the access modes listed above. The `OmidVerificationVendor.OTHER`\nfield is used to set the default access mode for all vendors not explicitly\nincluded in the dictionary. If no access mode rules are specified, verification\nscripts run in `LIMITED` access mode for vendors.\n\nSee the following example which sets `GOOGLE` to\n`google.ima.dai.api.OmidAccessMode.FULL`. All other providers, including those\nlisted in\n[`OmidVerificationVendor`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/global#OmidVerificationVendor),\ndefault to how `OmidVerificationVendor.OTHER` is set. \n\n request.omidAccessModeRules = {};\n request.omidAccessModeRules[google.ima.dai.api.OmidVerificationVendor.GOOGLE]\n = google.ima.dai.api.OmidAccessMode.FULL;\n request.omidAccessModeRules[google.ima.dai.api.OmidVerificationVendor.OTHER]\n = google.ima.dai.api.OmidAccessMode.LIMITED;\n\nTo implement `CREATIVE` access mode, you must follow both of the following\nsteps:\n\n1. Sandbox your video player in a secure iframe, isolated from the rest of your\n site.\n\n2. Set the `OmidAccessMode` for your viewability partner to `FULL`."]]