Skip to main content

Open Measurement (OM)

OpenMeasurement SDK is an open-source solution for measuring ad impressions in the digital advertising industry. It provides a standardized way for ad verification companies and advertisers to collect, transmit, and receive impression data from digital ads. The SDK helps to ensure accurate measurement of ad impressions and supports viewability, verification, and fraud detection efforts.

Configuration

AttributeTypeRequiredDescription
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)
const config = {
...
plugins: {
...
openMeasurement: {
enabled: true,
},
...
},
...
};
const player = new lura.Player();
player.setConfig(config);

To verify your ads with Open Measurement SDK, please insert the following into your VAST.
VAST4.1+
<AdVerifications>
<Verification vendor="”company.com-omid”">
<JavaScriptResource apiFramework="omid" browserOptional="”true”">
<![CDATA[https://verification.com/omid_verification.js]]>
</JavaScriptResource>
<TrackingEvents>
<Tracking event="verificationNotExecuted">
<![CDATA[https://verification.com/trackingur/[REASON]l]]>
</Tracking>
</TrackingEvents>
<VerificationParameters>
<![CDATA[verification params key value pairs]]>
</VerificationParameters>
</Verification>
</AdVerifications>

For older versions of VAST (2.0, 3.0, 4.0), verification code should be loaded using the <Extensions> node

VAST4.0 and earlier
...
<Extensions>
<Extension type="AdVerifications">
<AdVerifications>
<Verification vendor="”company.com-omid”">
<JavaScriptResource apiFramework="omid" browserOptional="true">
<![CDATA[https://verification.com/omid_verification.js]]>
</JavaScriptResource>
<TrackingEvents>
<Tracking event="verificationNotExecuted">
<![CDATA[https://verification.com/trackingurl]]>
</Tracking>
</TrackingEvents>
<VerificationParameters>
<![CDATA[verification params key value pairs]]>
</VerificationParameters>
</Verification>
</AdVerifications>
</Extension>
</Extensions>
...