La API
Performance de Perfil de Empresa en Google tiene un
NUEVO método que permite obtener varios valores del parámetro "DailyMetrics" con una misma solicitud.
Consulta el
calendario de desactivación y las instrucciones para pasar del método reportInsights de la versión 4 de la API de Google My Business a la API Performance de Perfil de Empresa en Google.
REST Resource: accounts.locations.questions
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Recurso: Question
Representa una sola pregunta y algunas de sus respuestas.
Representación JSON |
{
"name": string,
"author": {
object (Author )
},
"upvoteCount": integer,
"text": string,
"createTime": string,
"updateTime": string,
"topAnswers": [
{
object (Answer )
}
],
"totalAnswerCount": integer
} |
Campos |
name |
string
Solo salida. Es el nombre único de la pregunta. accounts/*/locations/*/questions/*
|
author |
object (Author )
Solo salida. Es el autor de la pregunta.
|
upvoteCount |
integer
Solo salida. Es la cantidad de votos a favor de la pregunta.
|
text |
string
Es el texto de la pregunta. Debe contener al menos tres palabras y la longitud total debe ser superior o igual a 10 caracteres. La longitud máxima es de 4,096 caracteres.
|
createTime |
string (Timestamp format)
Solo salida. La marca de tiempo del momento en que se escribió la pregunta. Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
updateTime |
string (Timestamp format)
Solo salida. La marca de tiempo de la última modificación de la pregunta. Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
topAnswers[] |
object (Answer )
Solo salida. Una lista de respuestas a la pregunta, ordenadas por votos a favor. Es posible que esta no sea una lista completa de respuestas según los parámetros de solicitud (answersPerQuestion)
|
totalAnswerCount |
integer
Solo salida. Es la cantidad total de respuestas publicadas para esta pregunta.
|
Métodos |
|
Agrega una pregunta para la ubicación especificada. |
|
Borra una pregunta específica escrita por el usuario actual. |
|
Muestra la lista paginada de preguntas y algunas de sus respuestas para una ubicación especificada. |
|
Actualiza una pregunta específica escrita por el usuario actual. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\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. |"]]