Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
REST Resource: attributes
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
方法 |
|
傳回特定主要類別和國家/地區的地點可用的屬性清單。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003e\u003cstrong\u003eAttributeMetadata\u003c/strong\u003e provides display information for attributes, such as localized names and grouping headings, including details like value type, whether it's repeatable, and supported values.\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eAttributeValueMetadata\u003c/strong\u003e offers metadata for supported attribute values, including the value itself and its localized display name, meant to be used in conjunction with the attribute display name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eattributes\u003c/code\u003e resource allows you to list available attributes based on a location's primary category and country using the \u003ccode\u003elist\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# REST Resource: attributes\n\n- [Resource: AttributeMetadata](#AttributeMetadata)\n - [JSON representation](#AttributeMetadata.SCHEMA_REPRESENTATION)\n- [AttributeValueMetadata](#AttributeValueMetadata)\n - [JSON representation](#AttributeValueMetadata.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AttributeMetadata\n---------------------------\n\nMetadata for an attribute. Contains display information for the attribute, including a localized name and a heading for grouping related attributes together.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"attributeId\": string, \"valueType\": enum (/my-business/reference/rest/v4/AttributeValueType), \"displayName\": string, \"groupDisplayName\": string, \"isRepeatable\": boolean, \"valueMetadata\": [ { object (/my-business/reference/rest/v4/attributes#AttributeValueMetadata) } ], \"isDeprecated\": boolean } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `attributeId` | `string` The ID of the attribute. |\n| `valueType` | `enum (`[AttributeValueType](/my-business/reference/rest/v4/AttributeValueType)`)` The value type for the attribute. Values set and retrieved should be expected to be of this type. |\n| `displayName` | `string` The localized display name for the attribute, if available; otherwise, the English display name. |\n| `groupDisplayName` | `string` The localized display name of the group that contains this attribute, if available; otherwise, the English group name. Related attributes are collected into a group and should be displayed together under the heading given here. |\n| `isRepeatable` | `boolean` If true, the attribute supports multiple values. If false, only a single value should be provided. |\n| `valueMetadata[]` | `object (`[AttributeValueMetadata](/my-business/reference/rest/v4/attributes#AttributeValueMetadata)`)` For some types of attributes (for example, enums), a list of supported values and corresponding display names for those values is provided. |\n| `isDeprecated` | `boolean` If true, the attribute is deprecated and should no longer be used. If deprecated, updating this attribute will not result in an error, but updates will not be saved. At some point after being deprecated, the attribute will be removed entirely and it will become an error. |\n\nAttributeValueMetadata\n----------------------\n\nMetadata for supported attribute values.\n\n| JSON representation ||\n|---------------------------------------------------|---|\n| ``` { \"value\": value, \"displayName\": string } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | `value (`[Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value)` format)` The attribute value. |\n| `displayName` | `string` The display name for this value, localized where available; otherwise, in English. The value display name is intended to be used in context with the attribute display name. For example, for a \"WiFi\" enum attribute, this could contain \"Paid\" to represent paid Wi-Fi. |\n\n| Methods ------- ||\n|------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| ### [list](/my-business/reference/rest/v4/attributes/list) | Returns the list of available attributes that would be available for a location with the given primary category and country. |"]]