Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
My Business Account Management API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
My Business Account Management API มีอินเทอร์เฟซสำหรับการจัดการสิทธิ์เข้าถึงสถานที่ใน Google
หมายเหตุ - หากคุณมีโควต้าเป็น 0 หลังจากเปิดใช้ API โปรดขอการเข้าถึง GBP API
บริการ: mybusinessaccountmanagement.googleapis.com
หากต้องการเรียกใช้บริการนี้ เราขอแนะนำให้คุณใช้ไลบรารีของไคลเอ็นต์ที่ Google มีให้ หากแอปพลิเคชันจำเป็นต้องใช้ไลบรารีของคุณเองเพื่อเรียกใช้บริการนี้ ให้ใช้ข้อมูลต่อไปนี้เมื่อคุณส่งคำขอ API
เอกสารการค้นพบ
เอกสารการค้นพบเป็นข้อกำหนดที่เครื่องอ่านได้สำหรับการอธิบายและใช้งาน REST API ใช้สำหรับสร้างไลบรารีของไคลเอ็นต์, ปลั๊กอิน IDE และเครื่องมืออื่นๆ ที่โต้ตอบกับ Google APIs บริการเดียวอาจมีเอกสารการค้นพบได้หลายรายการ บริการนี้มีเอกสารการค้นพบต่อไปนี้
ปลายทางบริการ
ปลายทางของบริการคือ URL พื้นฐานที่ระบุที่อยู่เครือข่ายของบริการ API บริการเดียวอาจมีปลายทางบริการหลายรายการ บริการนี้มีปลายทางบริการต่อไปนี้และ URI ด้านล่างทั้งหมดจะเกี่ยวข้องกับปลายทางของบริการนี้
https://mybusinessaccountmanagement.googleapis.com
วิธีการ |
create |
POST /v1/accounts
สร้างบัญชีที่มีชื่อและประเภทที่ระบุภายใต้ระดับบนสุดที่กำหนด |
get |
GET /v1/{name=accounts/*}
รับบัญชีที่ระบุ |
list |
GET /v1/accounts
แสดงบัญชีทั้งหมดของผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว |
patch |
PATCH /v1/{account.name=accounts/*}
อัปเดตบัญชีธุรกิจที่ระบุ |
วิธีการ |
create |
POST /v1/{parent=accounts/*}/admins
เชิญผู้ใช้ที่ระบุให้มาเป็นผู้ดูแลระบบของบัญชีที่ระบุ |
delete |
DELETE /v1/{name=accounts/*/admins/*}
นําผู้ดูแลระบบที่ระบุออกจากบัญชีที่ระบุ |
list |
GET /v1/{parent=accounts/*}/admins
แสดงผู้ดูแลระบบของบัญชีที่ระบุ |
patch |
PATCH /v1/{accountAdmin.name=accounts/*/admins/*}
อัปเดตผู้ดูแลระบบสำหรับผู้ดูแลบัญชีที่ระบุ |
วิธีการ |
accept |
POST /v1/{name=accounts/*/invitations/*}:accept
ตอบรับคําเชิญที่ระบุ |
decline |
POST /v1/{name=accounts/*/invitations/*}:decline
ปฏิเสธคำเชิญที่ระบุ |
list |
GET /v1/{parent=accounts/*}/invitations
แสดงคำเชิญที่รอดำเนินการสำหรับบัญชีที่ระบุ |
วิธีการ |
transfer |
POST /v1/{name=locations/*}:transfer
ย้ายสถานที่จากบัญชีที่ผู้ใช้เป็นเจ้าของไปยังบัญชีอื่นที่ผู้ใช้รายเดียวกันดูแลอยู่ |
วิธีการ |
create |
POST /v1/{parent=locations/*}/admins
เชิญผู้ใช้ที่ระบุให้มาเป็นผู้ดูแลระบบของสถานที่ที่ระบุ |
delete |
DELETE /v1/{name=locations/*/admins/*}
นําผู้ดูแลระบบที่ระบุออกจากการเป็นผู้จัดการของสถานที่ที่ระบุ |
list |
GET /v1/{parent=locations/*}/admins
แสดงผู้ดูแลระบบทุกคนในสถานที่ที่ระบุ |
patch |
PATCH /v1/{locationAdmin.name=locations/*/admins/*}
อัปเดตผู้ดูแลระบบสำหรับตำแหน่งที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThe My Business Account Management API allows you to manage access to Google Business Profile locations.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage Google Business Profile accounts, including inviting and removing administrators.\u003c/p\u003e\n"],["\u003cp\u003eThe API enables managing location access, including transferring locations between accounts and managing location administrators.\u003c/p\u003e\n"],["\u003cp\u003eUsers with a quota of 0 after enabling the API should request GBP API access for full functionality.\u003c/p\u003e\n"]]],[],null,["# My Business Account Management API\n\nThe My Business Account Management API provides an interface for managing access to a location on Google. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.accounts](#v1.accounts)\n- [REST Resource: v1.accounts.admins](#v1.accounts.admins)\n- [REST Resource: v1.accounts.invitations](#v1.accounts.invitations)\n- [REST Resource: v1.locations](#v1.locations)\n- [REST Resource: v1.locations.admins](#v1.locations.admins)\n\nService: mybusinessaccountmanagement.googleapis.com\n---------------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessaccountmanagement.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessaccountmanagement.googleapis.com`\n\nREST Resource: [v1.accounts](/my-business/reference/accountmanagement/rest/v1/accounts)\n---------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts/create) | `POST /v1/accounts` Creates an account with the specified name and type under the given parent. |\n| [get](/my-business/reference/accountmanagement/rest/v1/accounts/get) | `GET /v1/{name=accounts/*}` Gets the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts/list) | `GET /v1/accounts` Lists all of the accounts for the authenticated user. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts/patch) | `PATCH /v1/{account.name=accounts/*}` Updates the specified business account. |\n\nREST Resource: [v1.accounts.admins](/my-business/reference/accountmanagement/rest/v1/accounts.admins)\n-----------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts.admins/create) | `POST /v1/{parent=accounts/*}/admins` Invites the specified user to become an administrator for the specified account. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/accounts.admins/delete) | `DELETE /v1/{name=accounts/*/admins/*}` Removes the specified admin from the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.admins/list) | `GET /v1/{parent=accounts/*}/admins` Lists the admins for the specified account. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts.admins/patch) | `PATCH /v1/{accountAdmin.name=accounts/*/admins/*}` Updates the Admin for the specified Account Admin. |\n\nREST Resource: [v1.accounts.invitations](/my-business/reference/accountmanagement/rest/v1/accounts.invitations)\n---------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [accept](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/accept) | `POST /v1/{name=accounts/*/invitations/*}:accept` Accepts the specified invitation. |\n| [decline](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/decline) | `POST /v1/{name=accounts/*/invitations/*}:decline` Declines the specified invitation. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/list) | `GET /v1/{parent=accounts/*}/invitations` Lists pending invitations for the specified account. |\n\nREST Resource: [v1.locations](/my-business/reference/accountmanagement/rest/v1/locations)\n-----------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [transfer](/my-business/reference/accountmanagement/rest/v1/locations/transfer) | `POST /v1/{name=locations/*}:transfer` Moves a location from an account that the user owns to another account that the same user administers. |\n\nREST Resource: [v1.locations.admins](/my-business/reference/accountmanagement/rest/v1/locations.admins)\n-------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/locations.admins/create) | `POST /v1/{parent=locations/*}/admins` Invites the specified user to become an administrator for the specified location. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/locations.admins/delete) | `DELETE /v1/{name=locations/*/admins/*}` Removes the specified admin as a manager of the specified location. |\n| [list](/my-business/reference/accountmanagement/rest/v1/locations.admins/list) | `GET /v1/{parent=locations/*}/admins` Lists all of the admins for the specified location. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/locations.admins/patch) | `PATCH /v1/{locationAdmin.name=locations/*/admins/*}` Updates the Admin for the specified location. |"]]