Destination Ads - Catalog & Feed

To promote destinations on Facebook, you have to share information about them with Facebook. You do this by creating a destinations catalog and then filling it with destinations.

Upload CSV or XML files for 'destination feeds' with the destinations you want to promote

You can create and manage your destinations catalog in your Commerce Manager.

To use the API to manage your catalog:

  1. Create a destination catalog
  2. Upload your feed to Facebook
  3. Create product sets out of your destination catalog
  4. Associate the catalog to your event sources

Destination Feed - Upload Your Destinations to Facebook

A destination feed is a file with the destinations you want to promote. Every line or item in the file represents a single destination. You can use one or more destination feeds, as long as all feeds together contain all destinations you want to promote.

Supported Destination Feed Formats

CSV - Sample & Description

CSV sample | TSV sample (flattened) | TSV sample (JSON-style)

  • The first row must list the chosen field names in the order the values will be given. Subsequent rows then supply the corresponding values for each destination.
  • Fields containing whitespace or commas should be enclosed in "double quotes".
  • Nested or multi-value fields, such as address, neighborhood or image can be represented using JSON-encoded values or by a set of "flattened" plain-text columns labeled using JSON-path syntax, such as address.city, neighborhood[0], image[0].url, image[0].tag[0], image[0].tag[1]. Both conventions can be used interchangeably in the same file.

XML - Sample & Description

XML sample

  • A root <listings> XML node encloses a set of <listing> nodes, each of which represents a destination.
  • The file must begin with a valid <?xml declaration tag.

The feed parser automatically detects UTF8, UTF16, or UTF32 text encodings, and defaults to LATIN1 if it encounters an unexpected byte sequences. You can provide text in field values in any language; however, field names must be given exactly as below, in English.

Supported Fields - Destinations

The following supported fields are designed for items you add to your product catalog.

For localized catalogs, see supported fields for destinations.

Field Name and TypeDescription

destination_id

type: string

Required.

Max length: 100

Your unique identifier for the destination within the catalog. This will be matched with any content_ids provided in your destination app and pixel events. Tip: To improve performance, avoid using a space for this unique identifier field.

address

type: object

Required.

Complete address for the destination that must be resolvable to its location.

See Address Object Parameters

image

type: object

Required.

Max items: 20

Image data for this destination. You can provide up to 20 images for the destination. Each image contains two fields: url and tag. You can have multiple tags associated with an image. You must provide at least one image. Each image can be up to 4 MB in size.

See Image Object Parameters

url

type: string

Required.

Link to the external site where you can view the destination page. You can specify a URL on ad level too using template_url_spec. URLs on ad level take precedence over URLs in the feed.

type

type: string

Required.

Max items: 20

Type of destination, such as beach, city, food, sightseeing, culture, history, shopping, museum, tranquility, scenery, nature, architecture, business, friendly people, relaxation, night market, mountain, temple, hiking, snorkeling, and so on. There can be multiple types associated with a destination; meaning a destination can have multiple attributes, such as beach and sightseeing.

name

type: string

Required.

Most common name of the destination.

neighborhood

type: string

Optional.

Max items: 20

One or more neighborhood(s) for the destination.

Examples: Soho, Las Vegas Strip

latitude

type: float

Optional.

Latitude of the destination.

Example: 37.484100

longitude

type: float

Optional.

Longitude of the destination.

Example: -122.148252

description

type: string

Optional.

Max size: 5000

Short paragraph describing the destination.

price

type: string

Optional. Can be lowest or average price for this destination. You must specify the value with currency.

Example: 99.99 USD

price_change

type: int

Optional. Price change:

  • 0: No price change
  • -10: 10% price drop
  • 20: 20% price increase

Can be used for building product sets and in the universal creative ("average price dropped by X").

applink

type: element

Optional. Deep link straight to the destination details page in your mobile app using App Links. Specify deep links in order of precedence, highest to lowest:

  1. On ad level using template_url_spec
  2. here in the feed using an Applink Object
  3. By adding App Link meta tags to your website.

status

Type: string

Controls whether an item is active or archived in your catalog. Only active items can be seen by people in your ads, shops or any other channels. Supported values: active, archived. Items are active by default. Learn more about archiving items.


Example: active


Note: Some partner platforms such as Shopify may sync items to your catalog with a status called staging, which behaves the same as archived.

This field was previously called visibility. While we still support the old field name, we recommend that you use the new name.

Product Deep Links

Provide deep links in feed following the App Links specification. Deep link information in feed takes precedence over any information Facebook collects with App Links metadata with our web crawler.

If you already have deep link information from App Links, you don't need to specify this data. Facebook uses information from App Links to display the correct deep link. To display deep links in your ads, see Advantage+ Catalog Ads, Ad Template.

Image Object Parameters

Field Name and TypeDescription

url

type: string

Required.

URL of the destination image. Follow these image specifications:

  • All images must be in JPG, GIF, or PNG format.

  • For carousel ads and collection ads: Images display in square (1:1) format. The minimum image size is 500 x 500 px. We recommend 1024 x 1024 px for best quality.

  • For single image ads: Images display at a 1.91:1 aspect ratio. The minimum image size is 500 x 500 px. We recommend 1200 x 628 px for best quality.

tag

type: string

Optional.

String that represents what's in the image. There can be multiple tags associated with an image.

Examples: Fitness Center, Swimming Pool

INSTAGRAM_STANDARD_PREFERRED - Allows advertisers to tag a specific image in their feed as the default image that will be used for Instagram. This tag is case sensitive.

Address Object Parameters

Nested or multi-value fields, such as address can be represented using JSON-encoded values or by a set of "flattened" plain-text columns labeled using JSON-path syntax, such as address.region. Both conventions can be used interchangeably in the same file.

Field Name and TypeDescription

addr1 (address.addr1)

type: string

Street address of destination.

Example: 675 El Camino Real

address.city (city)

type: string

Required.

City where destination is located.

Example: Palo Alto

address.region (region)

type: string

Required.

State, county, region, or province for destination.

Example: California

address.postal_code (postal_code)

type: string

Postal code or zip code for destination. Required unless country does not have a postal code system.

Examples:

  • 94125
  • NW1 3FG

address.country (country)

type: string

Required.

Country of the destination.

Example: United States

address.city_id (city_id)

type: string

Value to use in deep link URL (template_url) in the universal creative.

If you have separate apps for iPhone and iPad, specify iPhone and iPad specific information. Otherwise specify only iOS information.

Field Name and TypeDescription

ios_url

type: string

A custom scheme for the iOS app.

Example: example-ios://electronic

ios_app_store_id

type: string

The app ID for the App Store.

Example: 1234

ios_app_name

type: string

The name of the app (suitable for display).

Example: Electronic Example iOS

iphone_url

type: string

A custom scheme for the iPhone app.

Example: example-iphone://electronic

iphone_app_store_id

type: string

The app ID for the App Store.

Example: 5678

iphone_app_name

type:string

The name of the app (suitable for display).

Example: Electronic Example iPhone

ipad_url

type: string

A custom scheme for the iPhone app.

Example: example-ipad://electronic

ipad_app_store_id

type: string

The app ID for the App Store.

Example: 9010

ipad_app_name

type: string

The name of the app (suitable for display).

Example: Electronic Example iPad

android_url

type: string

A custom scheme for the Android app.

Example: example-android://electronic

android_package

type: string

A fully-qualified package name for intent generation.

Exammple: com.electronic

android_app_name

type: string

The name of the app (suitable for display).

Example: Electronic Example Android

The following sections are only relevant to manage your catalogs using this API.

Create a Destination Catalog using the API

A destination catalog is a container for the destinations you want to promote. To use the catalog API, make sure you have the appropriate Marketing API Access Level and that you have accepted the Terms of Service by creating your first catalog through Business Manager.

To create a destination catalog for destination ads, set vertical to destinations:

curl -X POST \
  -F 'name="Test Destination Catalog"' \
  -F 'vertical="destinations"' \
  -F 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v10.0/BUSINESS_ID/owned_product_catalogs

Upload Your Destination Feeds via the API

Once you have created the catalog, you must upload your destination feed(s) to Facebook. Use the API to create a feed object for every feed you want to upload. We support scheduled and direct uploads.

Filter Destination Catalog to Destination Sets

Reference Docs

A destination set is a subset of your catalog. To setup destination ads, you need a destination set. Therefore, you have to create at least one.

Destination sets are defined by filters that are applied to the destination catalog. For example, you can create a destination set with all destinations that had a large price drop. Do note you can also create a destination set without any filters. In that case, the destination set will contain all destinations in your catalog.

use FacebookAds\Object\ProductSet;
use FacebookAds\Object\Fields\ProductSetFields;

$destination_set = new ProductSet(null, <PRODUCT_CATALOG_ID>);

$destination_set->setData(array(
  ProductSetFields::NAME => 'Test Destination Set',
  ProductSetFields::FILTER => array(
    'price_change' => array(
      'lt' => -20,
    ),
  ),
));

$destination_set->create();
from facebookads.adobjects.productset import ProductSet

destination_set = ProductSet(None, <PRODUCT_CATALOG_ID>)

destination_set[ProductSet.Field.name] = 'Test Destination Set'
destination_set[ProductSet.Field.filter] = {
    'price_change': {
        'lt': -20,
    },
}

destination_set.remote_create()
curl \
  -F 'name=Test Destination Set' \
  -F 'filter={"price_change":{"lt":-20}}' \
  -F 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.10/<PRODUCT_CATALOG_ID>/product_sets

The filter parameter is made up of the following operators and data:

OperatorsFilter Type

i_contains

Contains substring. Operator is case-insensitive.

i_not_contains

Does not contain substring. Operator is case-insensitive.

contains

Contains substring. Operator is case-insensitive.

not_contains

Does not contain substring. Operator is case-insensitive.

eq

Equal to. Operator is case-insensitive.

neq

Not equal to. Operator is case-insensitive.

lt

Less than. For numeric fields only.

lte

Less than or equal to. For numeric fields only.

gt

Greater than. For numeric fields only.

gte

Greater than or equal to. For numeric fields only.

DataThe data being filtered

country

Country of the destination.

price

Price for this destination. The price is in cents.

currency

Currency.

price_change

Price drop or increase.

city

City of the destination.

description

Description for this destination.

name

Name for this destination.

destination_set_id

Your unique identifier for the destination within the catalog.