Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
REST Resource: accounts.admins
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: ผู้ดูแลระบบ
ผู้ดูแลระบบของบัญชีหรือสถานที่
การแสดง 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
เปลี่ยนแปลงไม่ได้ ชื่อของทรัพยากรบัญชีที่ผู้ดูแลระบบรายนี้อ้างถึง ใช้เมื่อโทรหา locations.admins.create เพื่อเชิญ LocationGroup เป็นผู้ดูแลระบบ หากตั้งค่าทั้งช่องนี้และ admin ในคำขอ CREATE ช่องนี้จะมีความสำคัญสูงกว่าและระบบจะไม่สนใจอีเมลใน admin รูปแบบ: accounts/{account}
|
role |
enum (AdminRole )
ต้องระบุ ระบุบทบาทที่ผู้ดูแลระบบรายนี้ใช้กับบัญชีหรือสถานที่ตั้งที่ระบุ
|
pendingInvitation |
boolean
เอาต์พุตเท่านั้น ระบุว่าผู้ดูแลระบบรายนี้มีคำเชิญที่รอดำเนินการสำหรับทรัพยากรที่ระบุหรือไม่
|
AdminRole
Enum |
ADMIN_ROLE_UNSPECIFIED |
ไม่ได้ระบุ |
PRIMARY_OWNER |
ผู้ดูแลระบบมีสิทธิ์เข้าถึงระดับเจ้าของและเป็นเจ้าของหลัก (แสดงเป็น "เจ้าของหลัก" ใน UI) |
OWNER |
ผู้ดูแลระบบมีสิทธิ์เข้าถึงระดับเจ้าของ (แสดงเป็น "เจ้าของ" ใน UI) |
MANAGER |
ผู้ดูแลระบบมีสิทธิ์เข้าถึงระดับผู้จัดการ |
SITE_MANAGER |
ผู้ดูแลระบบสามารถจัดการหน้าโซเชียล (Google+) ได้ (แสดงเป็น "Site Manager" ใน UI) API นี้ไม่อนุญาตให้สร้างผู้ดูแลบัญชีที่มีบทบาท SITE_MANAGER |
เมธอด |
|
เชิญผู้ใช้ที่ระบุให้เป็นผู้ดูแลระบบสำหรับบัญชีที่ระบุ |
|
นำผู้ดูแลระบบที่ระบุออกจากบัญชีที่ระบุ |
|
แสดงผู้ดูแลระบบสำหรับบัญชีที่ระบุ |
|
อัปเดตผู้ดูแลระบบสำหรับผู้ดูแลบัญชีที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eAn Admin is an administrator of an Account or a location with different access levels defined by \u003ccode\u003eAdminRole\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAdmins can have roles like Primary Owner, Owner, Manager, and Site Manager, each with varying permissions.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage Admins by inviting, removing, listing, and updating them using the provided methods.\u003c/p\u003e\n"],["\u003cp\u003eAdmin details include name, role, account association, and pending invitation status, represented in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdminRole\u003c/code\u003e enum defines the access level of an admin, impacting their capabilities within the account or location.\u003c/p\u003e\n"]]],["Account and location administrators, identified by a resource name, have roles like `PRIMARY_OWNER`, `OWNER`, `MANAGER`, or `SITE_MANAGER`. Admins can be created by inviting a user via email, and roles are set during creation. The `pendingInvitation` field shows if an invite is pending. Available actions include: creating, deleting, listing, and updating admin access. `Admin` field contains the invitee's email address initially or user details after accepting.\n"],null,["# REST Resource: accounts.admins\n\n- [Resource: Admin](#Admin)\n - [JSON representation](#Admin.SCHEMA_REPRESENTATION)\n - [AdminRole](#Admin.AdminRole)\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### AdminRole\n\nIndicates the access level that an admin has. For more information, see the [help center article](https://support.google.com/business/answer/3403100)\n\n| Enums ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ADMIN_ROLE_UNSPECIFIED` | Not specified. |\n| `PRIMARY_OWNER` | The admin has owner-level access and is the primary owner. (Displays as 'Primary Owner' in UI). |\n| `OWNER` | The admin has owner-level access. (Displays as 'Owner' in UI). |\n| `MANAGER` | The admin has managerial access. |\n| `SITE_MANAGER` | The admin can manage social (Google+) pages. (Displays as 'Site Manager' in UI). This API doesn't allow creating an account admin with a SITE_MANAGER role. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| ### [create](/my-business/reference/accountmanagement/rest/v1/accounts.admins/create) | Invites the specified user to become an administrator for the specified account. |\n| ### [delete](/my-business/reference/accountmanagement/rest/v1/accounts.admins/delete) | Removes the specified admin from the specified account. |\n| ### [list](/my-business/reference/accountmanagement/rest/v1/accounts.admins/list) | Lists the admins for the specified account. |\n| ### [patch](/my-business/reference/accountmanagement/rest/v1/accounts.admins/patch) | Updates the Admin for the specified Account Admin. |"]]