添加结构化商品数据
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助价格表,商家可以直接在 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"
}
}
]
}
]
}
]
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003e\u003cstrong\u003ePrice lists are outdated\u003c/strong\u003e and replaced by Food Menus and Services for sharing business offerings on Google Search and Maps.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can use structured offering data, like price lists, to \u003cstrong\u003edisplay food and service offerings directly on their Google Business Profile\u003c/strong\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePrice lists utilize the \u003ccode\u003ePriceList\u003c/code\u003e object and structured data to showcase menus and service options with details like descriptions and pricing.\u003c/p\u003e\n"],["\u003cp\u003eAlthough deprecated, price lists previously allowed businesses to \u003cstrong\u003eadd detailed menu and service information using JSON requests\u003c/strong\u003e.\u003c/p\u003e\n"]]],["Businesses can share their offerings on Google Search and Maps using structured data. Price lists, though deprecated, allowed adding business data like food menus or services via the `PriceList` object. This involved sending a PATCH request to update location data. The request included details like `priceListId`, `labels`, `sourceUrl`, `sections`, and individual `items` with prices and descriptions. Examples for a breakfast menu and an oil change service were provided, showcasing structured data formats. The new methods are FoodMenus and Services.\n"],null,["# Add structured offering data\n\n\u003cbr /\u003e\n\n| **Important:** priceLists are deprecated in favor of [FoodMenus](/my-business/content/update-food-menus) and [Services](/my-business/content/services).\n\nPrice lists allow businesses to easily share everything they have to offer\ndirectly on Google Search and Maps. You can create price lists with the use of\nstructured offering data, which allows you to add business data to your listing.\nFrom food menus to service offerings, let your customers see what you have to\noffer before they walk in the door.\n\nThe following is an example of structured menu data in Google Search:\n\nMenu data\n---------\n\nYou can add structured menu data, like a food menu, to a location with the use\nof the [PriceList](/my-business/reference/rest/v4/accounts.locations#pricelist)\nobject.\n\nThe following JSON request shows how to publish a breakfast menu to a\nlocation. The response contains an instance of the updated\n`Location` object.\nHTTP \n\n```scdoc\nPATCH\nhttps://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}?updateMask=priceLists\n {\n \"priceLists\": [\n {\n \"priceListId\": \"Breakfast\",\n \"labels\": [\n {\n \"displayName\": \"Breakfast\",\n \"description\": \"Tasty Google Breakfast\",\n \"languageCode\": \"en\"\n }\n ],\n \"sourceUrl\": \"http://www.google.com/todays_menu\",\n \"sections\": [\n {\n \"sectionId\": \"entree_menu\",\n \"sectionType\":\"FOOD\",\n \"labels\": [\n {\n \"displayName\": \"Entrées\",\n \"description\": \"Breakfast Entrées\",\n \"languageCode\": \"en\"\n }\n ],\n \"items\": [\n {\n \"itemId\": \"scramble\",\n \"labels\": [\n {\n \"displayName\": \"Big Scramble\",\n \"description\": \"A delicious scramble filled with Potatoes, Eggs, \n Bell Peppers, and Sausage\",\n \"languageCode\": \"en\"\n }\n ],\n \"price\": {\n \"currencyCode\": \"USD\",\n \"units\": \"12\",\n \"nanos\": \"200000000\"\n }\n },\n {\n \"itemId\": \"steak_omelette\",\n \"labels\": [\n {\n \"displayName\": \"Steak Omelette\",\n \"description\": \"Three egg omelette with grilled prime rib, \n fire-roasted bell peppers and onions, saut\\u00e9ed mushrooms\n and melted Swiss cheese\",\n \"languageCode\": \"en\"\n }\n ],\n \"price\": {\n \"currencyCode\": \"USD\",\n \"units\": \"15\",\n \"nanos\": \"750000000\"\n }\n }\n ]\n }\n ]\n }\n ]\n}\n```\n\nService data\n------------\n\nIf your business offers different service options, you can add structured\nservices data to a location with the use of the\n[PriceList](/my-business/reference/rest/v4/accounts.locations#pricelist) object.\n\nThe following JSON request shows how to publish a service offering to a\nlocation. The response contains an instance of the updated\n`Location` object.\nHTTP \n\n```scdoc\nPATCH\nhttps://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}?updateMask=priceLists\n {\n \"priceLists\": [\n {\n \"priceListId\": \"Oil Change\",\n \"labels\": [\n {\n \"displayName\": \"Oil Change\",\n \"description\": \"Caseys Qwik Oil Change\",\n \"languageCode\": \"en\"\n }\n ],\n \"sourceUrl\": \"http://www.google.com/todays_services\",\n \"sections\": [\n {\n \"sectionId\": \"oil_services\",\n \"sectionType\":”SERVICES”,\n \"labels\": [\n {\n \"displayName\": \"Services\",\n \"description\": \"Oil Changes\",\n \"languageCode\": \"en\"\n }\n ],\n \"items\": [\n {\n \"itemId\": \"20-minute-oil-change\",\n \"labels\": [\n {\n \"displayName\": \"20 Minute Oil Change\",\n \"description\": \"Quick oil change and filter service.\",\n \"languageCode\": \"en\"\n }\n ],\n \"price\": {\n \"currencyCode\": \"USD\",\n \"units\": \"30\",\n \"nanos\": \"200000000\"\n }\n },\n {\n \"itemId\": \"full_service_oil_change\",\n \"labels\": [\n {\n \"displayName\": \"Full Service Oil Change\",\n \"description\": \"Quick oil change, filter service, and brake inspection.\",\n \"languageCode\": \"en\"\n }\n ],\n \"price\": {\n \"currencyCode\": \"USD\",\n \"units\": \"45\",\n \"nanos\": \"750000000\"\n }\n }\n ]\n }\n ]\n }\n ]\n}\n```"]]