"double quotes".image can be represented using JSON-encoded values or by a set of “flattened” plain-text columns labeled using JSON-path syntax, such as image[0].url, image[0].tag[0], image[0].tag[1]. Both conventions can be used interchangeably in the same file.<listings> XML node encloses a set of <listing> nodes, each of which represents a flight.<?xml declaration tag.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.| Field and Type | Description |
|---|---|
origin_airporttype: string | Required. The IATA code for the origin. Supports airport and city IATA code. Use IATA Code Search to validate your IATA codes. Tip: To improve performance, avoid using a space for this unique identifier field. Example: SFO |
destination_airporttype: string | Required. The IATA code for the destination. Supports airport and city IATA code. Use IATA Code Search to validate your IATA codes. Tip: To improve performance, avoid using a space for this unique identifier field. Example: JFK |
imagetype: object | Required. Max items: 20 Image data for this flight. You can provide up to 20 images for the flight. 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. |
descriptiontype: string | Required. Max size: 5000 A short paragraph describing the route. |
urltype: string | Required only if you do not specify a deep link on ad level. You can use the Deep Link field in Ads Manager, or template_url_spec in the API).Link to the external site where you can view the flight. If a deep link is specified on ad level, that will take precedence. |
origin_citytype: string | The name of the origin city. Example: San Francisco |
destination_citytype: string | The name of the destination city. Example: New York |
pricetype: string | Price of the flight. You must specify the value with currency. Example: 99.99 USD |
applinktype: element | Deep link straight to the flight details page in your mobile app using App Links. You can specify deep links (in order of precedence, highest to lowest):
|
one_way_pricetype: string | One-way price of the flight. You must specify the value with currency. Example: 99.99 USD |
prioritytype: integer | Priority of the flight. Value from 0(lowest priority) to 5(highest priority). Flight without this value will have priority=0. Example: 5 |
statusType: 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: activeNote: 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. |
internal_labelType: string | Add internal labels to help filter items when you create product sets. For example, you could add a “summer” label to all items that are part of a summer promotion and then filter those items into a set. Labels are only visible to you Enclose each label in single quotes (‘) and separate multiple labels with commas (,). Don’t include white spaces at the beginning or end of a label. Character limit: Up to 5,000 labels per product and 110 characters per label. Example (TSV, XLSX, Google Sheets): [‘summer’,’trending’] Example (CSV): “[‘summer’,’trending’]” Note: If you’re currently using custom labels ( custom_label_0 to custom_label_4) for filtering product sets, switching to internal labels (internal_label) instead is recommended. Unlike custom labels, you can add or update internal labels as often as needed without sending items through policy review each time, which can impact ad delivery.This field was previously called product_tags. While we still support the old field name, we recommend that you use the new name. |
| Field Name and Type | Description |
|---|---|
urltype: string | Required. URL of the flight image. Follow these image specifications:
|
tagtype: string | A string that represents what’s in the image. There can be multiple tags associated with an image. Examples:
Optional. 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. |
| Field Name and Type | Description |
|---|---|
ios_urltype: string | A custom scheme for the iOS app. Example: example-ios://electronic |
ios_app_store_idtype: string | The app ID for the App Store. Example: 1234 |
ios_app_nametype: string | The name of the app (suitable for display). Example: Electronic Example iOS |
iphone_urltype: string | A custom scheme for the iPhone app. Example: example-iphone://electronic |
iphone_app_store_idtype: string | The app ID for the App Store. Example: 5678 |
iphone_app_nametype:string | The name of the app (suitable for display). Example: Electronic Example iPhone |
ipad_urltype: string | A custom scheme for the iPhone app. Example: example-ipad://electronic |
ipad_app_store_idtype: string | The app ID for the App Store. Example: 9010 |
ipad_app_nametype: string | The name of the app (suitable for display). Example: Electronic Example iPad |
android_urltype: string | A custom scheme for the Android app. Example: example-android://electronic |
android_packagetype: string | A fully-qualified package name for intent generation. Exammple: com.electronic |
android_app_nametype: string | The name of the app (suitable for display). Example: Electronic Example Android |
POST request to your flight catalog and set generate_items_from_events to true.curl \
-F 'flight_catalog_settings={generate_items_from_events:1}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<VERSION>/<CATALOG_ID>
curl \
-F 'fallback_image_url=http://example.com/some.image_1.jpg' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<VERSION>/<CATALOG_ID>
curl \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<VERSION>/<CATALOG_ID>/flights
vertical to flights:curl -X POST \
-F 'name="Test Flight Catalog"' \
-F 'vertical="flights"' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v10.0/{business-id}/owned_product_catalogs
curl -X POST \
-F 'name="Test Feed"' \
-F 'schedule={
"interval": "DAILY",
"url": "http://www.example.com/sample_feed.tsv",
"hour": "22"
}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<PRODUCT_CATALOG_ID>/product_feeds
{ "id" : <PRODUCT_FEED_ID> }
PRODUCT_FEED_ID:curl \
-F "url=http://www.example.com/sample_feed.xml" \
-F "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/<PRODUCT_FEED_ID>/uploads
curl \ -F 'name=Test Flight Set' \ -F 'filter={"origin_airport":{"eq":"LHR"}}' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v2.11/<PRODUCT_CATALOG_ID>/product_sets
filter parameter is made up of the following operators and data:| Operators | Filter 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. |
| Data | The data being filtered |
|---|---|
origin_airport | The IATA code for the origin. |
destination_airport | The IATA code for the destination. |
price | Price of the flight. The price is in cents. |
description | A short paragraph describing the route. |
curl \
-F 'external_event_sources=["<PIXEL_ID>","<APP_ID>"]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<PRODUCT_CATALOG_ID>/external_event_sources
| Parameter Name & Type | Description |
|---|---|
external_event_sourcestype: int[] | A list of Pixel and App IDs to associate with the catalog. |