Flight Ads verwenden vier Events. Jedes Event verfügt über verschiedene Parameter. Eine Liste findest du in den Details zu Event-Parametern. Verwende das Facebook-Pixel auf deiner Webseite und mobile App-Events in deiner Android- oder iOS-App.
Event | Auslösung | Code-Beispiel |
---|---|---|
| Auf der Ergebnisseite der Flugsuche | |
| Wenn der Nutzer den Flug/die Flüge ausgewählt hat | |
| Wenn der Nutzer den Zahlungsbildschirm erreicht | |
| Auf der Seite mit der Buchungsbestätigung |
Dieser Leitfaden setzt voraus, dass du bereits ein Facebook-Pixel installiert hast. Informationen hierzu findest du unter Verwenden der Marketing API mit dem Pixel.
Stelle sicher, dass der Pixel-Basiscode bereits geladen wurde, bevor du ein Event auslöst. Wenn du einen Tag-Manager verwendest, musst du das Tag, das den Pixel-Code enthält, zur jeder Seite hinzufügen. Das Tag muss vor dem Tag stehen, das den Pixel-Event-Code enthält. Verwende das Hilfsprogramm für das Facebook-Pixel, um die Pixel-Implementierung zu überprüfen.
// 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 });
Dieser Leitfaden setzt voraus, dass du bereits das Facebook-SDK in deine mobile Android-App implementiert hast. Entsprechende Informationen findest du unter Android-SDK. Wenn du einen Measurement Partner verwendest, stelle sicher, dass die erforderlichen Events an Facebook übermittelt werden.
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 );
Dieser Leitfaden setzt voraus, dass du bereits das Facebook-SDK in deine mobile iOS-App implementiert hast. Entsprechende Informationen findest du unter iOS-SDK. Wenn du einen Measurement Partner verwendest, stelle sicher, dass die erforderlichen Events an Facebook übermittelt werden.
// 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" } ];
Die Parameternamen auf Mobilgeräten unterscheiden sich von denen für das Facebook-Pixel. Ihnen wird oft fb_
vorangestellt (mit einigen Ausnahmen), wie z. B. value
gegenüber _valueToSum
.
Parametername und -typ | Beschreibung |
---|---|
Typ: string oder string[] | Empfohlen. Muss |
Typ: string | Empfehlung. Das Datum und die Uhrzeit der Hinreise. Wir unterstützen Daten in den Formaten Beispiele:
|
Typ: string | Empfehlung für Reisen mit Hin- und Rückflug. Das Datum und die Uhrzeit der Rückreise. Wir unterstützen dieselben Datumsformate wie für |
Typ: string | Erforderlich für Währung für den Beispiel: |
Typ: float | Erforderlich für Der Gesamtpreis der Buchung. Diese Zahl gibt an, wie hoch der Wert dieses Events für den Werbetreibenden ist. Beispiel: |
Typ: string | Das Datum und die Uhrzeit der Ankunft am Reiseziel bei der Hinreise. Verwende dieselben Datumsformate wie für |
Typ: string | Das Datum und die Uhrzeit der Ankunft bei der Rückreise. Verwende dieselben Datumsformate wie für |
Typ: string oder string[] | Wenn du über einen Katalog mit Reisezielen verfügst, kannst du ein oder mehrere Reiseziele in diesem Katalog mit einem bestimmten Flug-Event verknüpfen. Du kannst beispielsweise eine bestimmte Route mit einem nahegelegenen Museum oder Strand verknüpfen, die beide als Reiseziele im Katalog aufgeführt sind. Beispiel: |
Typ: string | Anzahl der erwachsenen Fluggäste. Wenn angegeben, kannst du diesen Wert über Vorlagen-Tags in deiner Werbeanzeige anzeigen. Beispiel: |
Typ: int | Anzahl der mitreisenden Kinder. Wenn angegeben, kannst du diesen Wert über Vorlagen-Tags in deiner Werbeanzeige anzeigen. Beispiel: |
Typ: int | Anzahl der mitreisenden Kleinkinder. Wenn angegeben, kannst du diesen Wert über Vorlagen-Tags in deiner Werbeanzeige anzeigen. Beispiel: |
Typ: float | Der niedrigste Preis in den Suchergebnissen für die ausgewählte Route und das Datum. Gilt nur für Beispiel: |
Typ: string | Muss Beispiel: |
Typ: float | Gibt den relativen Wert dieses potenziellen Kunden für den Werbetreibenden an. Beispiel: |
Typ: int | Gibt die Anzahl der Zwischenstopps an, die der Nutzer bevorzugt. Beispiel: |