Lets you control the rules for chosing 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[];
    domain?: RegExp[];
    full?: RegExp[];
    limited?: RegExp[];
}

Properties

creative?: RegExp[]

The verification script and creative are sandboxed from the publisher page. However, the script has direct access to the creative.

domain?: RegExp[]

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[]

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

limited?: RegExp[]

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