Introduction to segmentation
Provides a basic description of segmentation and the query or expression used in Moosend API calls.
You can add segments to your email lists to send targeted email marketing campaigns. You can define a specific audience subset in your email lists using a segmentation query or expression to match the subscribers based on content engagement, location, language, and so on. You can have a single segmentation query or an expression consisting of multiple queries in complex or nested combinations.
A segmentation query or criterion consists of the following parts:
Field- the criterion used to filter the email list. See list of segmentation fields.Comparer- the operator that defines how to compare aFieldwith itsValue. Each field supports specific comparers based on the data type. See list of comparers.Additional parameters:
MatchType- defines how to combine a group of queries or criteria. It specifies how subscribers are returned by your segment based on matching criteria. Possible values are:All- returns subscribers that match all the given criteria.Any- returns subscribers that match any of the given criteria.
FetchType-defines how many criteria-matching subscribers are contained in your segment. Possible values are:All- returns all criteria-matching subscribers.Top- returns only a maximum number of subscribers defined inFetchValue.TopPercent- returns only a percentage of subscribers defined inFetchValue.
FetchValue- specifies the maximum number forFetchType:Topor percentage forFetchType:TopPercentof members to be contained in the created segment.