Required columns for data feed files

30/11/2019

Before you can promote items from your catalogue in an ad, you first need to upload a file that contains information about the items you want to include in your ad. This file is called a data feed.

When you create a data feed, you add a list of items to a supported file format: CSV, TSV or XML. To ensure that your data feed is uploaded successfully to your catalogue, you need to include a series of required columns in your data feed. The type of feed you upload determines which columns you use. If your data feed doesn't include one or more of these columns, you may encounter an error when you upload the data feed to Facebook.

Required columns

Include these columns in your data feed and follow the guidelines for each entry to successfully upload your data feed to Facebook. The required columns are different depending on the items you're advertising.

Products
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
idEnter a unique ID for the item, such as an SKU. If there are multiple instances of the same ID, these will be ignored.

Max. characters: 100
FB_product_1234
availabilityThe current availability of the item in your shop. Make sure that you indicate the availability of the item on your shop page and keep it up to date.

Supported: in stock, available for order, pre-order, out of stock, discontinued
in stock
conditionThe current condition of the item in your shop.

Supported: new, refurbished, used
new
descriptionA short description of the item.

Max. characters: 5000
A vibrant crewneck for all shapes and sizes. Made from 100% cotton.
image_linkThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200x630.https://www.facebook.com/t_shirt_image_001.jpg
linkThe URL of the website where you can buy the item.https://www.facebook.com/facebook_t_shirt
titleThe title of the item.

Max. characters: 500
Facebook T-shirt (Unisex)
priceThe cost and currency of the item. The price is a number followed by the currency code (ISO 4217 standards).9.99 USD
gtin*The Global Trade Identification Number for the item.

Supported: UPC (North America – 12 digits), EAN (Europe – 13 digits), JAN (Japan – 8 or 13 digits), ISBN (books – 13 digits)

Max. characters: 70
1234567891011
mpn*The Manufacturer Part Number for the item.

Max. characters: 70
100020003
brand*The brand name of the item.

Max. characters: 70
Facebook

*Either gtn, mpn or brand is required for the data feed.

Hotels
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
hotel_idThe unique ID for the hotel.

Max. characters: 100
FB_hotel_1234
name The name of the hotel. Facebook Hotel
image[0].urlThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200x630 pixels. If you have more than one image, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of images (for example: image[0].url; image[1].url).

Max. items: 20
https://www.facebook.com/facebook_hotel.jpg
urlThe URL of the website where you can book a hotel room.https://www.facebook.com/hotel
address.addr1The street address of the hotel.1 Hacker Way
address.cityThe city the hotel is in.Menlo Park
address.regionThe state, county, province or region of the hotel.California
address.postal_codeThe postcode or ZIP code for the hotel. This is not required for countries without a postal code system.94025
address.countryThe country the hotel is in.United States

neighborhood[0]

The neighbourhood of the hotel. If you have more than one neighbourhood, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of neighbourhoods (for example: neighborhood[0]; neighborhood[1]).

Max. neighbourhoods allowed: 20
Belle Haven
latitudeThe latitude of the hotel.37.4841
longitudeThe longitude of the hotel.-122.14825
brandThe brand name of the hotel chain.Facebook
base_priceThe base cost and currency of your hotel per night. The price is a number followed by the currency code (ISO 4217 standards).199.00 USD
description A description of the hotel.

Max. characters: 5000
Only 30 minutes away from San Francisco

Hotel room and pricing information

If you want to add optional hotel room and pricing information to your listing, add these required columns.

Column nameDescription/GuidelinesExample
room_idThe unique ID for the hotel room type.

Max. characters: 100
FB_hotel_room_1234
name The name of the hotel room type. 1 King-size bed, Suite
descriptionA short description of the room type. 1 king-size bed. Sleeps 2 guests. Room overlooks the bay. Total floor space of 350 sq. feet.
base_priceThe lowest base price of the hotel room per night. The price is a number followed by the currency code (ISO 4217 standards).199.00 USD
urlThe URL of the website where you can book a hotel room.https://www.facebook.com/hotel_booking
checkin_dateThe check-in date for the stay. You can add up to 180 days from the date the feed is uploaded. Uses ISO‑8601 standard (YYYY‑MM‑DD).2017-08-01
length_of_stayThe number of nights of the stay in the hotel.

Max. number of days allowed: 14
7
priceThe total price of the stay, based on checkin_date and length_of_stay.1393.00 USD
taxThe applicable tax rate for the price.14
feesThe applicable fees for the price.253.00 USD
Destinations
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
destination_idThe unique ID for the destination.

Max. characters: 100
FB_destination_1234
nameThe name of the destination.Bay Area Peninsula
address.cityThe destination city.Menlo Park
address.regionThe destination state, county, province or region.California
address.countryThe destination country.United States
address.postal_codePostcode or ZIP code for the destination. This is not required for countries without a postal code system.94025
image[0].urlThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200x630 pixels. If you have more than one image, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of images (for example: image[0].url; image[1].url).

Max. items: 20
https://www.facebook.com/image_001.jpg
type[0]The type(s) of destination (for example, park or beach). A destination can have multiple types. If you have more than one type to add, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of types (for example: type[0], type[1]).

Max. items: 20
city
urlA link to the website where you can book the destination. https://www.facebook.com/destination
Flights
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
departure_airportThe origin airport for the flight. The origin airport should be written as an IATA code (for example, SFO). SFO
destination_airportThe destination airport for the flight. The destination airport should be written as an IATA code (for example, JFK).JFK
image[0].urlThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200x630 pixels. If you have more than one image, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of images (for example: image[0].url; image[1].url).

Max. items: 20
https://www.facebook.com/image_001.jpg
descriptionA description of the flight.

Max. character limit: 5000
Book your ticket for SFO to JFK
urlA link to the website where you can book the flight. https://www.facebook.com/flights
Property
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
home_listing_idThe unique ID for the home listing.FB_home_1234
nameThe name of the home listing1 Hacker Way, Menlo Park, CA 94025, USA
image[0].urlThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200x630 pixels. If you have more than one image, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of images (for example: image[0].url; image[1].url).

Max. items: 20
https://www.facebook.com/image_001.jpg
address.addr1The street address for the listing.1 Hacker Way
address.cityThe city for the listing.Menlo Park
address.regionThe state, county, region or province of the listing.California
address.countryThe country for the listing.United States
address.postal_codePostcode or ZIP code for the destination. This is not required for countries without a postal code system.94025
neighborhood[0]The neighbourhood for the home listing. If you have more than one neighbourhood, add additional columns for each type and use JSON-path syntax in each column name to indicate the number of neighbourhoods (for example: neighborhood[0]; neighborhood[1]).

Max. neighbourhoods allowed: 20
Belle Haven
latitudeThe latitude of the listing.37.4845
longitudeThe longitude of the listing.-122.14789
priceThe cost and currency of the home listing. The price is a number followed by the currency code (ISO 4217 standards).125000000.00 USD
availabilityThe current availability of the listing.

Supported: for_sale, for_rent, sale_pending, recently_sold, off_market, available_soon
for_sale
urlA link to the website where you can view the listing.https://www.facebook.com/home_listing
Vehicles
Need examples? Right-click and save either of the following links to your computer to see how the feed file looks in different formats.
Column nameDescription/GuidelinesExample
vehicle_idThe unique ID for the vehicle.

Max. characters: 100
2017 Facebook Selfie
vinThe vehicle identification number.1FADP5AU6DL536022
makeMake or brand of the vehicle.Facebook
modelModel of the vehicleSelfie
transmissionTransmission type of the vehicle.

Supported values: Automatic, Manual
Automatic
body_styleBody style of the vehicle.

Supported values: Convertible, Coupe, Hatchback, Minivan, Truck, SUV, Sedan, Van, Wagon, Crossover, Other
Coupe
drivetrainDrivetrain of the vehicle.

Supported values: 4x2, 4x4, AWD, FWD, RWD, Other
FWD
image[0].urlThe URL for the image used in your ad. For square (1:1) aspect ratios in the carousel ad format, your image should be 600x600. For single image ads, your image should be at least 1200 x 630 pixels.https://www.facebook.com/image001.jpg
mileage.valueCurrent mileage of the vehicle. For used vehicles, this is the mileage of the vehicle in kilometres (KM) or miles (MI). For new vehicles, use "zero".zero
mileage.unitMileage units.

Supported values: MI, KM
MI
urlLink to the external site where you can view the vehicle.https://www.facebook.com/vehicle
titleTitle of the vehicle listing.Available now: 2017 Facebook Selfie
priceThe cost of the vehicle. The price is a number followed by the currency code (ISO 4217 standards).32000.00 USD
state_of_vehicleThe current state of the vehicle. You can use new, used or certified pre-owned (CPO).

Supported values: New, Used, CPO
New
exterior_colorThe exterior colour of the vehicle.White
address.addr1The street address of the dealership.1 Hacker Way
address.cityThe city where the dealership is located.Menlo Park
address.regionThe state, country, region or province of the dealership.CA
address.countryThe country where the dealership is located.United States
latitudeThe latitude of the dealership.37.4845
longitudeThe longitude of the dealership.-122.14789

Optional data feed columns

If you want to add additional details about your items to your ads, you can add optional columns to your data feed file. You can find a list of the optional columns for your items here:

* Nguồn: Facebook