For the complete documentation index, see llms.txt. This page is also available as Markdown.

Import your audience from an external source

Load a list of users decided elsewhere - a CRM extract, a partner file - into a segment.

Your goal

Get an audience that was decided outside mediarithmics into the platform, so it can be activated, analysed, or used as a criterion in other segments.

Expected outcome

A File import segment, populated from your file once, or fed again each time a new file arrives.

When this is useful

When the audience is not defined by criteria the platform holds, but by a decision made in your own systems: a CRM selection, a loyalty tier, a churn list produced by your data team, an audience a partner sent you.

Prerequisites

  • The list itself, as a CSV file (ndjson also works). Each line is a command for one user: add (UPDATE) or remove (DELETE), how long they stay (expiration_duration, in minutes, 0 for no expiry), the segment, and one identifier. See The segment command, and for imports and executions, Import data in batch.

  • One identifier per line: an account ID with its compartment ID, an email hash, or a user agent ID. Lines may mix identifier types.

  • For a recurrent import, access to Computing Console.

Choose one-shot or recurrent

Import
Use it when

One-shot

You load a list once, from a CSV file, on the segment itself.

Recurrent

The list is refreshed regularly from your systems, with a new file each time.

Import a list from a CSV file

1

Create the segment

In the side menu, go to Audience > Segments and click New Segment. Choose the User List type, fill in at least the name, and click Save. You are redirected to the segment page.

Set the default lifetime here if the audience should expire. It applies to every user entering the segment - unless the upload provides expiration_ts for a user, which always wins. See Segment metadata.

2

Add your users from a CSV file

Open the segment and click Edit. At the bottom of the segment edition page, add your users from a CSV file, then save.

To bind a CSV to the segment without configuring an import, use the Data loader in Computing Console: UTF-8, headers mandatory, 20 MB at most. Pick the identifier column and type, an optional hashing method, and the target segment. A user not found is created. See Load segments.

Recurrent import

A recurrent import is a document import you create once in Computing Console, then run again with a new execution each time a file arrives. Create a User List segment as for a one-shot import, then follow Import segments to set up the import and its executions.

For a File import segment, user choices are checked before a user is added to the segment, rather than woven into a query. If the audience will be activated, attach the processing activities first. See Enforce compliance on your audience.

Last updated

Was this helpful?