Danh sách giá giúp doanh nghiệp dễ dàng chia sẻ mọi sản phẩm và dịch vụ của mình ngay trên Google Tìm kiếm và Maps. Bạn có thể tạo danh sách giá bằng cách sử dụng dữ liệu mặt hàng được định dạng. Dữ liệu này cho phép bạn thêm dữ liệu doanh nghiệp vào trang thông tin. Từ thực đơn món ăn đến các dịch vụ mà bạn cung cấp, hãy cho khách hàng thấy những gì bạn có trước khi họ bước vào cửa hàng.
Sau đây là ví dụ về dữ liệu có cấu trúc của thực đơn trên Google Tìm kiếm:
Dữ liệu trình đơn
Bạn có thể thêm dữ liệu trình đơn có cấu trúc, chẳng hạn như trình đơn đồ ăn, vào một vị trí bằng cách sử dụng đối tượng PriceList.
Yêu cầu JSON sau đây cho biết cách phát hành thực đơn bữa sáng cho một vị trí. Phản hồi chứa một thực thể của đối tượng Location
đã cập nhật.
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" } } ] } ] } ] }
Dữ liệu dịch vụ
Nếu doanh nghiệp của bạn cung cấp nhiều lựa chọn dịch vụ, bạn có thể thêm dữ liệu dịch vụ có cấu trúc vào một vị trí bằng cách sử dụng đối tượng PriceList.
Yêu cầu JSON sau đây cho biết cách phát hành một dịch vụ cung cấp cho một vị trí. Phản hồi chứa một thực thể của đối tượng Location
đã cập nhật.
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" } } ] } ] } ] }