// The definition of a service provided by a merchant.messageService{// An opaque string from an aggregator partner which uniquely identifies a// merchant.// Required.stringmerchant_id=1;// An opaque string of ASCII characters from an aggregator partner which// uniquely identifies the service.// Must be equal to or shorter than 100 characters.// Required.stringservice_id=2;// The name of the service, e.g. "Men's haircut". Possibly in several locales.// Required.Textlocalized_service_name=3;// The name of the service category, e.g. "Haircut", "Shave", "Color".// Possibly in several locales. The category will be used to group services// when presented to the consumer.// Note: For merchants without categories on your website, you can group all// services into one category and use a generic name such as "All Services"// or "General." Merchants who have categories you should try to replicate// those categories.// Required.Textlocalized_service_category=4;// The user-visible description of the service, possibly in several locales.// This field is not required for every services, but is strongly// recommended to be filled when available.// Important notes:// * The recommended maximum size is 2,000 characters.// Optional.Textlocalized_service_description=5;// The price of the service.// Note, if a service (or merchant) doesn't provide price up front, use// RangeInterpretation.INTERPRETATION_NOT_DISPLAYED as PriceInterpretation.// Required.ServicePriceservice_price=6;// An action link related to this service. Action link should deep link to the// 3P page with the preselected service.// Note: Only the first entry will be used. Other provided action links will// be ignored.// Optional, but highly recommended if service-level deep links are supported.// This enables service-level entrypoints on Google if provided.// Note: For merchants participating in Healthcare vertical should not provide// service-level deep link.repeatedActionLinkaction_link=8;// Duration of the service.// Note, if a service (or merchant) doesn't provide service duration, use// RangeInterpretation.INTERPRETATION_NOT_DISPLAYED as DurationInterpretation.// Required.ServiceDurationservice_duration=9;// Ranking hint for this service.// Optional.ServiceRankingHintranking_hint=10;}
Text – Définition
// A possibly-localized text payload. Some Text fields may contain marked-up// content.messageText{// Text value in an unknown locale, which will be displayed if// `localized_value` for the user locale is empty or missing. The locale for// this value may depend on the partner or service provider, and it should not// be assumed to be any specific language.// Required.stringvalue=1;// Per-locale text values.// Optional.repeatedLocalizedStringlocalized_value=2;}
Définition de l'interprétation de la plage
// Describes how a range of values should be interpreted and displayed to the// user.enumRangeInterpretation{// When range represents an exact value (such that min value equals to max)// Will be interpreted as a specific value.//// Examples:// $20 for a yoga class; 50 min haircut durationINTERPRETATION_EXACT=1;// When only minimum of the range is known and displayed to consumers.// The maximum value will be decided based on other configurations// (e.g., price may go up if consumer selecting add-ons)//// Examples:// $30 for dog grooming, but additional consumer choices may increase the// price// 40 min massage, but there are also options for extending the time.INTERPRETATION_STARTS_AT=2;// When the range is variable and both minimum and maximum values are known// and displayed to consumers.//// Examples:// $30 - $60 for dog grooming, the exact price will depend on additional// consumer choices.// 1 - 3 hour hair color service.INTERPRETATION_RANGE=3;// When the range is variable and no min value is known. No information is// displayed to consumers ahead of time.//// Examples:// A consultation for a home serviceINTERPRETATION_NOT_DISPLAYED=4;}
Définition du prix du service
// The price of a service.messageServicePrice{// Describes how a Price should be interpreted and displayed to the user.RangeInterpretationprice_interpretation=1;// The minimum price of the service. Must be set if price_interpretation is// set to EXACT, STARTS_AT, or RANGE.// price is known.// Required.Pricemin_price=2;// The maximum price of the service. Must be set if price_interpretation is// set to RANGE.// Optional.Pricemax_price=3;}
Price – Définition
// The price of a service or a fee.messagePrice{// The price in micro-units of the currency.// For example: 1.95 USD is 1950000 in micro-units.// If your price contains fractions of the smallest currency unit, then it// will be rounded using nearest even rounding (e.g. 2.5 cents rounded// to 2 cents, 3.5 cents rounded to 4 cents, 0.5 cents rounded to 0 cents,// 2.51 cents rounded to 3 cents).// Required.int64price_micros=1;// The currency of the price that is defined in ISO 4217.// Required.stringcurrency_code=2;// An optional and opaque string that identifies the pricing option that is// associated with the extended price.// Optional.stringpricing_option_tag=3;}
ActionLink – Définition
// An action URL for a service.messageActionLink{// The entry point URL for this action link.// Required.stringurl=1;}
Définition de la durée du service
messageServiceDuration{// Describes how a service duration should be interpreted and displayed to// the user.// Note, if a service (or merchant) doesn't provide service duration, use// 'INTERPRETATION_NOT_DISPLAYED' as DurationInterpretation.// Required.RangeInterpretationduration_interpretation=1;// The minimum duration (in seconds) that the service may take. Must be set// if duration_interpretation is set to EXACT, STARTS_AT, or RANGE.// Required.int64min_duration_sec=2;// The maximum duration (in seconds) that the service may take. Must be set// if duration_interpretation is set to RANGE.// Optional.int64max_duration_sec=3;}
Définition de l'indice de classement des services
// Ranking hints for a service.messageServiceRankingHint{// Arbitrary partner or merchant assigned rank for this service.//// Services with a lower score will be displayed more prominently (e.g.// displayed higher in lists).//// Ranking hints affect both the ordering of services within a service// category, and the ordering of the categories themselves. The ranking hint// for a category is assumed to be the minimum ranking hint of any item in the// category. Note that other factors may also influence the final ranking,// such as price, user history, etc.//// The recommended approach is to define a total ordering on all the services,// by assigning each one a unique integer ranking hint and ensuring that// ranking hint values don’t overlap between categories. For example, if we// want the preferred ordering of categories and services to be:// Category 1: A, B, C// Category 2: D, E, F// Then the simplest ranking hint scheme to indicate this would be:// A=1, B=2, C=3, D=4, E=5, F=6.//// Optional. Must be non-negative if set.floatscore=1[features.field_presence=EXPLICIT];}
LocalizedString – Définition
// Instance of a string in one locale.messageLocalizedString{// IETF BCP 47 language code, such as "en", "mas", "zh-Hant", "de-CH-1901".// See http://www.w3.org/International/articles/language-tags/.// Required.stringlocale=1;// Message in the locale above (UTF-8).// Required.stringvalue=2;}
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/03/01 (UTC).
[null,null,["Dernière mise à jour le 2025/03/01 (UTC)."],[[["Services should be uploaded in JSON format, adhering to the provided schema definition and sample feed."],["Each service listing requires a unique `merchant_id`, `service_id`, name, category, price, and duration."],["Service descriptions and action links (for deep linking) are optional but strongly recommended for enhanced user experience."],["Prices and durations can be specified as exact values, starting points, or ranges, allowing flexibility in service representation."],["The `ranking_hint` field enables merchants to influence the display order of services and categories."]]],["Services are defined by unique identifiers (`merchant_id`, `service_id`), names, and categories, supporting multiple languages. Each service includes a description, price (with `min_price`, `max_price`, and interpretation), an optional action link for deep linking, and a duration (with similar interpretation). Services can have a ranking hint to influence display order. The service feed is provided in JSON format and includes `localized_service_name`, `localized_service_category` and `localized_service_description`.\n"]]