L'API
Google Business Performance propose une
NOUVELLE méthode qui permet d'extraire plusieurs `DailyMetrics` avec une seule requête API.
Consultez le
planning d'abandon et les instructions pour migrer de la méthode API reportInsights v4 à l'API Google Business Profile Performance.
REST Resource: accounts.locations.questions.answers
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ressource: Réponse
Représente une réponse à une question
Représentation JSON |
{
"name": string,
"author": {
object (Author )
},
"upvoteCount": integer,
"text": string,
"createTime": string,
"updateTime": string
} |
Champs |
name |
string
Uniquement en sortie. Nom unique de la réponse accounts/*/locations/*/questions/*/answers/*
|
author |
object (Author )
Uniquement en sortie. Auteur de la réponse.
|
upvoteCount |
integer
Uniquement en sortie. Nombre de votes pour pour cette réponse.
|
text |
string
Texte de la réponse. Il doit contenir au moins un caractère qui n'est pas un espace blanc. La longueur maximale est de 4 096 caractères.
|
createTime |
string (Timestamp format)
Uniquement en sortie. Code temporel correspondant au moment où la réponse a été écrite. Horodatage au format RFC3339 UTC "Zulu", avec une résolution de l'ordre de la nanoseconde et jusqu'à neuf chiffres décimaux. Exemples : "2014-10-02T15:01:23Z" et "2014-10-02T15:01:23.045123456Z" .
|
updateTime |
string (Timestamp format)
Uniquement en sortie. Code temporel correspondant à la dernière modification de la réponse. Horodatage au format RFC3339 UTC "Zulu", avec une résolution de l'ordre de la nanoseconde et jusqu'à neuf chiffres décimaux. Exemples : "2014-10-02T15:01:23Z" et "2014-10-02T15:01:23.045123456Z" .
|
Méthodes |
|
Supprime la réponse à une question rédigée par l'utilisateur actuel. |
|
Affiche la liste paginée des réponses à une question spécifiée. |
|
Crée une réponse ou met à jour la réponse existante écrite par l'utilisateur pour la question spécifiée. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eThe Answer resource represents an answer to a question, including details like author, upvote count, and text.\u003c/p\u003e\n"],["\u003cp\u003eAnswers can be created, updated, deleted, and listed using the provided methods.\u003c/p\u003e\n"],["\u003cp\u003eAnswer data is represented in JSON format with fields for name, author, upvote count, text, creation time, and update time.\u003c/p\u003e\n"],["\u003cp\u003eThe text of an answer can be up to 4096 characters long and must contain at least one non-whitespace character.\u003c/p\u003e\n"],["\u003cp\u003eAnswer timestamps are formatted according to RFC3339 UTC "Zulu" format with nanosecond resolution.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.locations.questions.answers\n\n- [Resource: Answer](#Answer)\n - [JSON representation](#Answer.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Answer\n----------------\n\nRepresents an answer to a question\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"author\": { object (/my-business/reference/rest/v4/Author) }, \"upvoteCount\": integer, \"text\": string, \"createTime\": string, \"updateTime\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The unique name for the answer accounts/\\*/locations/\\*/questions/\\*/answers/\\* |\n| `author` | `object (`[Author](/my-business/reference/rest/v4/Author)`)` Output only. The author of the answer. |\n| `upvoteCount` | `integer` Output only. The number of upvotes for the answer. |\n| `text` | `string` The text of the answer. It should contain at least one non-whitespace character. 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 answer 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 answer 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\n| Methods ------- ||\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| ### [delete](/my-business/reference/rest/v4/accounts.locations.questions.answers/delete) | Deletes the answer written by the current user to a question. |\n| ### [list](/my-business/reference/rest/v4/accounts.locations.questions.answers/list) | Returns the paginated list of answers for a specified question. |\n| ### [upsert](/my-business/reference/rest/v4/accounts.locations.questions.answers/upsert) | Creates an answer or updates the existing answer written by the user for the specified question. |"]]