Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
REST Resource: locations.admins
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:Admin
JSON 表示法 |
{
"name": string,
"admin": string,
"account": string,
"role": enum (AdminRole ),
"pendingInvitation": boolean
} |
欄位 |
name |
string
不可變動。資源名稱。如果您是帳戶管理員,請填寫下方表單:accounts/{account_id}/admins/{admin_id} 如果是營業地點管理員,請使用下列格式:locations/{locationId}/admins/{admin_id} 如果在管理員建立過程中設定,系統會忽略這個欄位。
|
admin |
string
選用設定。管理員的名稱。最初發出邀請時,這是邀請對象的電子郵件地址。在 GET 呼叫中,如果邀請仍待處理,系統會傳回使用者的電子郵件地址。否則會包含使用者的姓名。 只有在管理員建立時,才需要設定這個欄位。
|
account |
string
不可變動。管理員參照的帳戶資源名稱。呼叫 location.admins.create 以邀請 LocationGroup 為管理員。 如果 CREATE 要求中同時設定這個欄位和 admin ,則系統會優先採用這個欄位,並忽略 admin 中的電子郵件地址。 格式:accounts/{account} 。
|
role |
enum (AdminRole )
必要欄位。指定這位管理員用於指定帳戶或位置的角色。
|
pendingInvitation |
boolean
僅供輸出。指出此管理員是否有待處理的指定資源的邀請。
|
方法 |
|
邀請指定使用者成為指定地點的管理員。 |
|
移除指定位置的管理員。 |
|
列出指定位置的所有管理員。 |
|
更新指定位置的管理員。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eAn Admin is an administrator of an Account or a location, with an immutable resource name and a role specifying their access level.\u003c/p\u003e\n"],["\u003cp\u003eAdmins can be invited, removed, listed, and updated for specific locations using provided methods.\u003c/p\u003e\n"],["\u003cp\u003eAdmin creation requires the \u003ccode\u003erole\u003c/code\u003e field, while optional fields include the admin's name/email and associated account.\u003c/p\u003e\n"],["\u003cp\u003eA pending invitation status is indicated for each admin, along with whether it's for an Account or Location.\u003c/p\u003e\n"],["\u003cp\u003eAdmins for Accounts are in the form \u003ccode\u003eaccounts/{account_id}/admins/{admin_id}\u003c/code\u003e and for Locations are in the form \u003ccode\u003elocations/{locationId}/admins/{admin_id}\u003c/code\u003e.\u003c/p\u003e\n"]]],["Admins, representing administrators of an Account or location, are managed via various methods. Key actions include: `create`, which invites a user to be a location administrator; `delete`, which removes an admin; `list`, to view all location admins; and `patch`, to update admin details. An admin's JSON representation includes their name, role, account affiliation, and pending invitation status. Fields such as `name`, `admin`, `account`, `role`, and `pendingInvitation` are described with their type and usage.\n"],null,["# REST Resource: locations.admins\n\n- [Resource: Admin](#Admin)\n - [JSON representation](#Admin.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Admin\n---------------\n\nAn administrator of an Account or a location.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"admin\": string, \"account\": string, \"role\": enum (/my-business/reference/accountmanagement/rest/v1/accounts.admins#Admin.AdminRole), \"pendingInvitation\": boolean } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Immutable. The resource name. For account admins, this is in the form: `accounts/{account_id}/admins/{admin_id}` For location admins, this is in the form: `locations/{locationId}/admins/{admin_id}` This field will be ignored if set during admin creation. |\n| `admin` | `string` Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. |\n| `account` | `string` Immutable. The name of the Account resource that this Admin refers to. Used when calling locations.admins.create to invite a LocationGroup as an admin. If both this field and `admin` are set on `CREATE` requests, this field takes precedence and the email address in `admin` will be ignored. Format: `accounts/{account}`. |\n| `role` | `enum (`[AdminRole](/my-business/reference/accountmanagement/rest/v1/accounts.admins#Admin.AdminRole)`)` Required. Specifies the role that this admin uses with the specified Account or Location. |\n| `pendingInvitation` | `boolean` Output only. Indicates whether this admin has a pending invitation for the specified resource. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|\n| ### [create](/my-business/reference/accountmanagement/rest/v1/locations.admins/create) | Invites the specified user to become an administrator for the specified location. |\n| ### [delete](/my-business/reference/accountmanagement/rest/v1/locations.admins/delete) | Removes the specified admin as a manager of the specified location. |\n| ### [list](/my-business/reference/accountmanagement/rest/v1/locations.admins/list) | Lists all of the admins for the specified location. |\n| ### [patch](/my-business/reference/accountmanagement/rest/v1/locations.admins/patch) | Updates the Admin for the specified location. |"]]