Google Business Performance API has a
NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the
deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
REST Resource: accounts.locations.questions
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Question
Represents a single question and some of its answers.
JSON representation |
{
"name": string,
"author": {
object (Author )
},
"upvoteCount": integer,
"text": string,
"createTime": string,
"updateTime": string,
"topAnswers": [
{
object (Answer )
}
],
"totalAnswerCount": integer
} |
Fields |
name |
string
Output only. The unique name for the question. accounts/*/locations/*/questions/*
|
author |
object (Author )
Output only. The author of the question.
|
upvoteCount |
integer
Output only. The number of upvotes for the question.
|
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.
|
createTime |
string (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" .
|
updateTime |
string (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" .
|
topAnswers[] |
object (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)
|
totalAnswerCount |
integer
Output only. The total number of answers posted for this question.
|
Methods |
|
Adds a question for the specified location. |
|
Deletes a specific question written by the current user. |
|
Returns the paginated list of questions and some of its answers for a specified location. |
|
Updates a specific question written by the current user. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-08-24 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]