Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
REST Resource: accounts.locations.questions
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:Question
JSON 表示法 |
{
"name": string,
"author": {
object (Author )
},
"upvoteCount": integer,
"text": string,
"createTime": string,
"updateTime": string,
"topAnswers": [
{
object (Answer )
}
],
"totalAnswerCount": integer
} |
欄位 |
name |
string
僅供輸出。問題的專屬名稱。accounts/*/locations/*/questions/*
|
author |
object (Author )
僅供輸出。問題的作者。
|
upvoteCount |
integer
僅供輸出。問題認同票數。
|
text |
string
問題文字。長度至少應有 3 個字詞,且總長度必須大於或等於 10 個字元。長度上限為 4096 個字元。
|
createTime |
string (Timestamp format)
僅供輸出。問題寫入時間的時間戳記。 RFC3339 世界標準時間「Zulu」的時間戳記格式,解析度為奈秒,且最多 9 個小數位數。範例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
updateTime |
string (Timestamp format)
僅供輸出。問題上次修改時間的時間戳記。 RFC3339 世界標準時間「Zulu」的時間戳記格式,解析度為奈秒,且最多 9 個小數位數。範例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
topAnswers[] |
object (Answer )
僅供輸出。問題的答案清單,並依認同票數排序。視請求參數 (answersPerQuestion) 而定,上述內容可能並不完整。
|
totalAnswerCount |
integer
僅供輸出。張貼這個問題的答案總數。
|
方法 |
|
在指定位置新增問題。 |
|
刪除目前使用者撰寫的特定問題。 |
|
傳回分頁式的問題清單,以及指定位置的部分答案。 |
|
更新目前使用者撰寫的特定問題。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe Question resource represents a single question asked about a specific location, including details like the author, text, upvotes, and answers.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields for tracking creation and update times, along with the total number of answers received.\u003c/p\u003e\n"],["\u003cp\u003eQuestions can be created, deleted, listed, and updated through dedicated methods provided in the API.\u003c/p\u003e\n"],["\u003cp\u003eAnswers to questions are sorted by upvotes and a limited number are returned based on request parameters.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.locations.questions\n\n- [Resource: Question](#Question)\n - [JSON representation](#Question.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Question\n------------------\n\nRepresents a single question and some of its answers.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"author\": { object (/my-business/reference/rest/v4/Author) }, \"upvoteCount\": integer, \"text\": string, \"createTime\": string, \"updateTime\": string, \"topAnswers\": [ { object (/my-business/reference/rest/v4/accounts.locations.questions.answers#Answer) } ], \"totalAnswerCount\": integer } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The unique name for the question. accounts/\\*/locations/\\*/questions/\\* |\n| `author` | `object (`[Author](/my-business/reference/rest/v4/Author)`)` Output only. The author of the question. |\n| `upvoteCount` | `integer` Output only. The number of upvotes for the question. |\n| `text` | `string` The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. |\n| `createTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Output only. The timestamp for when the question was written. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `updateTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Output only. The timestamp for when the question was last modified. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `topAnswers[]` | `object (`[Answer](/my-business/reference/rest/v4/accounts.locations.questions.answers#Answer)`)` Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answersPerQuestion) |\n| `totalAnswerCount` | `integer` Output only. The total number of answers posted for this question. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| ### [create](/my-business/reference/rest/v4/accounts.locations.questions/create) | Adds a question for the specified location. |\n| ### [delete](/my-business/reference/rest/v4/accounts.locations.questions/delete) | Deletes a specific question written by the current user. |\n| ### [list](/my-business/reference/rest/v4/accounts.locations.questions/list) | Returns the paginated list of questions and some of its answers for a specified location. |\n| ### [patch](/my-business/reference/rest/v4/accounts.locations.questions/patch) | Updates a specific question written by the current user. |"]]