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
enabledBooleanNoEnable the plugin (Defaults to true if no value is given.)
val luraConfiguration = LuraConfiguration(
plugins = LuraPluginsConfigurations(
openMeasurement = OpenMeasurementConfiguration()
)
)

playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)

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>
...