La API de
Google Business Performance tiene un método de API
NUEVO que permite recuperar varias métricas "DailyMetrics" en una sola solicitud a la API.
Revise el
programa de baja y las instrucciones para migrar del método de la API de reportInsights versión 4 a la API de rendimiento del Perfil de Negocio de Google.
Method: accounts.locations.delete
Solicitud HTTP
DELETE https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
name |
string
El nombre de la ubicación que se borrará.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta correctamente, el cuerpo de la respuesta está vacío.
Alcances de la autorización
Se necesita uno de los siguientes alcances de OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Para obtener más información, consulta la Descripción general de OAuth 2.0.
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: 2023-12-01 (UTC)
[null,null,["Última actualización: 2023-12-01 (UTC)"],[[["This document explains how to delete a location using the Google My Business API."],["The DELETE request requires the location's name as a path parameter and an empty request body."],["A successful deletion results in an empty response body, while a `NOT_FOUND` error indicates the location doesn't exist."],["You'll need either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` OAuth scope for authorization."],["Locations that can't be deleted via the API should be managed through the Business Profile website instead."]]],["This document details the process of deleting a location via API. A `DELETE` request is sent to a specific URL, including the location's name in the path. The request body must be empty. A successful deletion results in an empty response body; `NOT_FOUND` is returned if the location doesn't exist. Deleting a location requires specific OAuth scopes: `plus.business.manage` or `business.manage`. There is also a specific `LocationState` to check if deleting a location through API is possible.\n"]]