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.create
Tworzy konto o określonej nazwie i typie w ramach danego elementu nadrzędnego.
- Nie można tworzyć kont osobistych ani organizacji.
- Grup użytkowników nie można tworzyć, gdy głównym właścicielem jest konto osobiste.
- Grup lokalizacji nie można tworzyć z głównym właścicielem konta osobistego, jeśli konto osobiste należy do organizacji.
- Grupy lokalizacji nie mogą być właścicielami grup lokalizacji.
Żądanie HTTP
POST https://mybusinessaccountmanagement.googleapis.com/v1/accounts
Adres URL używa składni transkodowania gRPC.
Treść żądania
Treść żądania zawiera wystąpienie elementu Account
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję Account
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
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."],[[["Creates a new account with a specified name and type under a parent account, excluding Personal and Organization account types."],["User Groups cannot have Personal accounts as primary owners, and Location Groups have ownership restrictions based on the primary owner's account type."],["The request utilizes an HTTP POST method to the specified URL with the account details provided in the request body as an 'Account' instance."],["Successful requests will return the newly created account details in the response body, also formatted as an 'Account' instance."],["Authorization requires the `https://www.googleapis.com/auth/business.manage` OAuth scope."]]],["This document details how to create accounts via a `POST` request to `https://mybusinessaccountmanagement.googleapis.com/v1/accounts`. The request body must include an `Account` instance, and a successful response returns a newly created `Account` instance. Limitations exist: personal accounts and organizations cannot be created; user/location group creation is restricted based on the primary owner's account type. The operation requires the `https://www.googleapis.com/auth/business.manage` OAuth scope for authorization. The URL uses gRPC Transcoding syntax.\n"]]