商家可以使用价格表轻松分享他们提供的所有商品 直接在 Google 搜索和 Google 地图上展示。您可以使用 结构化商品数据,允许您向商家信息中添加商家数据。 从菜单到服务,让客户一眼就能看到您供应的餐点 了解他们的优惠
以下是 Google 搜索中结构化菜单数据的示例:
菜单数据
您可以使用 PriceList 对象。
以下 JSON 请求展示了如何将早餐菜单发布到
位置。响应包含更新后的
Location
对象。
PATCH https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}?updateMask=priceLists { "priceLists": [ { "priceListId": "Breakfast", "labels": [ { "displayName": "Breakfast", "description": "Tasty Google Breakfast", "languageCode": "en" } ], "sourceUrl": "http://www.google.com/todays_menu", "sections": [ { "sectionId": "entree_menu", "sectionType":"FOOD", "labels": [ { "displayName": "Entrées", "description": "Breakfast Entrées", "languageCode": "en" } ], "items": [ { "itemId": "scramble", "labels": [ { "displayName": "Big Scramble", "description": "A delicious scramble filled with Potatoes, Eggs, Bell Peppers, and Sausage", "languageCode": "en" } ], "price": { "currencyCode": "USD", "units": "12", "nanos": "200000000" } }, { "itemId": "steak_omelette", "labels": [ { "displayName": "Steak Omelette", "description": "Three egg omelette with grilled prime rib, fire-roasted bell peppers and onions, saut\u00e9ed mushrooms and melted Swiss cheese", "languageCode": "en" } ], "price": { "currencyCode": "USD", "units": "15", "nanos": "750000000" } } ] } ] } ] }
服务数据
如果您的商家提供不同的服务选项,您可以添加结构化 使用 PriceList 对象。
以下 JSON 请求展示了如何将服务发布到
位置。响应包含更新后的
Location
对象。
PATCH https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}?updateMask=priceLists { "priceLists": [ { "priceListId": "Oil Change", "labels": [ { "displayName": "Oil Change", "description": "Caseys Qwik Oil Change", "languageCode": "en" } ], "sourceUrl": "http://www.google.com/todays_services", "sections": [ { "sectionId": "oil_services", "sectionType":”SERVICES”, "labels": [ { "displayName": "Services", "description": "Oil Changes", "languageCode": "en" } ], "items": [ { "itemId": "20-minute-oil-change", "labels": [ { "displayName": "20 Minute Oil Change", "description": "Quick oil change and filter service.", "languageCode": "en" } ], "price": { "currencyCode": "USD", "units": "30", "nanos": "200000000" } }, { "itemId": "full_service_oil_change", "labels": [ { "displayName": "Full Service Oil Change", "description": "Quick oil change, filter service, and brake inspection.", "languageCode": "en" } ], "price": { "currencyCode": "USD", "units": "45", "nanos": "750000000" } } ] } ] } ] }