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.
REST Resource: accounts.invitations
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Invitation
Tylko dane wyjściowe. Reprezentuje oczekujące zaproszenie.
Zapis JSON |
{
"name": string,
"role": enum (AdminRole ),
// Union field target can be only one of the following:
"targetAccount": {
object (Account )
},
"targetLocation": {
object (TargetLocation )
}
// End of list of possible types for union field target .
} |
Pola |
name |
string
Nazwa zasobu zaproszenia.
|
role |
enum (AdminRole )
Zaproszona rola na koncie.
|
Pole sumy target . Wskazuje cel, do którego jest przeznaczone to zaproszenie. target może mieć tylko jedną z tych wartości: |
targetAccount |
object (Account )
Mało zapełnione konto, którego dotyczy to zaproszenie.
|
targetLocation |
object (TargetLocation )
Lokalizacja docelowa, do której jest przeznaczone to zaproszenie.
|
TargetLocation
Reprezentuje lokalizację docelową dla oczekującego zaproszenia.
Zapis JSON |
{
"locationName": string,
"locationAddress": string
} |
Pola |
locationName |
string
Nazwa lokalizacji, do której użytkownik został zaproszony.
|
locationAddress |
string
Adres lokalizacji, do której użytkownik został zaproszony.
|
Metody |
accept (deprecated)
|
Przyjmuje określone zaproszenie. |
|
Odrzuca określone zaproszenie. |
list (deprecated)
|
Zawiera listę oczekujących zaproszeń dla określonego konta. |
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThis documentation details the 'Invitation' resource, which represents a pending invitation to a Google Business Profile account or location.\u003c/p\u003e\n"],["\u003cp\u003eInvitations specify a role for the invitee and the target account or location.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eTargetLocation\u003c/code\u003e object is used when the invitation is for a specific location within a business account, providing the location's name and address.\u003c/p\u003e\n"],["\u003cp\u003eThe available methods (accept, decline, list) for managing invitations are deprecated.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.invitations\n\n- [Resource: Invitation](#Invitation)\n - [JSON representation](#Invitation.SCHEMA_REPRESENTATION)\n- [TargetLocation](#TargetLocation)\n - [JSON representation](#TargetLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Invitation\n--------------------\n\nOutput only. Represents a pending invitation.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"role\": enum (/my-business/reference/rest/v4/AdminRole), // Union field `target` can be only one of the following: \"targetAccount\": { object (/my-business/reference/rest/v4/accounts#Account) }, \"targetLocation\": { object (/my-business/reference/rest/v4/accounts.invitations#TargetLocation) } // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `name` | `string` The resource name for the invitation. |\n| `role` | `enum (`[AdminRole](/my-business/reference/rest/v4/AdminRole)`)` The invited role on the account. |\n| Union field `target`. Indicates the target this invitation is for. `target` can be only one of the following: |||\n| `targetAccount` | `object (`[Account](/my-business/reference/rest/v4/accounts#Account)`)` The sparsely populated account this invitation is for. |\n| `targetLocation` | `object (`[TargetLocation](/my-business/reference/rest/v4/accounts.invitations#TargetLocation)`)` The target location this invitation is for. |\n\nTargetLocation\n--------------\n\nRepresents a target location for a pending invitation.\n\n| JSON representation ||\n|---------------------------------------------------------------|---|\n| ``` { \"locationName\": string, \"locationAddress\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------|\n| `locationName` | `string` The name of the location to which the user is invited. |\n| `locationAddress` | `string` The address of the location to which the user is invited. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|------------------------------------------------------|\n| ### [accept](/my-business/reference/rest/v4/accounts.invitations/accept)` ` **(deprecated)** | Accepts the specified invitation. |\n| ### [decline](/my-business/reference/rest/v4/accounts.invitations/decline)` ` **(deprecated)** | Declines the specified invitation. |\n| ### [list](/my-business/reference/rest/v4/accounts.invitations/list)` ` **(deprecated)** | Lists pending invitations for the specified account. |"]]