Prepare your customer data

30/11/2019

This article contains four sections (see below for links to each). The first section is a set of general best practices for providing data from a customer file, pixel or offline event set that can help increase your match rate. The second and third sections provide guidelines and examples for formatting data about your customers and events. The fourth section is about customer lifetime value, a type of data only required for the creation of value-based Lookalike Audiences.

General best practices

Below, you'll find tables listing all the data types we can use for a Custom Audience or offline event upload. To get the highest match rate possible from your data, include as many data types as you can. You can use a single-column file to create your audience, but you may not see as many matches as you would if you used additional data types.

If you're using multiple data types, make sure that your data is organised into separate columns that correspond to the types we accept. For example, don't include a single column for full names. Instead, include two columns – one for first names, one for surnames.

Use the column headers in the table below. Doing so helps us auto-detect data types. You may use your own column headers if you prefer, but you'll then have to map the data to its type manually before uploading your customer list.

The two most important tips are:

  • Always include the country code as part of your customer's phone numbers, even if all of your data is from the same country.
  • Always include your customers' countries in their own column in your file, even if all of your data is from the same country. Because we match on a global scale, this simple step helps us match as many people as possible from your customer list.

Your file can be either CSV or TXT format. Download example files:

Learn how to create and edit a Custom Audience from a customer file.

Formatting customer data

Data typeColumn header Description and formatting guidelinesExamples
Email address emailWe accept one separate email address column in US and international formats.
  • username@hotmail.co.uk
  • your.name@gmail.com
  • myname@yahoo.com
Phone number phonePhone numbers must include a country code to be used for matching. For example, a 1 must precede a phone number in the United States. We accept up to 3 phone numbers as separate columns, with or without punctuation.

Important: Always include the country code as part of your customer's phone numbers, even if all your data is from the same country.

  • 1-234-567-8910
  • 12345678910
  • +44 844 412 4653
First name fn We accept first name and first name initial, with or without accents. Initials can be provided with or without a full stop.
  • John
  • F.
  • Émilie
Surname ln We accept full last names, with or without accents.
  • Smith
  • Sørensen
  • Jacobs-Anderson
City ct We accept full city names as they normally appear.
  • Paris
  • London
  • New York
State/ProvincestWe accept full names of US and international states and provinces, as well as the abbreviated versions of US states.
  • AZ
  • California
  • Normandy
Country country Country must be provided as an ISO two-letter country code.

Important: Always include your customers' countries in their own column in your file, even if all of your data is from the same country. Because we match on a global scale, this simple step helps us match as many people as possible from your customer list.

  • FR
  • US
  • GB
Date of birth dob We accept 18 different date formats to accommodate a range of month, day and year combinations, with or without punctuation.
  • MM-DD-YYYY
  • MM/DD/YYYY
  • MMDDYYYY
  • DD-MM-YYYY
  • DD/MM/YYYY
  • DDMMYYYY
  • YYYY-MM-DD
  • YYYY/MM/DD
  • YYYYMMDD
  • MM-DD-YY
  • MM/DD/YY
  • MMDDYY
  • DD-MM-YY
  • DD/MM/YY
  • DDMMYY
  • YY-MM-DD
  • YY/MM/DD
Year of Birth doby We accept year of birth as a 4-digit number, YYYY.
  • 1986
Age age We accept age as a numerical value.
  • 65
  • 42
  • 21
Zip/Postalcode zip We accept US and international zip and postcodes. US zip codes may include a 4-digit extension as long as they're separated by a hyphen. The extension is not required and will not improve the match rate.
  • W11 2BQ
  • 94104-1207?
  • 94104
Gender gen We accept an initial to indicate gender.
  • M
  • F
Mobile Advertiser ID madid We accept 2 types of mobile advertiser IDs: Android's Advertising ID (AAID), which Google provides as part of Android advertising, and Apple's Advertising Identifier (IDFA), which Apple provides as part of iOS in its ads framework.
  • AECE52E7-03EE-455A-B3C4-E57283966239
  • BEBE52E7-03EE-455A-B3C4-E57283966239
Facebook App User ID uid An ID corresponding to someone who uses an app that can be retrieved through the Facebook SDK. We accept numerical user IDs associated with your Facebook application.
  • 1234567890
  • 1443637309
Facebook Page user IDAn ID corresponding to someone who has interacted with your Facebook Page. We accept numerical user IDs associated with your Facebook Page.
  • 1234567890
  • 1443637309

Formatting event data

Data typeColumn header Description and formatting guidelinesExamples
Event timeevent_timeFor offline event data, precise timestamps that include the minutes and seconds are recommended so that all unique events are processed, such as multiple purchases made by the same person in one day.

See the examples for how to format the date and time combined – please note that there is a capital "T" in between the date and time.
  • YYYY-MM-DDTHH:MM:SS
  • 2016-06-20T03:21:48+01:00
  • 2016-06-20T03:21:48
  • mm/dd/yyyy
Event nameevent_nameFor offline event data, see the examples for the standard conversion events you can track. If you have additional types of conversions you want to track, you can create custom conversions.
  • AddPaymentInfo
  • AddToCart
  • AddToWishlist
  • CompleteRegistration
  • InitiateCheckout
  • Lead
  • Purchase
  • Search
  • ViewContent
  • Other
ValuevalueThe value field must contain a decimal number greater than or equal to zero, and may not include letters, special characters, currency symbols or commas.
  • 2534
CurrencycurrencyThe currency field must contain a standard 3-letter ISO currency code as per the ISO 4217 standard.
  • USD
  • HUF
Order IDorder_id

The order ID field may contain an alphanumeric value with no special characters, currency symbols or commas.

For offline event data, use the Order ID field to provide a unique identifier for each transaction. Each Order ID should have a unique event time and customer associated with it.

  • ABC123
  • 456DEF
Item numberitem_number

The item number field may contain an alphanumeric value with no special characters, currency symbols or commas.

For offline event data, you can split a transaction into multiple events by using the Item number field to provide unique item numbers for each event that is associated with the same Order ID.

  • 1
  • 2
  • G34
After reviewing these tips, create, edit or learn more about Custom Audiences.

Customer lifetime value

Note: If you don't track customer lifetime value, or if you're not looking to create a value-based Lookalike Audience, you don't need to read the information in this section.

What is customer lifetime value?

Customer lifetime value is a representation of the net profit you think will be attributable to a given customer over the duration of your relationship with them. You can break that value down into a few major factors:

  • How often a customer makes a purchase within a typical purchase cycle
  • How much a customer spends each time they make a purchase
  • How much you project a customer will spend over the duration of your relationship with them
  • The potential length of a customer's relationship with you

What can I use customer lifetime value for?

You can send us your customer lifetime value data as part of a customer file Custom Audience. You can then use that Custom Audience as the source for a value-based Lookalike Audience, which is a group of people you can target with ads who are most similar to the high-value customers you already know.

What should I avoid when calculating customer lifetime value?

Different people calculate customer lifetime value in different ways. Here are some ways that you should avoid if you're going to send us the data for use in a value-based Lookalike Audience:

  • Rating your customers. Say you have three customers worth £100, £10 and £1, respectively, and you use a rating system of 1-5. Don't send us data where they're rated as a 5, 2 and 1, respectively. This doesn't work because the value isn't proportional to the ranking. In other words, the £100 customer was factored by 20, but the £10 customer was only factored by 5 and the £1 customer wasn't factored at all.
  • Ranking your customers. Say you have 100 customers and each one is worth between £200 and £1200. You rank them from 1 to 100. This doesn't work because value isn't proportional here either. It tells us if one customer is more valuable than another, but doesn't account for a scenario where the number 5 customer is worth double what the number 6 customer is, whereas the number 20 customer might only be worth 1% more than the number 21 customer.

Once I've calculated my customer lifetime value data, what should I do?

Send us the data as another column in a customer file you use to create a Custom Audience.

Below are tips for formatting the data, similar to the tips for other identifiers in the first section of this article.

Data typeColumn header Description and formatting guidelinesExamples
Customer lifetime value value

We accept customer value as a positive number.

Important:

  • Don't just provide your highest-value customers. Instead, include a broad range. Without this range, we can't hone in on what might distinguish an average customer from a great one.
  • Don't include negative numbers to denote negative value or undesirable customers. We can't use rows that contain numbers like that.
  • If your value is in the form of a currency, make sure it's all the same currency or has been converted to the same scale before uploading. We don't currently normalise for different currencies.
  • Decimals that denote cents are acceptable, but don't use any other punctuation marks and/or separators. We can't use rows that contain them.

  • £450.00
  • 6330.83 GBP

Once your customer file Custom Audience is created, use it as a source for a value-based Lookalike Audience. Use that Lookalike Audience as the target audience for your ads to reach people who are most similar to your high-value customers.

For tips on formatting your source Custom Audience's data, click here to go to that section of this article.

* Nguồn: Facebook