Skip to content

Audience Processing

Sam Dozor edited this page Feb 17, 2017 · 4 revisions

Audience Subscription Event

The audience subscription event tells your lambda function when a new audience has been created, removed, and/or updated in the mParticle platform. The response allows to set additional subscription settings that will be stored together with the subscription and sent back with audience membership changes. All subscription settings must be declared during module registration.

In order to register to receive these events, follow the process outlined here, and then in your MessageProcessor, override the processAudienceSubscriptionRequest method.

See here for more info on the AudienceSubscriptionRequest object that you'll be given to parse the event.

Audience Membership Change Event

The audience membership change event tells your lambda function whenever users are added or removed from a given audience.

In order to register to receive these events, follow the process outlined here, and then in your MessageProcessor, override the processAudienceMembershipChangeRequest method.

See here for more info on the AudienceMembershipChangeRequest object that you'll be given to parse the event.

Next

Continue on to testing your lambda function.