Optional
contentAllows you to customize the current content url used. This can be useful when the same urls with different parameters need to be included under the same content url for easier tracking.
If the content url is not provided the default current href will be used.
Optional
onBy default accessMode will be set as AccessMode.FULL for all requests if nothing is provided.
const rules: OmSdkAccessModeRules = {
limited: [new RegExp('examplevendor1\.com/.*$')],
full: [/examplevendor2\.com/],
}
const omSdkTracker: OmSdkTracker = {
onAccessMode: _ad => rules,
...
}
The partner name associated with your OM SDK account
The version associated with your OM SDK account
Optional
serviceBy default, the OM SDK Session Client Library will assume the Service Script is present
in the same frame the library is loaded in. Use this config to override the behavior.
Default is top
to indicate that window.top
shall be used.
Optional
verificationBy default it will use an empty array. Allows loading of verification urls.
const adConfig: AdvertisingConfig = {
adBreaks: [
// your ads here
],
trackers: {
omSdk: {
partnerName: '<yourOmSdkPartnerName>',
partnerVersion: '<yourOmSdkParnterVersion>',
verificationResources: [
{
validationScriptUrl:
'./Validation-Script/omid-validation-verification-script-v1.js',
},
],
},
},
};
Generated using TypeDoc
You will have to include the AdvertisingOmSdk module into the player before creating an instance.
Example