Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Segment feature groups app users based on different parameters.
You can use segments in Push notifications to target the relevant users out of all available users.
Segments can include multiple parameters of different types:

...

Field

Operator(s)

Example Operand(s)

Type

Comments

alias

=

["aliasA","aliasB","aliasC"]

string

The user's unique alias, shared by all the user's devices.

numActivations

!=
=
>
>=
<
<=

["2"]

integer

 The number of times you app was activated (opened) on this device.

numPurchases

!=
=
>
>=
<
<=

["2"]

integer

The number of purchases made through your app on this device.

appVersion

!=
=
>
>=
<
<=

["1.0"]
or
["1.0","2.13"]

double

 The version number of your app installed on the device.

tags

!=
=

["tagA","tagB","tagC"]

string

The local tag list, which is specific to each device.

osNumber

>=<

["1.5","2.2"]

range

 The version number of the Operating System installed on the device.

size

!=
=

["1","4","3"]

integer

The size of the devices running your app. Possible sizes are:

  • Android:
    • 1 = android_small
    • 2 = android_medium
    • 3 = android_large
    • 4 = android_extra_large
  • iOS
    • 5 = iphone4
    • 6 = iphone5
    • 7 = ipad

clientVersion

>=<

["2.0","3.0"]

range

 The client version.

country

!=
=

[["US","IL","Chicago"]]
or
[["US","IL"]]
or
[["US"]]
or
[["US","IL","Chicago"],["AR"],["IL","","Tel-Aviv"]]

array

The device location, in any of the following formats:

  • Country, State, City 
  • Country, State
  • Country

locale

(Also applies to
any string custom 
field) 

!=
=

["en"]
or
["en_CA"]
or
["en_CA","en_IN","he"]

string

The device locale.

timeZone

!=
=

["America/New_York"]
or
["America/New_York","Asia/Jerusalem"]

string

 The device time zone. For a complete list of time zones, see Time Zones.

regAt
(Also applies to
any numeric custom 
field)  

<=
=

>

["30"]

integer

The number of days that passed since your app was registered on this device.
For example:"[30]" means your device was registered 30 days ago.

lastActiv

(Also applies to
date custom field) 

<=
=

>

["30"]

integer

The number of days that passed since your app was last opened on this device.
For example:"[30]" means your device was last opened 30 days ago.

...

 

Code Block
languagexml
titleAlias base segment (or)
{ 
	"application_id": "1234",
  	"name":"Segment alias is mor or yotam",
  	"rules":[
        { "field": "alias ", "operator": "=", "operand": ["mor","yotam"] }
    ]
}
Info
titleNumber of Aliases supported

Please note that we support up to 9000 1000 aliases in a single call

 

...