Flight Ads uses four events. Every event has a set of parameters, see event parameter details. Use the Facebook Pixel on your website, and mobile app events in your Android app and iOS app.
This guide assumes you already have a Meta Pixel installed. If not, see Using Marketing API with the Meta Pixel.
Make sure the pixel base code is already loaded when you fire an event. If you use a tag manager, make sure you include the tag that contains the pixel code on every page. The tag should appear before the tag that contains the pixel event code. Use the Meta Pixel Helper to validate your pixel implementation.
// This sample assumes the Facebook pixel base code is already loaded fbq('track', 'Search', { // Fire the 'Search' event on the search results page // IF YOU DO NOT TO USE A RECOMMENDED PARAM, THEN REMOVE, DON'T LEAVE EMPTY // RECOMMENDED: set to 'flight' content_type: 'flight', // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_departure_date: '2018-12-12', // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_departure_date: '2018-12-19', // REQUIRED: use official IATA code of departure airport origin_airport: 'SFO', // REQUIRED: use official IATA code of destination airport destination_airport: 'JFK', // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_arrival_date: '2018-12-12', // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_arrival_date: '2018-12-20', // RECOMMENDED: number of adults on flight num_adults: 1, // RECOMMENDED: number of children on flight num_children: 0, // RECOMMENDED: number of infants num_infants: 0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' travel_class : 'economy', // RECOMMENDED: price for the flight // Use lowest price if you show multiple options on this page // Should not include cost of extras, such as seat selection, extra luggage price : 100, // RECOMMENDED: currency of the flight price // Must match currency of catalog currency: 'USD' });
// This sample assumes the FB Pixel base code is already loaded fbq('track', 'ViewContent', { // Fire the 'ViewContent' event when the user has selected the flight(s) // IF YOU DO NOT TO USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY // RECOMMENDED: set to 'flight' content_type: 'flight', // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_departure_date: '2018-12-12', // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_departure_date: '2018-12-19', // REQUIRED: use official IATA code of departure airport origin_airport: 'SFO', // REQUIRED: use official IATA code of destination airport destination_airport: 'JFK', // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_arrival_date: '2018-12-12', // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_arrival_date: '2018-12-20', // RECOMMENDED: number of adults on flight num_adults: 1, // RECOMMENDED: number of children on flight num_children: 0, // RECOMMENDED: number of infants num_infants: 0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' travel_class : 'economy' });
// Assumes FB Pixel base code already loaded fbq('track', 'InitiateCheckout', { // Fire the 'InitiateCheckout' event when the user enters the payment screen // IF YOU DO NOT TO USE A RECOMMENDED PARAM, THEN REMOVE, DON'T LEAVE IT EMPTY // RECOMMENDED: set to 'flight' content_type: 'flight', // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_departure_date: '2018-12-12', // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_departure_date: '2018-12-19', // REQUIRED: use official IATA code of departure airport origin_airport: 'SFO', // REQUIRED: use official IATA code of destination airport destination_airport: 'JFK', // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_arrival_date: '2018-12-12', // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_arrival_date: '2018-12-20', // RECOMMENDED: number of adults on flight num_adults: 1, // RECOMMENDED: number of children on flight num_children: 0, // RECOMMENDED: number of infants num_infants: 0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' travel_class : 'economy' });
// Assumes FB Pixel base code already loaded fbq('track', 'Purchase', { // Fire the 'Purchase' event on the booking confirmed page // IF YOU DO NOT TO USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY // RECOMMENDED: set to 'flight' content_type: 'flight', // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_departure_date: '2018-12-12', // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_departure_date: '2018-12-19', // REQUIRED: use official IATA code of departure airport origin_airport: 'SFO', // REQUIRED: use official IATA code of destination airport destination_airport: 'JFK', // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD departing_arrival_date: '2018-12-12', // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD returning_arrival_date: '2018-12-20', // RECOMMENDED: number of adults on flight num_adults: 1, // RECOMMENDED: number of children on flight num_children: 0, // RECOMMENDED: number of infants num_infants: 0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' travel_class : 'economy', // REQUIRED: Currency of payment // Must match currency of catalog currency: 'USD', // Total payment amount: flight price + extras + payment charges etc value: 150 });
This guide assumes you have the Facebook SDK implemented in your Android mobile app. If not, see the Android SDK. If you use a measurement partner, make sure they pass required events to Facebook.
Bundle parameters = new Bundle(); // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE IT EMPTY // RECOMMENDED: set to 'flight' parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, "flight"); // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_departure_date", "2018-12-12"); // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_departure_date", "2018-12-19"); // REQUIRED: use official IATA code of departure airport parameters.putString("fb_origin_airport", "SFO"); // REQUIRED: use official IATA code of destination airport parameters.putString("fb_destination_airport", "JFK"); // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_arrival_date", "2018-12-12"); // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_arrival_date", "2018-12-20"); // RECOMMENDED: number of adults on flight parameters.putInt("fb_num_adults", 1); // RECOMMENDED: number of children on flight parameters.putInt("fb_num_children", 0); // RECOMMENDED: number of infants parameters.putInt("fb_num_infants", 0); // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' parameters.putString("fb_travel_class", "economy"); // RECOMMENDED: price for the flight // Use lowest price if you show multiple options on this page // Should not include cost of extras (seat selection, extra luggage etc) parameters.putFloat("fb_price", 100.00); // RECOMMENDED: currency of the flight price // Must match currency of catalog parameters.putString("fb_currency", "USD"); // Fire the 'Search' event on the search results page logger.logEvent( AppEventsConstants.EVENT_NAME_SEARCHED, parameters );
Bundle parameters = new Bundle(); // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY // RECOMMENDED: set to 'flight' parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, "flight"); // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_departure_date", "2018-12-12"); // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_departure_date", "2018-12-19"); // REQUIRED: use official IATA code of departure airport parameters.putString("fb_origin_airport", "SFO"); // REQUIRED: use official IATA code of destination airport parameters.putString("fb_destination_airport", "JFK"); // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_arrival_date", "2018-12-12"); // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_arrival_date", "2018-12-20"); // RECOMMENDED: number of adults on flight parameters.putInt("fb_num_adults", 1); // RECOMMENDED: number of children on flight parameters.putInt("fb_num_children", 0); // RECOMMENDED: number of infants parameters.putInt("fb_num_infants", 0); // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' parameters.putString("fb_travel_class", "economy"); // Fire the 'ViewContent' event when the user has selected the flight logger.logEvent( AppEventsConstants.EVENT_NAME_VIEWED_CONTENT, parameters );
Bundle parameters = new Bundle(); // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY // RECOMMENDED: set to 'flight' parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, "flight"); // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in (using template tags) // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_departure_date", "2018-12-12"); // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_departure_date", "2018-12-19"); // REQUIRED: use official IATA code of departure airport parameters.putString("fb_origin_airport", "SFO"); // REQUIRED: use official IATA code of destination airport parameters.putString("fb_destination_airport", "JFK"); // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_arrival_date", "2018-12-12"); // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_arrival_date", "2018-12-20"); // RECOMMENDED: number of adults on flight parameters.putInt("fb_num_adults", 1); // RECOMMENDED: number of children on flight parameters.putInt("fb_num_children", 0); // RECOMMENDED: number of infants parameters.putInt("fb_num_infants", 0); // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' parameters.putString("fb_travel_class", "economy"); // Fire the 'InitiateCheckout' event when the user enters the payment screen logger.logEvent( AppEventsConstants.EVENT_NAME_INITIATED_CHECKOUT, parameters );
// REQUIRED: total value of booking BigDecimal purchaseAmount = BigDecimal.valueOf(1200); // REQUIRED: currency of booking Currency currency = Currency.getInstance("USD"); Bundle parameters = new Bundle(); // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE IT EMPTY // RECOMMENDED: set to 'flight' parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, "flight"); // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_departure_date", "2018-12-12"); // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_departure_date", "2018-12-19"); // REQUIRED: use official IATA code of departure airport parameters.putString("fb_origin_airport", "SFO"); // REQUIRED: use official IATA code of destination airport parameters.putString("fb_destination_airport", "JFK"); // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_departing_arrival_date", "2018-12-12"); // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD parameters.putString("fb_returning_arrival_date", "2018-12-20"); // RECOMMENDED: number of adults on flight parameters.putInt("fb_num_adults", 1); // RECOMMENDED: number of children on flight parameters.putInt("fb_num_children", 0); // RECOMMENDED: number of infants parameters.putInt("fb_num_infants", 0); // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' parameters.putString("fb_travel_class", "economy"); // Use the built-in SDK method when the booking is confirmed logger.logPurchase( purchaseAmount, currency, parameters );
This guide assumes you already have the Facebook SDK implemented in your iOS mobile app. If not, see iOS SDK. If you use a measurement partner, make sure they pass the required events to Facebook.
// Fire the 'Search' event on the search results page [[FBSDKAppEvents shared] logEvent:FBSDKAppEventNameSearched // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY parameters:@{ // REQUIRED: DO NOT change this, must be set to 'flight' FBSDKAppEventParameterNameContentType : @"flight", // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_departure_date" : @"2018-12-12", // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_departure_date" : @"2018-12-19", // REQUIRED: use official IATA code of departure airport @"fb_origin_airport" : @"SFO", // REQUIRED: use official IATA code of destination airport @"fb_destination_airport" : @"JFK", // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_arrival_date" : @"2018-12-12", // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_arrival_date" : @"2018-12-20", // RECOMMENDED: number of adults on flight @"fb_num_adults" : @1, // RECOMMENDED: number of children on flight @"fb_num_children" : @0, // RECOMMENDED: number of infants @"fb_num_infants" : @0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' @"fb_travel_class" : @"economy", // RECOMMENDED: price for the flight // Use lowest price if you show multiple options on this page // Should not include cost of extras: seat selection, extra luggage etc @"fb_price" : @100.00, // RECOMMENDED: currency of the flight price // Must match currency of catalog @"fb_currency" : @"USD" } ];
// Fire 'ViewContent' event when the user selects the flight [[FBSDKAppEvents shared] logEvent:FBSDKAppEventNameViewedContent // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY parameters:@{ // DO NOT change this, must be set to 'flight' FBSDKAppEventParameterNameContentType : @"flight", // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates (using a booking window) // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_departure_date" : @"2018-12-12", // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_departure_date" : @"2018-12-19", // REQUIRED: use official IATA code of departure airport @"fb_origin_airport" : @"SFO", // REQUIRED: use official IATA code of destination airport @"fb_destination_airport" : @"JFK", // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_arrival_date" : @"2018-12-12", // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_arrival_date" : @"2018-12-20", // RECOMMENDED: number of adults on flight @"fb_num_adults" : @1, // RECOMMENDED: number of children on flight @"fb_num_children" : @0, // RECOMMENDED: number of infants @"fb_num_infants" : @0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' @"fb_travel_class" : @"economy" } ];
// Fire 'InitiateCheckout' event when user reaches payment screen [[FBSDKAppEvents shared] logEvent:FBSDKAppEventNameInitiatedCheckout // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY parameters:@{ // REQUIRED: DO NOT change this, must be set to 'flight' FBSDKAppEventParameterNameContentType : @"flight", // HIGHLY RECOMMENDED: departure date // Allows you to target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_departure_date" : @"2018-12-12", // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_departure_date" : @"2018-12-19", // REQUIRED: use official IATA code of departure airport @"fb_origin_airport" : @"SFO", // REQUIRED: use official IATA code of destination airport @"fb_destination_airport" : @"JFK", // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_arrival_date" : @"2018-12-12", // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_arrival_date" : @"2018-12-20", // RECOMMENDED: number of adults on flight @"fb_num_adults" : @1, // RECOMMENDED: number of children on flight @"fb_num_children" : @0, // RECOMMENDED: number of infants @"fb_num_infants" : @0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' @"fb_travel_class" : @"economy" } ];
// Fire 'Purchase' event when the booking confirmed // REQUIRED: total value of booking [[FBSDKAppEvents shared] logPurchase:150 // REQUIRED: currency of booking currency:@"USD" // IF YOU DO NOT USE A RECOMMENDED PARAM, REMOVE IT, DON'T LEAVE EMPTY parameters:@{ // REQUIRED: DO NOT change this, must be set to 'flight' FBSDKAppEventParameterNameContentType : @"flight", // HIGHLY RECOMMENDED: departure date // Target people based on their travel dates, using a booking window // Improves the landing experience with travel dates filled in, using template tags // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_departure_date" : @"2018-12-12", // HIGHLY RECOMMENDED: return date, in case of round trip, remove otherwise // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_departure_date" : @"2018-12-19", // REQUIRED: use official IATA code of departure airport @"fb_origin_airport" : @"SFO", // REQUIRED: use official IATA code of destination airport @"fb_destination_airport" : @"JFK", // RECOMMENDED: arrival date of departure flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_departing_arrival_date" : @"2018-12-12", // RECOMMENDED: arrival date of return flight // use YYYYMMDD, YYYY-MM-DD, YYYY-MM-DDThh:mmTZD or YYYY-MM-DDThh:mm:ssTZD @"fb_returning_arrival_date" : @"2018-12-20", // RECOMMENDED: number of adults on flight @"fb_num_adults" : @1, // RECOMMENDED: number of children on flight @"fb_num_children" : @0, // RECOMMENDED: number of infants @"fb_num_infants" : @0, // RECOMMENDED: travel class // must be 'economy', 'premium', 'business' or 'first' @"fb_travel_class" : @"economy" } ];
On mobile, the parameter names are different than for Facebook Pixel. Often prepended by fb_
, with some exceptions, such as value
versus _valueToSum
.
Parameter Name and Type | Description |
---|---|
type: string or string[] | Recommended. Must be |
type: string | Highly recommended. The date and time for start of the outbound journey. We accept dates in Examples:
|
type: string | Highly recommended for round trips. The date and time for start of the return journey. We accept the same date formats as listed for |
type: string | Required for Currency for the Example: |
type: float | Required for A total price of the booking. This number quantifies the value of this event to the advertiser. Example: |
type: string | The date and time for arrival at the destination of the outbound journey. Use the same date formats listed for |
type: string | The date and time when the return journey is done. Use the same date formats listed for |
type: string or string[] | If you have a destination catalog, you can associate one or more destinations in this catalog with a specific flight event. For instance, link a particular route to a nearby museum and a nearby beach, both of which are destinations in the catalog. Example: |
type: string | Number of adults flying. When provided, you can display this in the ad using template tags. Example: |
type: int | Number of children flying. When provided, you can display this in the ad using template tags. Example: |
type: int | Number of infants flying. When provided, you can display this in the ad using template tags. Example: |
type: float | The lowest price from search results for the selected route and dates. For Example: |
type: string | Must be Example: |
type: float | Represents the relative value of this potential customer to advertiser. Example: |
type: int | Indicate the preferred number of stops the user is looking for. Example: |