The integration exports two kinds of files. A taxonomy export creates the segment definitions in Equativ, and a profile export sets, adds, or removes segment membership for individual users. A segment must exist in Equativ before profile data referencing it is sent, so a new setup always starts with a taxonomy export.
- Define segments in Equativ.
- Add a user to segments, remove a user from specific segments, or replace all of a user's segments in a single record.
- Send membership for any identifier Equativ accepts.
- Route profile data to the US, EU, or APAC Equativ environment.
The Equativ Export Integration does not call an Equativ API. It generates one file per export job and uploads it to a Google Cloud Storage bucket that Equativ owns and ingests:
- You configure the integration with your Equativ Segment Provider ID, the export type, and — for profile exports — the region and the identifier type.
- Treasure AI validates the Segment Provider ID against the list of Segment Provider IDs registered for your Treasure AI account.
- The integration generates the file from your query or segment results — a pipe-separated CSV with a header row, in UTF-8.
- The integration uploads the file to the Equativ bucket for your export type and region, under a path derived from your Segment Provider ID.
- Equativ ingests the file from the bucket and applies it.
Because delivery is file-based and Equativ reports nothing back, a successful Treasure AI job means the file was accepted by the bucket, not that Equativ finished processing it. Confirm the result in Equativ.
- Basic knowledge of Treasure AI.
- An active Equativ account
- Your Equativ Segment Provider ID. It comes from Equativ.
- Your Segment Provider ID registered with Treasure AI. Registration happens during onboarding — contact your Customer Success representative or technical support to add a Segment Provider ID. Exports using an unregistered ID fail with
Segment Provider ID not authorized for this account.
- Segments must exist in Equativ before you export profile data into them. Run a taxonomy export first, and confirm in Equativ that the segments were created.
- Query columns must use the exact column names in this page. Names are matched case-insensitively and surrounding spaces are ignored, but two columns whose names differ only by case or spacing fail the job.
- Column values must not contain a pipe (
|), a comma (,), a double quote ("), or a line break. The output format is positional and nothing is escaped, so such a value would corrupt the record. - A taxonomy update replaces the whole row. Re-exporting a segment without a field it previously had erases that field, so always export every field you want Equativ to keep.
- If a taxonomy file contains the same
segment_idmore than once, Equativ imports only the last occurrence. The integration does not remove duplicates. - Deleting a segment requires Equativ. Set
is_activeto0to remove a segment from targeting. - Production supports up to 10 GB per day per folder. Sandbox environments accept considerably less.
- Profile data must go to the region where the users are targeted. Users uploaded to the wrong region are not available for targeting, and Equativ reports no error.
In Treasure Console, create and configure the data connection before running your query. This integration has no OAuth or credential step: Treasure AI holds the storage credentials internally, and the only value you supply is your Equativ Segment Provider ID.
- Open Treasure Console.
- Navigate to Integrations Hub > Catalog.
- Search for and select Equativ Export.

- Select Create Authentication, and enter your Segment Provider ID.

- Select Continue, enter a name for the authentication, and select Done.
| Field Name | Type | Description |
|---|---|---|
| JSON keyfile (Required) | string | Service account keyfile content. |
| Segment Provider ID (Required) | string | The unique identifier Equativ provides for your account. Must be one of the Segment Provider IDs registered for your Treasure AI account. |
Treasure Console supports multiple ways to export data. To export from the Data Workbench:
- Navigate to Data Workbench > Queries.
- Select New Query and define your query.
- Select Export Results to configure the data export.
- Select an existing Equativ authentication, or create a new one following the previous section.
- Configure the export parameters.
- Select Done.
Your query must return the columns required by the export type you configured. Other columns are ignored. A required column that is null or empty makes the record invalid: the record is skipped when Skip Invalid Records is enabled, and the job fails otherwise.
A taxonomy export defines the segments themselves.
| Column | Required | Data Type | Default | Validation | Description |
|---|---|---|---|---|---|
segment_id | Yes | string | — | Non-empty, at most 200 characters | Your own segment identifier. |
parent_segment_id | No | string | empty | At most 200 characters | The parent segment, which builds the hierarchy shown in Equativ. Empty means the segment is top level. |
name | Yes | string | — | Non-empty, at most 200 characters | The segment name shown in Equativ. |
description | No | string | empty | At most 255 characters | An optional segment description. |
price | No | long or double | 0 | Zero or greater | The price of the segment. Use 0 for no price. |
is_selectable | No | boolean or long | 1 | 0, 1, true, or false | 1 if the segment is targetable, 0 if it exists only to build the hierarchy. |
ttl | No | long | 43200 | Positive integer | Lifetime of the user-to-segment association, in minutes. The default 43200 is 30 days. |
is_active | No | boolean or long | 1 | 0, 1, true, or false | 1 if the segment is active, 0 to deactivate it and remove it from targeting. |
An optional column that is missing or empty takes its default, so a minimal taxonomy query returns only segment_id and name.
Example query output:
| segment_id | parent_segment_id | name | description | price | is_selectable | ttl | is_active |
|---|---|---|---|---|---|---|---|
| 123 | Gender: Male | 0.50 | true | 24000 | true | ||
| LF-1001 | Sport Readers |
This produces the following file. The second row shows every optional column taking its default.
SegmentId|ParentSegmentId|Name|Description|Price|IsSelectable|TTL|IsActive
123||Gender: Male||0.50|1|24000|1
LF-1001||Sport Readers||0|1|43200|1A profile export sets, adds, or removes segment membership for a user. One record is one user.
| Column | Required | Data Type | Description |
|---|---|---|---|
user_id | Yes | string | The user identifier. |
segment_to_set | At least one of the three | string | Comma-separated segments that replace all of the user's current segments. |
segment_to_add | At least one of the three | string | Comma-separated segments to add. The user's existing segments are unchanged. |
segment_to_remove | At least one of the three | string | Comma-separated segments to remove. Only the listed segments are removed. |
profile_id_source | No | string | The identity-graph origin of the identifier. Requires back-end activation by Equativ; it is ignored otherwise, and profiles still ingest. Must not contain a pipe, a double quote, or a line break. An empty value is treated as absent. |
A record must carry at least one segment value across all three families, and each segment value is limited to 200 characters.
Each of the three segment families also accepts numbered columns, so you do not have to concatenate segments in your query:
| Family | Accepted Column Names |
|---|---|
| Set | segment_to_set, segment_to_set1, segment_to_set2, … |
| Add | segment_to_add, segment_to_add1, segment_to_add2, … |
| Remove | segment_to_remove, segment_to_remove1, segment_to_remove2, … |
The values of one family are combined into a single comma-separated field, in column-name order. Numbering does not have to start at 1 and does not have to be contiguous. Null, empty, and whitespace-only values are skipped rather than sent as empty entries, values are trimmed, and a value repeated within one family is sent once. Deduplication is per family, so the same segment appearing in both segment_to_add and segment_to_remove is sent in both — resolve that in your query.
A family with no values is sent as an empty field, with the separators intact. A record whose three families are all empty is invalid.
Example query output:
| user_id | segment_to_set | segment_to_set1 | segment_to_add | segment_to_add1 | segment_to_remove |
|---|---|---|---|---|---|
| glVQoCkEgJcWya7NrUYac | 123 | ||||
| ll1iA1FJMNDYGUHZef_3WCIMpc9e | 123 | 456 | |||
| nwGPW6UZeX4Esgcrz2_TbU87L | 111 | 112 | 113 | ||
| FR:75001 | 789 | 101 |
This produces the following file:
UserID|SegmentToSet|SegmentToAdd|SegmentToRemove
glVQoCkEgJcWya7NrUYac|123||
ll1iA1FJMNDYGUHZef_3WCIMpc9e||123,456|
nwGPW6UZeX4Esgcrz2_TbU87L||111,112|113
FR:75001|789,101||When profile_id_source is returned, a fifth field is appended to every record.

The Equativ Export Integration takes four export parameters.
| Parameter Name | Type | Default | Description |
|---|---|---|---|
| Export Type (Required) | string | taxonomy | What the export creates. taxonomy defines segments in Equativ, profile sets, adds, or removes segment membership for users. |
Profile Region (Required for profile) | string | us | The Equativ region that receives the data: us, eu, or apac. Ignored when Export Type is taxonomy. |
| Encrypted Alternative IDs (Optional) | string | none | Set to utiq.com or id5-sync.com when user_id holds encrypted alternative IDs from that provider. Leave it none for all other identifiers. Ignored when Export Type is taxonomy. |
| Skip Invalid Records (Optional) | boolean | true | When enabled, invalid records are counted and skipped. When disabled, the first invalid record fails the job and nothing is uploaded. |
You can use Scheduled Jobs with Result Export to periodically write the output result to a target destination that you specify.
Treasure Data's scheduler feature supports periodic query execution to achieve high availability.
When two specifications provide conflicting schedule specifications, the specification requesting to execute more often is followed while the other schedule specification is ignored.
For example, if the cron schedule is '0 0 1 * 1', then the 'day of month' specification and 'day of week' are discordant because the former specification requires it to run every first day of each month at midnight (00:00), while the latter specification requires it to run every Monday at midnight (00:00). The latter specification is followed.
Navigate to Data Workbench > Queries
Create a new query or select an existing query.
Next to Schedule, select None.

In the drop-down, select one of the following schedule options:

Drop-down Value Description Custom cron... Review Custom cron... details. @daily (midnight) Run once a day at midnight (00:00 am) in the specified time zone. @hourly (:00) Run every hour at 00 minutes. None No schedule.

| Cron Value | Description |
|---|---|
0 * * * * | Run once an hour. |
0 0 * * * | Run once a day at midnight. |
0 0 1 * * | Run once a month at midnight on the morning of the first day of the month. |
| "" | Create a job that has no scheduled run time. |
* * * * *
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +---------- month (1 - 12)
| | +--------------- day of month (1 - 31)
| +-------------------- hour (0 - 23)
+------------------------- min (0 - 59)The following named entries can be used:
- Day of Week: sun, mon, tue, wed, thu, fri, sat.
- Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec.
A single space is required between each field. The values for each field can be composed of:
| Field Value | Example | Example Description |
|---|---|---|
| A single value, within the limits displayed above for each field. | ||
A wildcard '*' to indicate no restriction based on the field. | '0 0 1 * *' | Configures the schedule to run at midnight (00:00) on the first day of each month. |
A range '2-5', indicating the range of accepted values for the field. | '0 0 1-10 * *' | Configures the schedule to run at midnight (00:00) on the first 10 days of each month. |
A list of comma-separated values '2,3,4,5', indicating the list of accepted values for the field. | '0 0 1,11,21 * *' | Configures the schedule to run at midnight (00:00) every 1st, 11th, and 21st day of each month. |
A periodicity indicator '*/5' to express how often based on the field's valid range of values a schedule is allowed to run. | '30 */2 1 * *' | Configures the schedule to run on the 1st of every month, every 2 hours starting at 00:30. '0 0 */5 * *' configures the schedule to run at midnight (00:00) every 5 days starting on the 5th of each month. |
A comma-separated list of any of the above except the '*' wildcard is also supported '2,*/5,8-10'. | '0 0 5,*/10,25 * *' | Configures the schedule to run at midnight (00:00) every 5th, 10th, 20th, and 25th day of each month. |
- (Optional) You can delay the start time of a query by enabling the Delay execution.
Save the query with a name and run, or just run the query. Upon successful completion of the query, the query result is automatically exported to the specified destination.
Scheduled jobs that continuously fail due to configuration errors may be disabled on the system side after several notifications.
(Optional) You can delay the start time of a query by enabling the Delay execution.
You can also send segment data to the target platform by creating an activation in the Audience Studio.
- Navigate to Audience Studio.
- Select a parent segment.
- Open the target segment, right-mouse click, and then select Create Activation.
- In the Details panel, enter an Activation name and configure the activation according to the previous section on Configuration Parameters.
- Customize the activation output in the Output Mapping panel.

- Attribute Columns
- Select Export All Columns to export all columns without making any changes.
- Select + Add Columns to add specific columns for the export. The Output Column Name pre-populates with the same Source column name. You can update the Output Column Name. Continue to select + Add Columnsto add new columns for your activation output.
- String Builder
- + Add string to create strings for export. Select from the following values:
- String: Choose any value; use text to create a custom value.
- Timestamp: The date and time of the export.
- Segment Id: The segment ID number.
- Segment Name: The segment name.
- Audience Id: The parent segment number.
- + Add string to create strings for export. Select from the following values:
- Set a Schedule.

- Select the values to define your schedule and optionally include email notifications.
- Select Create.
If you need to create an activation for a batch journey, review Creating a Batch Journey Activation.
You can run this export within Treasure Workflow. Learn more at Using Workflows to Export Data with the TD Toolbelt.
Create the segments with a taxonomy export:
_export:
td:
database: equativ_db
+equativ_taxonomy_task:
td>: taxonomy.sql
database: ${td.database}
result_connection: new_created_equativ
result_settings:
type: equativ
json_keyfile:
content: |
{xxxxxxxx}
segment_provider_id: "abc28132y484ry24givncdkmn"
export_type: taxonomy
skip_invalid_records: trueSend profile membership for segments:
_export:
td:
database: equativ_db
+equativ_profile_task:
td>: profile.sql
database: ${td.database}
result_connection: new_created_equativ
result_settings:
type: equativ
json_keyfile:
content: |
{xxxxxxxx}
segment_provider_id: "abc28132y484ry24givncdkmn"
export_type: profile
profile_region: eu
skip_invalid_records: true| Name | Description | Value | Default | Required |
|---|---|---|---|---|
type | Connector type | equativ | N/A | Yes |
json_keyfile | Google service account JSON key provided by Equativ. Object with content property. Example json_keyfile: content: | {xxxxxxxx} | N/A | N/A | Yes |
segment_provider_id | Equativ Segment Provider ID that receives the data | N/A | N/A | Yes |
export_type | What the export creates | taxonomy, profile | taxonomy | Yes |
profile_region | Equativ region that receives profile data | us, eu, apac | us | Yes if export_type is profile |
eid_provider | Provider of the encrypted alternative IDs in user_id | none, utiq.com, id5-sync.com | none | No |
skip_invalid_records | Skip invalid records instead of failing the job | true, false | true | No |
Example query for a profile export:
SELECT
user_id,
segment_to_add,
segment_to_add1
FROM (
VALUES ('glVQoCkEgJcWya7NrUYac', '123', '456')
) tbl (user_id, segment_to_add, segment_to_add1)If the job succeeds but the data does not appear in Equativ, check the following, in order:
- The segments exist. Profile data referencing a segment that was never created by a taxonomy export is not targetable, and Equativ reports no error.
- The taxonomy rows are complete. Equativ discards a segment that is missing a mandatory field, silently.
- Profile Region matches the region where you target the users. Users uploaded to another region are not available.
- The segment IDs in your profile export match the
segment_idvalues of your taxonomy export. - Your daily volume is under 10 GB for the folder.
- You can use a Scheduled Job with Result Export to periodically upload data to Equativ.