Required fields, syntax, and rules you should follow when formatting an inbound trait data file.
Fields in the inbound data file must appear in the order shown below. In this example, the <
>
symbols have been added to help separate each element visually. You do not need to include these in your data file.
<user ID><TAB><trait ID>,<trait ID>,<trait ID>,...
For other accepted file content formats, see Custom Partner Integrations.
We have a limit of 200 lines we can process for each user ID sent in the inbound data file. For example, if you send 300 lines for a user ID, the first 200 lines are kept and the additional 100 lines are discarded. In the example below, you’re good because you are sending 3 lines each for user ID 1 and user ID 2. We don’t enforce a limit on the number of traits or key-value pairs you include in a line.
<user ID1><TAB><trait ID>,<trait ID>,<trait ID>
<user ID1><TAB><trait ID>,<trait ID>,<trait ID>
<user ID1><TAB><trait ID>,<trait ID>,<trait ID>
<user ID2><TAB><trait ID>,<trait ID>,<trait ID>
<user ID2><TAB><trait ID>,<trait ID>,<trait ID>
<user ID2><TAB><trait ID>,<trait ID>,<trait ID>
The table lists and defines the variables used in a properly formatted inbound data file. Italics indicates a variable placeholder.
Variable | Description |
---|---|
|
A User ID can be:
For mobile IDs:
|
|
Separate the User ID and trait IDs with a single tab delimiter. |
|
The Audience Manager trait ID. We ask that you include only onboarded traits in inbound data files. We do not process any other trait types in the inbound data transfer.
Note: The Trait ID can be found by using the GET method that returns details about all your traits. For more information, see Trait API Methods . |
The following table describes the prefixes that identify trait names or IDs in an inbound data file. See the sample files for examples.
Prefix | Description |
---|---|
|
The |
|
Data prefixed with The |
|
Trait rules let you set criteria for trait qualification. If you format a trait rule as For example, say you create these 3 trait rules:
These traits are associated with the
|
Key-value pairs |
Trait data can be formatted as key-value pairs using alphanumeric strings. There are several ways of formatting key-value pairs, as shown below:
"age"="32" , "gender"=m , model = "pickup truck" , product = tablet are all examples of correctly formatted key-value pairs. |
Trait IDs consist only of numerical characters. We ask that you include only onboarded traits in inbound data files. We do not process any other trait types in the inbound data transfer.
ID Type | Requirement |
---|---|
DPUUID |
Do not use an encoded colon ( |
Mobile iOS (IDFA) or Android device ID |
Mobile device IDs must be strictly formatted as shown here:
|
Improperly formatted value names in a key-value pair also cause problems. Follow these rules when creating or naming the value in a key-value pair:
Character | Requirement |
---|---|
Quote character (") |
You can use the quote character in the key and in the value part of key-value pair, like so:
|
Dash character (-) |
We ignore dash signs at the start of keys. For example, |
|
Do not use |
|
Do not use the new line or tab characters ( |
Data File Format | Description and Example |
---|---|
With |
This data file shows a user qualified for traits 24, 26, 27 and has been removed from trait 28 and 29.
Note: Instead of using d_unsid, you can also remove traits from user profiles by using the following syntax:
|
With |
These traits have been added to a trait rule with the Numeric IDs
String IDs
|
With key-value pairs |
This file data uses key-value pairs to pass in data to Audience Manager .
|
Download the sample data file if you need additional examples. The download file has a .overwrite
file extension. You can open it with a simple text editor.
The chart below shows examples of the correct way to format your Inbound files, depending on the type of IDs and the method by which you want to add traits to profiles.
ID Type / Operation | Use d_sid to add traits to a user profile | Use d_unsid to remove traits from a user profile | Send in key-value pairs to add traits to a user profile | Use the ic prefix to add traits to a user profile |
---|---|---|---|---|
Audience Manager UUID |
||||
Google Advertising ID for Android Devices |
||||
Apple IDFA for iOS devices |
||||
Your own CRM ID (DPUUID) |
Use trait IDs to send trait qualification information for Audience Manager UUIDs.
59767559181262060060278870901087098252 <TAB> d_sid=24, d_sid=26, d_sid=27
Use trait IDs to send trait disqualification information for Audience Manager UUIDs.
59767559181262060060278870901087098252 <TAB> d_unsid=24, d_unsid=26, d_unsid=27
or
59767559181262060060278870901087098252 <TAB> 24:0, 26:0, 27:0
or
59767559181262060060278870901087098252 <TAB> 24:-1, 26:-1, 27:-1
Send in key-value pairs to add trait qualification information for Audience Manager UUIDs.
59767559181262060060278870901087098252 <TAB> product = tablet, product = phone
or
59767559181262060060278870901087098252 <TAB> "product" = "tablet", "product" = "phone"
Use the ic
prefix to send trait qualification information for Audience Manager UUIDs.
59767559181262060060278870901087098252 <TAB> 30608,50354,50338,50352,30626
or
59767559181262060060278870901087098252 <TAB> ic=52,ic=55
Use trait IDs to send trait qualification information for Android devices.
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> d_sid=24, d_sid=25, d_sid=26
Use trait IDs to send trait disqualification information for Android devices.
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> d_unsid=24, d_unsid=25, d_unsid=26
or
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> 24:0, 26:0, 27:0
or
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> 24:-1, 26:-1, 27:-1
Send in key-value pairs to add trait qualification information for Android devices.
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> product = tablet, product = phone
or
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> "product" = "tablet", "product" = "phone"
Use the ic
prefix to send trait qualification information for Android devices.
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> 30608,50354,50338,50352,30626
or
e4fe9bde-caa0-47b6-908d-ffba3fa184f2 <TAB> ic=52,ic=55
Use trait IDs to send trait qualification information for iOS devices.
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> d_sid=24, d_sid=25, d_sid=26
Use trait IDs to send trait disqualification information for iOS devices.
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> d_unsid=24, d_unsid=25, d_unsid=26
or
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> 24:0, 26:0, 27:0
or
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> 24:-1, 26:-1, 27:-1
Send in key-value pairs to add trait qualification information for iOS devices.
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> product = tablet, product = phone
or
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> "product" = "tablet", "product" = "phone"
Use the ic
prefix to send trait qualification information for iOS devices.
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> 30608,50354,50338,50352,30626
or
6D92078A-8246-4BA4-AE5B-76104861E7DC <TAB> ic=52,ic=55
Use trait IDs to send trait qualification information for DPUUIDs.
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> d_sid=24, d_sid=25, d_sid=26
Use trait IDs to send trait disqualification information for DPUUIDs.
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> d_unsid=24, d_unsid=25, d_unsid=26
or
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> 24:0, 26:0, 27:0
or
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> 24:-1, 26:-1, 27:-1
Send in key-value pairs to add trait qualification information for DPUUIDs.
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> product = tablet, product = phone
or
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> "product" = "tablet", "product" = "phone"
Use the ic
prefix to send trait qualification information for DPUUIDs.
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> 30608,50354,50338,50352,30626
or
DBwFoc3dhfMNCFBh2M4F9ZkJEXMNnRDh2PXvnI1 <TAB> ic=52,ic=55