Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CreativeAssetSelection

import type { CreativeAssetSelection } from "https://googleapis.deno.dev/v1/dfareporting:v4.ts";

Encapsulates the list of rules for asset selection and a default asset in case none of the rules match. Applicable to INSTREAM_VIDEO creatives.

interface CreativeAssetSelection {
defaultAssetId?: bigint;
rules?: Rule[];
}

§Properties

§
defaultAssetId?: bigint
[src]

A creativeAssets[].id. This should refer to one of the parent assets in this creative, and will be served if none of the rules match. This is a required field.

§
rules?: Rule[]
[src]

Rules determine which asset will be served to a viewer. Rules will be evaluated in the order in which they are stored in this list. This list must contain at least one rule. Applicable to INSTREAM_VIDEO creatives.