В Google Business Performance API добавлен новый метод, который позволяет получать несколько показателей DailyMetrics в одном запросе к API. Ознакомьтесь с расписанием прекращения поддержки и инструкциями о том, как перейти с метода reportInsights версии 4 на Google Business Profile Performance API.
Возвращает информацию о наборе локальных публикаций, связанных с одним листингом. Какие метрики и как они сообщаются, являются параметрами, указанными в протоколе запроса.
HTTP-запрос
POST https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}/localPosts:reportInsights
Необходимый. Список публикаций, для которых нужно получить аналитические данные. Все публикации должны принадлежать локации, название которой указано в поле name .
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2024-11-11 UTC."],[[["Returns insights data for a set of local posts associated with a single listing, limited to 100 posts per API call."],["The request body specifies the local post names and includes an optional request for basic metric insights."],["The response provides metrics for each requested post, along with the location's time zone."],["Requires authorization with either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` scope."]]],["This outlines how to retrieve insights for local posts associated with a specific listing. Key actions include sending a `POST` HTTP request to a designated URL with a location's name in the path. The request body must contain a list of `localPostNames` (up to 100) and optionally a `basicRequest` object to define the metrics. The response includes the location's name, time zone, and an array of `localPostMetrics`, each detailing requested metric values for a specific post. OAuth scopes are required.\n"]]