요건
특정 판매자의 서비스 표시 순서에 영향을 미치려면 서비스 피드의 각Service
에서 ranking_hint.score
를 설정합니다.
// 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. optional float score = 1; }여러 서비스 (예: 사용자가 선택할 수 있는 모든 서비스를 표시하는 '예약' 버튼 바로 뒤의 페이지)가 표시되면
Service.ranking_hint.score
는 서비스를 주문하는 신호 중 하나로 사용됩니다. 점수가 높을수록 페이지에서 더 높은 서비스를 표시합니다.
예
한 판매자의 3가지 서비스 '헤어컷', '염색', '두피 마사지' 및 '헤어컷'에 대한 선호 순서는 다음과 같습니다.- 헤어커트
- 두피 마사지 및 헤어 커트
- 색칠하기
서비스
{ "service": [ { "price": { "currency_code": "USD", "price_micros": 20000000 }, "service_id": "haircut", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-1", "localized_service_name": { "value": "Haircut", "localized_value": [ { "locale": "en", "value": "Haircut" } ] }, "localized_description": { "value": "Get a haircut.", "localized_value": [ { "locale": "en", "value": "Get a haircut." } ] }, "ranking_hint": { "score": 30.0 } }, { "localized_service_name": { "value": "Coloring", "localized_value": [ { "locale": "en", "value": "Coloring" } ] }, "price": { "currency_code": "USD", "price_micros": 40000000 }, "service_id": "haircoloring", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-1", "localized_description": { "value": "Get your hair dyed.", "localized_value": [ { "locale": "en", "value": "Get your hair dyed." } ] }, "ranking_hint": { "score": 10.0 } }, { "localized_service_name": { "value": "Scalp massage and Haircut", "localized_value": [ { "locale": "en", "value": "Scalp massage and Haircut" } ] }, "price": { "currency_code": "USD", "price_micros": 30000000 }, "service_id": "scalpmassage", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-1", "localized_description": { "value": "Get a shampoo and scalp massage followed by a haircut.", "localized_value": [ { "locale": "en", "value": "Get a shampoo and scalp massage followed by a haircut." } ] }, "ranking_hint": { "score": 20.0 } } ] }