Adding and Removing Users in an Audience
Users can be added or removed from an audience with a PATCH request to the audience contact list endpoint with the specific audience id in the URL path. The request body requires the type of operation, the schema of the identifiers, and the list of the user identifiers to be added. In addition, if the identifier type is ‘gum’, an additional parameter, thegumCallerId, must also be included. Please note that the supported identifier types for Criteo audiences include: ‘email’ (Email Address), ‘madid’ (Mobile Ad Identifier), ‘identityLink’ (a user’s LiveRamp Identity Link), ‘gum’ (Criteo GUM cookie identifier) and ‘customerid’ (only for Retail Media Customer Lists).
GUM ID’s allow clients to maintain a correspondence between their user identification system and Criteo’s user identification (UID) if they are unable to send emails or mobile ad identifiers.Please reach out to your Criteo account team for the appropriate
gumCallerId or to get more information on this GUM sync, if needed.Adding Users
To add users to an audience, use the ‘add’ operation in the PATCH request as detailed below:Example PATCH Request - Adding Users
Example Response Body - Adding Users
Removing Users
To remove users from an audience, use the ‘remove’ operation in the PATCH request as detailed below:Example PATCH Body - Removing Users
Identifier List Size LimitNote that there is a limit of 50,000 identifiers per single request. If you are adding more than 50,000 users, please split them into chunks of 50,000 and make multiple requests.
Deleting All Users From an Audience
To delete all users from an audience, a DELETE request can be made to the audience contact list endpoint with the specified audience id in the URL path. The API will return an array with the specified audienceId where all of the users were deleted from.Example Response Body
Note that this will only wipe all of the users from the audience and will not delete the audience itself.