برای تأثیر بر ترتیب نمایش خدمات برای یک تاجر معین، ranking_hint.score را در هر Service در فید سرویس تنظیم کنید.
// Ranking hints for a service. message ServiceRankingHint{ // Arbitrary partner or merchant assigned rank for this service. // // Services with a higher score will be shown more prominently (e.g. shown // higher in lists). Note that other factors may also influence ranking, such // as price, availability, user history, etc. // // Optional. Must be non-negative if set. float score =1[features.field_presence = EXPLICIT]; }
هنگامی که چندین سرویس نمایش داده می شود (به عنوان مثال: صفحه مستقیماً بعد از دکمه "رزرو" که همه خدمات را برای انتخاب کاربر نشان می دهد)، از Service.ranking_hint.score به عنوان یکی از سیگنال ها برای سفارش خدمات استفاده می کند. هر چه امتیاز بالاتر باشد، سرویس بالاتر در صفحه نمایش داده می شود.
مثال
یک بازرگان دارای 3 سرویس "کاهش مو"، "رنگ آمیزی"، "ماساژ پوست سر و کوتاهی مو" می باشد و سفارش ترجیحی آنها به شرح زیر است:
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["Control the display order of services by setting `ranking_hint.score` within each service in the Service feed."],["Services with higher `ranking_hint.score` values are displayed more prominently."],["Google might use additional signals alongside `ranking_hint.score`, potentially altering the specified order."],["If `ranking_hint.score` is used for one service of a merchant, it should be set for all services of that merchant."],["`ranking_hint.score` values must be non-negative."]]],["To control service display order, set `ranking_hint.score` in the Service feed. Higher scores elevate a service's position. Scores must be non-negative; if used for one merchant's service, all of the merchants services must include it. Google may use other signals to influence the ranking. For example, to order services as \"Haircut,\" \"Scalp massage and Haircut,\" then \"Coloring,\" assign scores of 30.0, 20.0, and 10.0, respectively, to each.\n"]]