Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
ภาพรวมของ OAuth
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทุกคำขอที่แอปพลิเคชันส่งไปยัง Business Profile API จะต้องมีโทเค็นการให้สิทธิ์ โทเค็นการให้สิทธิ์จะระบุผู้ใช้หรือแอปพลิเคชันให้กับ Google ซึ่งจะอนุญาตให้เข้าถึง Business Profile API แอปพลิเคชันต้องใช้โปรโตคอล OAuth 2.0 เพื่อให้สิทธิ์คำขอ
คู่มือการตั้งค่า OAuth จะอธิบายวิธีการต่างๆ ที่คุณสามารถใช้เพื่อติดตั้งใช้งาน OAuth 2.0 ในแพลตฟอร์ม Google Identity Platform มีฟังก์ชันการทำงานของ Google Sign-In และ OAuth ที่ใช้ตลอดทั้งคู่มือนี้
การใช้ OAuth 2.0 มีประโยชน์ดังต่อไปนี้
- ปกป้องการเข้าถึงข้อมูลของเจ้าของธุรกิจ
- สร้างตัวตนของเจ้าของธุรกิจเมื่อลงชื่อเข้าใช้บัญชี Google
- ระบุว่าแพลตฟอร์มหรือแอปพลิเคชันพาร์ทเนอร์สามารถเข้าถึงและแก้ไขข้อมูลตำแหน่งได้โดยได้รับความยินยอมอย่างชัดเจนจากเจ้าของธุรกิจ ซึ่งเจ้าของจะเพิกถอนสิทธิ์เข้าถึงนี้ในภายหลังได้
- สร้างตัวตนของแพลตฟอร์มพาร์ทเนอร์
- ช่วยให้แพลตฟอร์มของพาร์ทเนอร์ดําเนินการออนไลน์หรือออฟไลน์ในนามของเจ้าของธุรกิจได้ ซึ่งรวมถึงการตอบรีวิว การสร้างโพสต์ และการอัปเดตรายการเมนู
- ช่วยให้เวิร์กโฟลว์แบบหลายขั้นตอนที่มีผู้เข้าร่วมหลายคนมีความโปร่งใส เช่น คำเชิญให้จัดการ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eBusiness Profile API requests require an authorization token obtained through OAuth 2.0 for user or application identification.\u003c/p\u003e\n"],["\u003cp\u003eOAuth 2.0 implementation safeguards business data, verifies owner identity, and grants controlled access to partner platforms.\u003c/p\u003e\n"],["\u003cp\u003ePartner platforms can utilize OAuth 2.0 to perform actions on behalf of the business owner, including managing reviews, posts, and menus, with the owner's explicit and revocable consent.\u003c/p\u003e\n"]]],[],null,["# OAuth overview\n\nEvery request that your application sends to the Business Profile APIs must include an\nauthorization token. The authorization token identifies the user or the application to Google,\nwhich allows access to the Business Profile APIs. Your application must use\n[OAuth 2.0](/identity/protocols/OAuth2) protocol to authorize requests.\n\nThe\n[OAuth setup](/my-business/content/oauth-setup)\nguide explains the different methods that you can use to implement OAuth 2.0 on your\nplatform. The [Google Identity Platform](/identity/choose-auth) provides the Google\nSign-In and OAuth functionality that's used throughout this guide.\n\nThe implementation of OAuth 2.0 provides the following benefits:\n\n- Protects access to the business owner's data.\n- Establishes the identity of the business owner when they sign in to their Google Account.\n- Establishes that a partner platform or application can access and modify location data with explicit consent from the business owner. The owner can later revoke this access.\n- Establishes the identity of the partner platform.\n- Enables partner platforms to perform online or offline actions on behalf of the business owner. This includes responses to reviews, creation of posts, and updates to menu items.\n- Allows multi-step workflows with multiple participants to be made transparent, such as management invitations."]]