Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Notifications
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หัวข้อ Google Cloud Pub/Sub ที่เผยแพร่การแจ้งเตือนเมื่อมีการอัปเดตตำแหน่งหรือมีรีวิวใหม่ แต่ละบัญชีจะมีทรัพยากรการตั้งค่าการแจ้งเตือนเพียง 1 รายการเท่านั้น
การแสดง JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
ช่อง |
name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรการแจ้งเตือน
|
topicName |
string
หัวข้อ Google Cloud Pub/Sub ที่จะได้รับการแจ้งเตือนเมื่อมีการอัปเดตสถานที่ตั้งที่จัดการโดยบัญชีนี้ หากไม่ได้ตั้งค่า ระบบจะไม่โพสต์การแจ้งเตือน บัญชี mybusiness-api-pubsub@system.gserviceaccount.com ต้องมีสิทธิ์เผยแพร่ในหัวข้อ Cloud Pub/Sub เป็นอย่างน้อย
|
notificationTypes[] |
enum (NotificationType )
ประเภทการแจ้งเตือนที่จะส่งไปยังหัวข้อ Cloud Pub/Sub ต้องระบุอย่างน้อย 1 รายการ หากต้องการหยุดรับการแจ้งเตือนทั้งหมด ให้ใช้ accounts.deleteNotifications
|
NotificationType
ประเภทการแจ้งเตือนที่ส่งไปยังหัวข้อ Cloud Pub/Sub
Enum |
NOTIFICATION_TYPE_UNSPECIFIED |
ไม่มีประเภทการแจ้งเตือน จะไม่ตรงกับการแจ้งเตือนใดๆ |
GOOGLE_UPDATE |
สถานที่มีการอัปเดตจาก Google ให้ตรวจสอบ ฟิลด์ locationName ในการแจ้งเตือนจะระบุชื่อทรัพยากรของตำแหน่งนั้นพร้อมกับการอัปเดตจาก Google |
NEW_REVIEW |
เพิ่มรีวิวใหม่ให้กับสถานที่นี้แล้ว ช่อง reviewName ในการแจ้งเตือนจะระบุชื่อทรัพยากรของรีวิวที่เพิ่ม และ locationName จะมีชื่อทรัพยากรของตำแหน่ง |
UPDATED_REVIEW |
อัปเดตรีวิวของสถานที่แล้ว ช่อง reviewName ในการแจ้งเตือนจะระบุชื่อทรัพยากรของรีวิวที่เพิ่ม และ locationName จะมีชื่อทรัพยากรของตำแหน่ง |
NEW_CUSTOMER_MEDIA |
ผู้ใช้ Google Maps ได้เพิ่มรายการสื่อใหม่ไปยังตำแหน่งนั้น การแจ้งเตือนจะระบุชื่อทรัพยากรของรายการสื่อใหม่ |
NEW_QUESTION |
มีการเพิ่มคำถามใหม่ลงในสถานที่ การแจ้งเตือนจะระบุชื่อทรัพยากรของคำถาม |
UPDATED_QUESTION |
อัปเดตคําถามเกี่ยวกับสถานที่แล้ว การแจ้งเตือนจะระบุชื่อทรัพยากรของคำถาม |
NEW_ANSWER |
มีการเพิ่มคำตอบใหม่ให้กับสถานที่ การแจ้งเตือนจะระบุชื่อแหล่งข้อมูลของคำถามและคำตอบ |
UPDATED_ANSWER |
อัปเดตคําตอบของตําแหน่งแล้ว การแจ้งเตือนจะระบุชื่อแหล่งข้อมูลของคำถามและคำตอบ |
UPDATED_LOCATION_STATE |
ปรับข้อมูล LocationState ของตำแหน่งแล้ว การแจ้งเตือนจะมีฟิลด์มาสก์ของช่อง LocationState ที่อัปเดต |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGoogle Cloud Pub/Sub topic allows business accounts to receive notifications about location updates and new reviews.\u003c/p\u003e\n"],["\u003cp\u003eEach account has a single notification settings resource which can be configured to receive different types of notifications.\u003c/p\u003e\n"],["\u003cp\u003eNotifications can be triggered by various events including Google updates, new/updated reviews, customer media, questions, answers, and location state changes.\u003c/p\u003e\n"],["\u003cp\u003eTo receive notifications, the 'mybusiness-api-pubsub@system.gserviceaccount.com' must have publish permissions on the specified Cloud Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can stop receiving notifications completely using the \u003ccode\u003eaccounts.deleteNotifications\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# Notifications\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [NotificationType](#NotificationType)\n\nA Google Cloud Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification settings resource per-account.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"topicName\": string, \"notificationTypes\": [ enum (/my-business/reference/rest/v4/Notifications#NotificationType) ] } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The notifications resource name. |\n| `topicName` | `string` The Google Cloud Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account [mybusiness-api-pubsub@system.gserviceaccount.com](mailto:mybusiness-api-pubsub@system.gserviceaccount.com) must have at least Publish permissions on the Cloud Pub/Sub topic. |\n| `notificationTypes[]` | `enum (`[NotificationType](/my-business/reference/rest/v4/Notifications#NotificationType)`)` The types of notifications that will be sent to the Cloud Pub/Sub topic. At least one must be specified. To stop receiving notifications entirely, use [accounts.deleteNotifications](/my-business/reference/rest/v4/accounts/deleteNotifications#google.mybusiness.v4.Accounts.DeleteNotifications). |\n\nNotificationType\n----------------\n\nType of notification sent to the Cloud Pub/Sub topic.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `NOTIFICATION_TYPE_UNSPECIFIED` | No notification type. Will not match any notifications. |\n| `GOOGLE_UPDATE` | The location has Google updates for review. The locationName field on the notification will provide the resource name of the location with Google updates. |\n| `NEW_REVIEW` | A new review has been added to the location. The reviewName field on the notification will provide the resource name of the review that was added, and locationName will have the location's resource name. |\n| `UPDATED_REVIEW` | A review on the location has been updated. The reviewName field on the notification will provide the resource name of the review that was added, and locationName will have the location's resource name. |\n| `NEW_CUSTOMER_MEDIA` | A new media item has been added to the location by a Google Maps user. The notification will provide the resource name of the new media item. |\n| `NEW_QUESTION` | A new question is added to the location. The notification will provide the resource name of question. |\n| `UPDATED_QUESTION` | A question of the location is updated. The notification will provide the resource name of question. |\n| `NEW_ANSWER` | A new answer is added to the location. The notification will provide the resource name of question and answer. |\n| `UPDATED_ANSWER` | An answer of the location is updated. The notification will provide the resource name of question and answer. |\n| `UPDATED_LOCATION_STATE` | The LocationState of the Location was updated. The Notification will contain the field mask of the updated LocationState fields. |"]]