Audience Groups
How to create named user segments and use them in filters when sending pushes
Audience Groups are named user segments. You create a group with a set of codes (tags), the SDK on the application side assigns these codes to specific devices, and then when creating a scheduler you use the group in filters — only the targeted users receive the push.
Why You Need Audience Groups
Standard filters by country and language cover basic cases but don't allow targeting by user behavior or status. Audience groups fill this gap:
- Send a push only to paying users (
vip_users). - Exclude from the campaign those who have already completed the target action.
- Send a special offer to the
inactive_30dsegment (haven't opened the app in 30 days). - Target beta testers with a separate
beta_testersgroup.
Creating a Group
- Go to Audience Groups and click "Create".
- Set a name for the group (internal, for convenience).
- Enter audience codes — one or more tags separated by commas. These are strings that the SDK will assign to devices.
- Save the group.
Example: group vip_users with code vip. In the SDK, on each user purchase, call setTags({ segment: "vip" }). After that, in scheduler filters you can select the vip_users group.
Assigning Audience via SDK
After creating the group, configure the SDK side: when the required event occurs in the application, call the setTags method with key-value pairs matching the audience codes.
Web SDK:
NotifyPartners.setTags({ segment: 'vip', tier: 'premium' });Android SDK:
NotifyPartnersSDK.setTags(mapOf("segment" to "vip", "tier" to "premium"))iOS SDK:
try NotifyPartnersSDK.shared.setTags(["segment": "vip", "tier": "premium"])Tags are key-value pairs (Map/Record/Dictionary). The server matches tag values against audience group codes to assign devices to groups.
Using in Scheduler Filters
When creating any scheduler type (instant, scheduled, weekly, auto-push):
- In the "Filters" section, find the "Audience Groups" field.
- Select one or more groups.
- The system sends the push only to devices that belong to the selected groups.
Filters can be combined: country US + group vip_users = only US VIP users.
Event Filters
In addition to audience groups, events can be used in scheduler filters:
- Include — only devices that had the
depevent (first deposit). - Exclude — everyone except devices with the
dep3event (third deposit and above).
This allows building complex segmentation logic without creating separate groups for each condition.
More about events — in the Custom Events section.
API
| Method | URL | Description |
|---|---|---|
GET | /api/v3/audience/groups | List audience groups |
POST | /api/v3/audience/groups | Create a group |