Interfejs
Google Business Performance API udostępnia
NOWĄ metodę interfejsu API, która umożliwia pobieranie wielu parametrów „DailyMetrics” w jednym żądaniu API.
Zapoznaj się z
harmonogramem wycofywania i instrukcjami, jak przejść z metody raportu API w wersji 4 na interfejs Google Business Profile Performance API.
Method: accounts.admins.delete
Usuwa wskazanego administratora z określonego konta.
Żądanie HTTP
DELETE https://mybusiness.googleapis.com/v4/{name=accounts/*/admins/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa zasobu administratora, który ma zostać usunięty z konta.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Więcej informacji znajdziesz w artykule Omówienie protokołu OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-01 UTC.
[null,null,["Ostatnia aktualizacja: 2023-12-01 UTC."],[[["This document describes how to remove an admin from a Google My Business account using the Accounts API."],["It uses a DELETE request to the `https://mybusiness.googleapis.com/v4/{name=accounts/*/admins/*}` endpoint."],["The request requires the `name` path parameter to specify the admin to remove and must have an empty request body."],["It requires specific OAuth scopes for authorization and, if successful, returns an empty response body."],["**Deprecated:** It's recommended to use the Account Management API instead for this functionality."]]],["This document outlines the process for removing an admin from an account using a deprecated API. The `DELETE` request, sent to `https://mybusiness.googleapis.com/v4/{name=accounts/*/admins/*}`, utilizes gRPC Transcoding. The `name` parameter specifies the admin to be removed. The request body must be empty. A successful response will also have an empty body. This operation requires either the `plus.business.manage` or `business.manage` OAuth scope for authorization. Please note that the [Account Management API](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.admins/delete) is prefered.\n"]]