Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
สิ่งที่ต้องดำเนินการก่อน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากต้องการสร้างแอปพลิเคชันไคลเอ็นต์แรกให้สำเร็จ คุณต้องทำตามข้อกำหนดเบื้องต้นต่อไปนี้
- สร้างบัญชี Google
- ลองใช้ Business Profile
- สร้างโปรเจ็กต์ใน Google Cloud Console
- สร้างบัญชีขององค์กร
- ขอสิทธิ์เข้าถึง API
รับบัญชี Google
คุณต้องมีบัญชี Google เพื่อสร้างโปรเจ็กต์ในคอนโซล Google API หากมีบัญชีอยู่แล้ว คุณก็พร้อมใช้งานได้
ลองใช้ Business Profile
เอกสารประกอบ API นี้ถือว่าคุณเคยใช้ Business Profile มาก่อน และคุ้นเคยกับแนวคิดการเขียนโปรแกรมบนเว็บและรูปแบบข้อมูลเว็บ
หากยังไม่เคยใช้ Business Profile ให้ลองใช้อินเทอร์เฟซผู้ใช้ก่อนเริ่มเขียนโค้ด
สร้างโปรเจ็กต์ในคอนโซล Google API
ก่อนที่จะส่งคำขอไปยัง Business Profile API ได้ คุณต้องใช้คอนโซล Google API เพื่อสร้างโปรเจ็กต์ แล้วขอสิทธิ์เข้าถึง Business Profile API สำหรับโปรเจ็กต์นั้น หากต้องการสร้างโปรเจ็กต์ใหม่ ให้ไปที่คอนโซล Google Cloud
คลิกสร้างโปรเจ็กต์ ป้อนชื่อ แล้วคลิกสร้าง
สร้างบัญชีขององค์กร
หากต้องการสร้างบัญชีขององค์กร ให้ไปที่ศูนย์ช่วยเหลือของ GBP
ขอสิทธิ์เข้าถึง API
เรากำหนดให้ผู้สมัครทุกคนต้องมีคุณสมบัติดังนี้เพื่อให้มีสิทธิ์เข้าถึง GBP API
- จัดการ Google Business Profile ที่ได้รับการยืนยันและใช้งานมานานกว่า 60 วัน GBP นี้อาจเป็นสำนักงานหรือสำนักงานใหญ่ของผู้สมัครเอง หรืออาจเป็นของลูกค้าที่ผู้สมัครจัดการก็ได้
- มีเว็บไซต์ที่แสดงถึงธุรกิจที่ระบุไว้ใน GBP
เพื่อให้การตรวจสอบใบสมัครเป็นไปอย่างราบรื่นและทันเวลา เราขอแนะนำให้คุณกรอกข้อมูลใน Google Business Profile ให้ครบถ้วนและอัปเดตข้อมูลธุรกิจปัจจุบันอยู่เสมอ ซึ่งรวมถึงเว็บไซต์อย่างเป็นทางการของธุรกิจ
เมื่อมีคุณสมบัติตรงตามข้อกำหนดที่ระบุไว้ก่อนหน้านี้ คุณจะขอสิทธิ์เข้าถึง API ได้โดยทำตามขั้นตอนต่อไปนี้
- ไปที่ Google Cloud Console แล้วเลือกโปรเจ็กต์ที่คุณวางแผนจะใช้กับ Business Profile API
- ค้นหาหมายเลขโปรเจ็กต์ในการ์ดข้อมูลโปรเจ็กต์ในแดชบอร์ดของโปรเจ็กต์ คุณจะต้องระบุหมายเลขนี้ในใบสมัคร
- เมื่อพร้อมแล้ว ให้ส่งคำขอโดยใช้แบบฟอร์มติดต่อสำหรับ GBP API เลือก "คำขอสิทธิ์เข้าถึง API ขั้นพื้นฐาน" จากเมนูแบบเลื่อนลง แล้วระบุข้อมูลที่ขอทั้งหมด
- ตรวจสอบว่าคุณใช้อีเมลที่ระบุเป็นเจ้าของ/ผู้จัดการใน GBP ของธุรกิจ
- เราจะส่งอีเมลติดตามผลให้คุณหลังจากตรวจสอบคำขอแล้ว
หมายเหตุเกี่ยวกับการตรวจสอบสถานะการอนุมัติ: คุณยังตรวจสอบได้ว่าโปรเจ็กต์ได้รับการอนุมัติหรือไม่โดยดูโควต้าสำหรับ Business Profile API ใน Google Cloud Console
- หากโควต้าเป็น 0 QPM (คำค้นหาต่อนาที) แสดงว่าโปรเจ็กต์ของคุณยังไม่ได้รับอนุมัติ
- หากโควต้าตั้งไว้ที่ 300 QPM แสดงว่าโปรเจ็กต์ได้รับอนุมัติแล้ว
หากแอปพลิเคชันได้รับอนุมัติ โปรดดูการตั้งค่าพื้นฐานเพื่อเปิดใช้ Business Profile API สำหรับโปรเจ็กต์ หากใบสมัครถูกปฏิเสธ โปรดตรวจสอบว่าคุณมีคุณสมบัติตรงตามข้อกำหนดที่ระบุไว้ก่อนหน้านี้ก่อนที่จะสมัครอีกครั้ง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eYou need a Google Account and familiarity with Business Profile before starting.\u003c/p\u003e\n"],["\u003cp\u003eCreate a project in the Google API Console and an Organization account to access the API.\u003c/p\u003e\n"],["\u003cp\u003eRequest access to the Business Profile API via the GBP API contact form and await approval.\u003c/p\u003e\n"],["\u003cp\u003eEnable the Business Profile APIs for your project after receiving approval.\u003c/p\u003e\n"]]],[],null,["# Prerequisites\n\nTo successfully create your first client application, you must complete the following\nprerequisites:\n\n1. [Get a Google Account](#get-account).\n2. [Try out Business Profile](#try-out).\n3. [Create a project in the Google Cloud Console](#create-project).\n4. [Create an Organization account](#create-organization-account).\n5. [Request access to the API](#request-access).\n\nGet a Google Account\n--------------------\n\nYou need a\n[Google Account](https://www.google.com/accounts/NewAccount) in order to create a project in the\nGoogle API Console. If you already have an account, you're all set.\n\nTry out Business Profile\n------------------------\n\nThis API documentation assumes that you've used Business Profile before, and that you're\nfamiliar with web programming concepts and web data formats.\n\nIf you haven't used Business Profile, try out the\n[user interface](https://www.google.com/business/) before you start to code.\n\nCreate a project in the Google API Console\n------------------------------------------\n\nBefore you can send requests to the Business Profile APIs, you need to use the\nGoogle API Console to create a project, and then request access to the Business Profile APIs for that\nproject. To create a new project, go to the\n[Google Cloud Console](https://console.developers.google.com/project).\nClick **Create project** , enter a name, and click **Create**.\n\nCreate an Organization account\n------------------------------\n\nTo create an Organization account, go to the\n[GBP help center](https://support.google.com/business/answer/7663063).\n\nRequest access to the APIs\n--------------------------\n\nIn order to get access to GBP APIs, we require all applicants:\n\n- Manage a Google Business Profile that is verified and active for 60+ days. This GBP can be the applicant's own office or headquarters or it could belong to one of the clients they manage.\n- Have a website representing the business listed on the GBP.\n\nFor a smooth and timely review of your application, we recommend that the Google Business Profile is fully complete and kept up-to-date with the current business information, including the business's official website.\n\nOnce you have met the requirements stated earlier, you can request API access by following these steps:\n\n1. Go to the [Google Cloud Console](https://console.developers.google.com/project) and select the project you plan to use with the Business Profile APIs.\n2. Find your Project Number in the Project info card on your project's Dashboard. You will need to provide this number in your application.\n3. When you are ready, submit your request using our [GBP API contact form](https://support.google.com/business/contact/api_default). Select 'Application for Basic API Access' from the drop-down menu and provide all requested information.\n4. Make sure that you are using an email address that is listed as an owner/manager on your business's GBP.\n5. A follow-up email will be sent to you after your request has been reviewed.\n\n**Note on Checking Approval Status:** You can also check if your project has been approved by viewing the quotas for the Business Profile APIs in the Google Cloud Console.\n\n- If your quota is 0 QPM (Queries Per Minute), your project has not yet been approved.\n- If your quota is set to 300 QPM, your project is approved.\n\nIf your application is approved, see [Basic setup](/my-business/content/basic-setup) to enable the Business Profile APIs for your project. If your application is rejected, make sure you have met the requirements stated earlier before re-applying."]]