Skip to main content

Audience Service

Audience Service is responsible with keeping track of Segments memberships of the user to make targeting users possible via Audiences.

Segments (Segment Definitions to be more specific) and Audiences are created and managed on Orchestrator.

info

Mobile SDK performs background network access to download Segment Definitions & Audiences from DataSapien Orchestrator.

Segment Membership

A Segment membership is a simple flag that indicates a particular Mobile SDK instance is in a specific Segment Definition. Mobile SDK updates segment memberships upon MeData collection. Audience Service is triggered upon MeData value collection and if there is a defined segmentation for the MeData Definition for which a new value was collected, Audience Service marks user as a member of that segment.

For instance, when MeData Service collects and updates the value for Country of residence (source of this is not relevant at this stage), Audience Service taps in to see if there is a segmentation for that value. If collected country value is "UK", Audience Service marks the user as a member of UK Residents segment.

Audiences

Audiences are logical combinations of Segment Definitions. In other words; an Audience is just a named combination of 'Segments'.

Lets reuse Country of residence and Gender based Segments from previous section to understand how powerfull Audiences can be. Using just those two we can create various Audiences:

  • UK Males Audience: By using "AND" logical operator: "UK Residents" AND "Males"
  • Turkey or UK Residents Audience: By using "OR" logical operator: "TR Residents" OR "UK Residents"
  • Females in Turkey or UK Audience: By using "AND" and "OR" logical operators: "Females" AND ("TR Residents" OR "UK Residents")

With users (Mobile SDK in their name) having memberships to related segments marked, the Mobile SDK is now capable of filtering incoming Journeys for a given Audience by calculating segment membership combination.

Audience Service Functions

To access AudienceService functions; get its instance from DataSapien object: DataSapien.getAudienceService().

List Of AudienceService Functions