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

DynamicRules

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

Contains dynamic rules information.

interface DynamicRules {
autoTargetedFieldIds?: number[];
customRules?: CustomRule[];
customValueFields?: CustomValueField[];
proximityFilter?: ProximityFilter;
remarketingValueAttributes?: RemarketingValueAttribute[];
rotationType?:
| "ROTATION_TYPE_UNKNOWN"
| "RANDOM"
| "OPTIMIZED"
| "WEIGHTED";
ruleType?:
| "RULE_SET_TYPE_UNKNOWN"
| "OPEN"
| "AUTO"
| "CUSTOM"
| "PROXIMITY_TARGETING";
weightFieldId?: number;
}

§Properties

§
autoTargetedFieldIds?: number[]
[src]

Optional. List of field IDs in this element that should be auto-targeted. Applicable when rule type is AUTO.

§
customRules?: CustomRule[]
[src]

Optional. The custom rules of the dynamic feed, only applicable when rule type is CUSTOM.

§
customValueFields?: CustomValueField[]
[src]

Optional. Mapping between field ID and custom key that are used to match for auto filtering.

§
proximityFilter?: ProximityFilter
[src]

Optional. The proximity targeting rules of the dynamic feed, only applicable when rule type is PROXIMITY_TARGETING.

§
remarketingValueAttributes?: RemarketingValueAttribute[]
[src]

Optional. The link between an element field ID and a list of user attribute IDs.

§
rotationType?: "ROTATION_TYPE_UNKNOWN" | "RANDOM" | "OPTIMIZED" | "WEIGHTED"
[src]

Optional. The rotation type to select from eligible rows. Rotation type only apply when the filtering rule results in more than one eligible rows.

§
ruleType?: "RULE_SET_TYPE_UNKNOWN" | "OPEN" | "AUTO" | "CUSTOM" | "PROXIMITY_TARGETING"
[src]

Optional. The type of the rule, the default value is OPEN.

§
weightFieldId?: number
[src]

Optional. The field ID for the feed that will be used for weighted rotation, only applicable when rotation type is WEIGHTED.