Lets you control the rules for choosing the AccessMode for an ad. The player will try to match from the most restrictive (limited) to the least restricted (full) and will take the first matching access mode.

interface OmSdkAccessModeRules {
    creative?: RegExp[] | OmidVerificationVendor[];
    domain?: RegExp[] | OmidVerificationVendor[];
    full?: RegExp[] | OmidVerificationVendor[];
    limited?: RegExp[] | OmidVerificationVendor[];
}

Properties

creative?: RegExp[] | OmidVerificationVendor[]

The verification script and creative are sandboxed from the publisher page. However, the script has direct access to the creative. Has no effect when using the IMA ad module.

domain?: RegExp[] | OmidVerificationVendor[]

The verification script is sandboxed and cannot access the creative or publisher page. However, the script is loaded in such a way that it can directly confirm what publisher domain it is on.

full?: RegExp[] | OmidVerificationVendor[]

The verification script has direct access to the creative and the publisher page.

limited?: RegExp[] | OmidVerificationVendor[]

The verification script is sandboxed and cannot access the creative or publisher page, and cannot directly confirm what publisher domain it is on.