Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
REST Resource: categories
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: หมวดหมู่
หมวดหมู่ที่อธิบายว่าธุรกิจนี้คืออะไร (ไม่ใช่สิ่งที่ทำ) ดูรายการรหัสหมวดหมู่ที่ถูกต้องและการแมปกับชื่อที่มนุษย์อ่านได้ที่หัวข้อ categories.list
การแสดง JSON |
{
"displayName": string,
"categoryId": string,
"serviceTypes": [
{
object (ServiceType )
}
],
"moreHoursTypes": [
{
object (MoreHoursType )
}
]
} |
ช่อง |
displayName |
string
ที่ใช้เวลาเพียง 2 นาที ชื่อหมวดหมู่ที่มนุษย์อ่านได้ ระบบจะตั้งค่านี้เมื่ออ่านตำแหน่ง ขณะแก้ไขสถานที่ตั้ง คุณต้องตั้งค่า categoryId หมายเหตุ: ช่องนี้ใช้ในคำตอบเท่านั้น ระบบจะไม่สนใจค่าที่ระบุไว้ในคำขอ
|
categoryId |
string
ที่ใช้เวลาเพียง 2 นาที รหัสแบบคงที่ (ระบุโดย Google) สำหรับหมวดหมู่นี้ ต้องระบุ categoryId เมื่อแก้ไขหมวดหมู่ (เมื่อสร้างหรืออัปเดตสถานที่ตั้ง) หมายเหตุ: ช่องนี้ใช้ในคำตอบเท่านั้น ระบบจะไม่สนใจค่าที่ระบุไว้ในคำขอ
|
serviceTypes[] |
object (ServiceType )
ที่ใช้เวลาเพียง 2 นาที รายการบริการทุกประเภทที่ใช้ได้กับหมวดหมู่ธุรกิจนี้ หมายเหตุ: ช่องนี้ใช้ในคำตอบเท่านั้น ระบบจะไม่สนใจค่าที่ระบุไว้ในคำขอ
|
moreHoursTypes[] |
object (MoreHoursType )
เอาต์พุตเท่านั้น ประเภทเวลาทำการเพิ่มเติมที่ใช้ได้กับหมวดหมู่ธุรกิจนี้
|
ServiceType
ข้อความที่อธิบายประเภทบริการที่ธุรกิจเสนอ
การแสดง JSON |
{
"serviceTypeId": string,
"displayName": string
} |
ช่อง |
serviceTypeId |
string
เอาต์พุตเท่านั้น รหัสแบบคงที่ (มาจาก Google) สำหรับบริการประเภทนี้
|
displayName |
string
เอาต์พุตเท่านั้น ชื่อที่แสดงที่มนุษย์อ่านได้สำหรับประเภทบริการ
|
MoreHoursType
ประเภทเวลาทำการเพิ่มเติมที่ธุรกิจนำเสนอได้นอกเหนือจากเวลาทำการปกติ
การแสดง JSON |
{
"hoursTypeId": string,
"displayName": string,
"localizedDisplayName": string
} |
ช่อง |
hoursTypeId |
string
เอาต์พุตเท่านั้น รหัสแบบคงที่ที่ Google มีให้สำหรับเวลาทำการประเภทนี้
|
displayName |
string
เอาต์พุตเท่านั้น ชื่อที่แสดงที่เป็นภาษาอังกฤษซึ่งมนุษย์อ่านได้สำหรับประเภทเวลาทำการ
|
localizedDisplayName |
string
เอาต์พุตเท่านั้น ชื่อที่แสดงซึ่งแปลเป็นภาษาท้องถิ่นซึ่งมนุษย์อ่านได้สำหรับประเภทเวลาทำการ
|
เมธอด |
|
แสดงผลรายการหมวดหมู่ธุรกิจสำหรับภาษาและรหัส GConcept ที่ระบุ |
|
แสดงผลรายการหมวดหมู่ธุรกิจ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003e\u003cstrong\u003eCategory\u003c/strong\u003e resource describes a business's type using a stable \u003ccode\u003ecategoryId\u003c/code\u003e and provides human-readable names (\u003ccode\u003edisplayName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach \u003cstrong\u003eCategory\u003c/strong\u003e can optionally include \u003cstrong\u003eServiceType\u003c/strong\u003e and \u003cstrong\u003eMoreHoursType\u003c/strong\u003e information detailing the services offered and special hours.\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eServiceType\u003c/strong\u003e objects provide specific service details with unique IDs (\u003ccode\u003eserviceTypeId\u003c/code\u003e) and human-readable names (\u003ccode\u003edisplayName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eMoreHoursType\u003c/strong\u003e objects specify additional hours beyond regular business hours using an ID (\u003ccode\u003ehoursTypeId\u003c/code\u003e) and localized display names.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access and utilize Category data using the \u003ccode\u003ebatchGet\u003c/code\u003e and \u003ccode\u003elist\u003c/code\u003e methods documented in the \u003cstrong\u003eMethods\u003c/strong\u003e section.\u003c/p\u003e\n"]]],[],null,["# REST Resource: categories\n\n- [Resource: Category](#Category)\n - [JSON representation](#Category.SCHEMA_REPRESENTATION)\n - [ServiceType](#Category.ServiceType)\n - [JSON representation](#Category.ServiceType.SCHEMA_REPRESENTATION)\n - [MoreHoursType](#Category.MoreHoursType)\n - [JSON representation](#Category.MoreHoursType.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Category\n------------------\n\nA category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see [categories.list](https://developers.google.com/my-business/reference/rest/v4/categories/list).\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"displayName\": string, \"categoryId\": string, \"serviceTypes\": [ { object (/my-business/reference/rest/v4/categories#Category.ServiceType) } ], \"moreHoursTypes\": [ { object (/my-business/reference/rest/v4/categories#Category.MoreHoursType) } ] } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` . The human-readable name of the category. This is set when reading the location. When modifying the location, `categoryId` must be set. Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `categoryId` | `string` . A stable ID (provided by Google) for this category. The `categoryId` must be specified when modifying the category (when creating or updating a location). Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `serviceTypes[]` | `object (`[ServiceType](/my-business/reference/rest/v4/categories#Category.ServiceType)`)` . A list of all the service types that are available for this business category. Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `moreHoursTypes[]` | `object (`[MoreHoursType](/my-business/reference/rest/v4/categories#Category.MoreHoursType)`)` Output only. More hours types that are available for this business category. |\n\n### ServiceType\n\nA message describing a service type that the business offers.\n\n| JSON representation ||\n|------------------------------------------------------------|---|\n| ``` { \"serviceTypeId\": string, \"displayName\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------|\n| `serviceTypeId` | `string` Output only. A stable ID (provided by Google) for this service type. |\n| `displayName` | `string` Output only. The human-readable display name for the service type. |\n\n### MoreHoursType\n\nMore hours types that a business can offers, in addition to its regular hours.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------|---|\n| ``` { \"hoursTypeId\": string, \"displayName\": string, \"localizedDisplayName\": string } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------|\n| `hoursTypeId` | `string` Output only. A stable ID provided by Google for this hours type. |\n| `displayName` | `string` Output only. The human-readable English display name for the hours type. |\n| `localizedDisplayName` | `string` Output only. The human-readable localized display name for the hours type. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------|-----------------------------------------------------------------------------------|\n| ### [batchGet](/my-business/reference/rest/v4/categories/batchGet) | Returns a list of business categories for the provided language and GConcept ids. |\n| ### [list](/my-business/reference/rest/v4/categories/list) | Returns a list of business categories. |"]]