Rapidata filters
RapidataFilters #
RapidataFilters Classes
These filters can be added to the order to specifically target a certain group of users.
Note that adding multiple filters to the same order will result in a logical AND operation between the filters.
Warning
This might significantly slow down the number of responses you receive.
Attributes:
Name | Type | Description |
---|---|---|
user_score |
UserScoreFilter
|
The UserScoreFilter instance. |
age |
AgeFilter
|
The AgeFilter instance. |
campaign |
CampaignFilter
|
The CampaignFilter instance. |
country |
CountryFilter
|
The CountryFilter instance. |
gender |
GenderFilter
|
The GenderFilter instance. |
language |
LanguageFilter
|
The LanguageFilter instance. |
not_filter |
NotFilter
|
The NotFilter instance. |
or_filter |
OrFilter
|
The OrFilter instance. |
Example
from rapidata import CountryFilter, LanguageFilter
filters=[CountryFilter(["US", "DE"]), LanguageFilter(["en"])]
This ensures the order is only shown to users in the US and Germany whose phones are set to English.