Segment Rules

Segments can be created using rules. These rules are composed of three parts:

The complete list of rules and their allowed operators and values is as follows

duration

The total period the users device has had your app open (in seconds)

Allowed operators: greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual

Value: Integer type

example:

JSON

{
    "ruleId": "duration",
    "operator": "greaterThanOrEqual",
    "value": 4
}

device

Users operating device

Allowed operators: is

Value: Array of Strings. Allowed array strings are "IOS" and "ANDROID"

example:

JSON

{
    "ruleId": "device",
    "operator": "is",
    "value": ["IOS"]
}