Formatting Column-Based Files
Column-based files are LiveRamp's preferred format, especially when there is more than one identifier field.
Although LiveRamp accepts data in both column-based and key-value file formats, LiveRamp prefers and recommends that you provide column-based files, particularly when there is more than one identifier field (this will typically be PII-based data with a name and postal address, multiple email addresses, or some combination thereof).
Caution
Data from EMEA countries can only be accepted in a column-based file format. Key-value files are not allowed for EMEA data. For more information, see "Creating Data Files for EMEA Countries".
For the best results, follow these requirements and guidelines.
Include a Header Row in Every File
Include a header row in every column-based file.
Make sure each header matches the contents of its column.
Subsequent uploads must be consistent with the original file's formatting, including header order and syntax. We recommend that you format headers using all capital letters with no spaces or underscores so that you can reliably format subsequent files the same way.
Caution
Avoid header issues: Header issues tend to be the most common cause of file upload failure. See "Avoiding File Upload Failure" for more information.
Note
The recommended headers for PII-based files are somewhat different for U.S. data files and EMEA data files. See "Headers to Use for EMEA PII Data Files" for more information.
Follow Guidelines for Headers for Segment Data Columns
Make sure that headers for segment data columns meet these guidelines:
Maximum of 128 characters
Can contain letters, numbers, and underscores
Field labels (also known as "headers" or "keys") can contain only letters, numbers, and underscores. They cannot contain other characters, such as spaces, dots (.), vertical bars (|), backticks (`), or colons (:).
Keep Headers and Identifier Fields Consistent
Files for ingestion in the same audience should always have the same set of identifier fields, and the headers must be unique and consistent from file to file, including capitalization. This is so that we can ingest the files automatically and so there are no delays in ingestion process. For more information, see "The Ingestion Automation Process for File Uploads".
Do Not Include Data You Do Not Intend to Use
If a given column will not be used as an identifier or as a segment to be distributed, do not include it.
Each data column makes the file larger, and this size increases as a function of the number of rows in the file. We also need to inspect each column for privacy compliance. The smaller the file and the fewer analysis operations LiveRamp needs to perform, the faster the file can be processed.
Files Must be Rectangular
Every column-based file must be rectangular, meaning every row should contain the same number of delimiters and fields. If a given field has no value for an identifier, simply leave that value empty for that row.
Caution
LiveRamp does not accept fixed-width files. Make sure to use a delimited format.
In order to maximize reach and maintain accuracy, the following 13 standard headers and their associated fields are highly recommended for every column-based file with PII identifiers you upload to LiveRamp.
Click here to download a CSV file with these headers that you can use as a template. You can find other downloadable files in the sections below.
Don't have all identifier types? If you cannot supply a given identifier (such as name and postal, email, or phone), you may include the respective header(s) anyway and simply leave the column(s) blank. However, if including name and postal, make sure to include all required name and postal fields.
In order, the standard header labels are:
CCID (Client Customer ID - see below)
FIRSTNAME
LASTNAME
ADDRESS1 (street address line 1)
ADDRESS2 (street address line 2)
CITY
STATE
ZIP (ZIP Code)
EMAIL1
EMAIL2
EMAIL3
PHONE1
PHONE2
The first field ("Client Customer ID") is an optional field you can include, which can be used as the audience key, allowing us to de-duplicate rows in the uploaded file (in case a file has multiple rows related to the same person). If included, the entries in this field should be unique and persistent across all audiences. Contact your LiveRamp representative if you are not using a Client Customer ID to identify records.
Note
The ZIP Code field can include either standard 5-digit values or 9-digit ZIP+4 values. Do not include hyphens when sending 9-digit ZIP codes.
The bolded headers listed below are required, with the exact heading, for every file of PII identifiers you upload to LiveRamp for data from EMEA countries. Additional headers are shown with their recommended header labels.
Note
For complete information on formatting EU data files, see Creating Data Files for EMEA Countries.
If you do not have data for a particular required column, leave those column entries blank.
Click here to download a .csv file with these headers that you can use as a template.
Note
Don't have all identifier types? If you cannot supply a given identifier (such as name and postal, email, or phone), you may include the respective header(s) anyway and simply leave the column(s) blank. However, if including name and postal, make sure to include all required name and postal fields.
In order, the standard header labels are:
CustomerID (Client Customer ID - see below)
FIRSTNAME
LASTNAME
ADDRESS1 (street address line 1)
ADDRESS2 (street address line 2)
ADDRESS3 (street address line 3)
ADDRESS4 (street address line 4)
TOWN
COUNTY (required for UK data files only)
POSTCODE
EMAIL1
EMAIL2
EMAIL3
MOBILE1
MOBILE2
LANDLINE1
MD5EMAIL1
MD5EMAIL2
MD5EMAIL3
SHA1EMAIL1
SHA1EMAIL2
SHA1EMAIL3
SHA256EMAIL1
SHA256EMAIL2
SHA256EMAIL3
The first field ("Customer ID") is an optional field you can include, which can be used as the audience key, allowing us to de-duplicate rows in the uploaded file (in case a file has multiple rows related to the same person). If included, the entries in this field should be unique and persistent across all audiences. Contact your LiveRamp representative if you are not using a Customer ID to identify records.
Examples of Column-Based Segment Data Files
LiveRamp prefers and recommends that you provide column-based files, particularly when there is more than one identifier field (this will typically be PII-based data with a name and postal address, multiple email addresses, or some combination thereof). See "Formatting Column-Based Files" for more information.
Single Identifier File
Simple column-based file with one PII identifier (for example, name and postal). Some fields are intentionally left empty to illustrate proper no-fill of those values. No values contain punctuation so there is no need to use quotation marks.
Download the Column-Based Single Identifier example file template
Single Identifier Column-Based File Example Enclosed with Quotation Marks
Similar to the above example, but with an additional identifier (email) and a new field, "PreviousCity", that contains a comma within the values and so is enclosed with quotation marks. Note that the delimiter commas remain outside the quotation marks.
Download the Column-Based File With Quotation Marks example file template (open with a text editor to see the quotation marks)
Common Column-Based File Errors Example
This file contains a number of typical file formatting errors:
The header row contains two columns with the same label ("Email").
The first field of the postal address is simply "Name", rather than having individual fields for "FirstName" and "LastName".
There is an extra comma after what should be the final field ("San Francisco, CA"), making the file non-rectangular.
The email address "john.dough@email.com" incorrectly has the comma delimiter inside the quotation marks.
The address "555 New Rd Apt 2" has a newline character after "Rd", which has caused this row to abruptly end partway through and pick up on the next row.
"Rochester, NY" is not enclosed in quotation marks, adding an extra field of " NY" due to delimiter collision and making the file non-rectangular.
The "Under25" field value is "NULL" rather than being left empty.