Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.create
สร้างบัญชีที่มีชื่อและประเภทที่ระบุภายใต้ระดับบนสุดที่กำหนด
- ทั้งนี้คุณจะสร้างบัญชีส่วนตัวและองค์กรไม่ได้
- สร้างกลุ่มผู้ใช้ด้วยบัญชีส่วนบุคคลเป็นเจ้าของหลักไม่ได้
- คุณไม่สามารถสร้างกลุ่มสถานที่ตั้งโดยมีเจ้าของหลักของบัญชีส่วนบุคคลได้ หากบัญชีส่วนบุคคลอยู่ในองค์กร
- กลุ่มสถานที่ตั้งไม่สามารถเป็นเจ้าของกลุ่มสถานที่ตั้ง
คำขอ HTTP
POST https://mybusinessaccountmanagement.googleapis.com/v1/accounts
URL ใช้ไวยากรณ์การแปลง gRPC
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Account
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Account
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC
[null,null,["อัปเดตล่าสุด 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"]]