Skip to content

Flight Ads - Template Tags

Updated: Jun 24, 2026

When you create flight ads, use these template tags in the ad creative and deep-link URLs. When Facebook displays your ad, it replaces the template tags with that person's travel selections.

You should provide template tags in double curly brackets: {​{....}​}

Before using template tags, make sure you provide all required details through your Flight Events.

For example, the title of your ad could be:

Complete your booking to {​{flight.destination_city}​} today!

And the template URL of your ad could deep link people straight to the flight they were interested in, with the right departure and return date:

https://www.(...).com/flights?from={​{flight.origin_airport}​}&to={​{flight.destination_airport}​}&departure={​{trip.departing_departure_date date_format:Y-m-d}​}&return={​{trip.returning_departure_date date_format:Y-m-d}​}&num={​{trip.num_travelers}​}

Dynamic dates

Dynamic dates for template tags enable you to continuously update the dates that appear in your ad, without having to re-upload the data in feed. You can use these for Advantage+ catalog ads used in a particular vertical, such as for hotels, flights, destinations, automotive, and so on.

Template tags for flights

Template tagDescription
trip.currency_codeThe ISO-4217⁠ currency code (for example, "USD") passed by the advertiser in dynamic events (for example, pixel events) using the key currency. If no currency code has been passed for an item, Facebook shows the product feed's default currency.
trip.departing_departure_dateThe departure date that Facebook has collected for the user from the advertiser. If there was no departure date collected, this template tag defaults to tomorrow. Facebook supports most of the date formats provided here⁠. Example: * {​{trip.departing_departure_date}​} * {​{trip.departing_departure_date date_format:Y-m-d}​}
trip.returning_departure_dateThe return date that Facebook has collected for the user from the advertiser. If there was no return date collected, this template tag defaults to the day after tomorrow. Facebook supports most of the date formats provided here⁠. Example: * {​{trip.returning_departure_date}​} * {​{trip.returning_departure_date date_format:Y-m-d}​}
trip.num_adultsNumber of adult travelers, based on intent signals Facebook collects about a user. Currently defaults to 1, subject to change.
trip.num_childrenNumber of children travelers, based on intent signals Facebook collects about the user. Currently defaults to 0, subject to change.
trip.num_infantsNumber of infant travelers, based on intent signals Facebook collects about the user. Currently defaults to 0, subject to change.
trip.num_travelersSum of adult, children, and infant travelers, based on intent signals Facebook collects about the user. Currently defaults to 1, subject to change.
flight.destination_airportThe IATA code for the destination, such as SFO.
flight.destination_cityDestination city name from flight feed, if provided. If not, city name associated with destination airport in English, such as San Francisco.
flight.origin_airportThe IATA code for the origin, such as JFK.
flight.origin_cityOrigin city name from flight feed, if provided. If not, city name associated with destination airport in English, such as New York.
flight.descriptionFlight description provided in catalog.
flight.pricePrice of the flight. To show a price from feed, use source:feed as the option: {​{flight.price source:feed}​} to use the last-seen price from a pixel or app event, use source:event as the option: {​{flight.price source:event}​}.
flight.price type:one_wayOne-way price of the flight. For this option, you must provide a source of prices. To show a price from feed, use source:feed as the option: {​{flight.price source:feed type:one_way}​}.
flight.urlFlight URL provided in catalog.

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About