TargetingRule

@Serializable
data class TargetingRule(val conditions: Array<Condition>? = null, val percentageOptions: Array<PercentageOption>? = null, val servedValue: ServedValue? = null)(source)

Targeting rule.

Constructors

Link copied to clipboard
constructor(conditions: Array<Condition>? = null, percentageOptions: Array<PercentageOption>? = null, servedValue: ServedValue? = null)

Properties

Link copied to clipboard
@SerialName(value = "c")
val conditions: Array<Condition>? = null

The list of conditions (where there is a logical AND relation between the items).

Link copied to clipboard
@SerialName(value = "p")
val percentageOptions: Array<PercentageOption>? = null

The list of percentage options associated with the targeting rule or {@code null} if the targeting rule has a simple value THEN part.

Link copied to clipboard
@SerialName(value = "s")
val servedValue: ServedValue? = null

The value associated with the targeting rule or {@code null} if the targeting rule has percentage options THEN part.