Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
NotificationSetting
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หัวข้อ Google Pub/Sub ที่สามารถเผยแพร่การแจ้งเตือนเมื่อมีการอัปเดตสถานที่ตั้งหรือมีรีวิวใหม่ ต่อบัญชีจะมีทรัพยากรการตั้งค่าการแจ้งเตือนเพียง 1 รายการเท่านั้น
การแสดง JSON |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
ช่อง |
name |
string
ต้องระบุ ชื่อทรัพยากรสำหรับการตั้งค่านี้ ข้อมูลนี้อยู่ในรูปแบบ accounts/{account_id}/notificationSetting
|
pubsubTopic |
string
ไม่บังคับ หัวข้อ Google Pub/Sub ที่จะได้รับการแจ้งเตือนเมื่อมีการอัปเดตสถานที่ตั้งที่จัดการโดยบัญชีนี้ หากไม่ได้ตั้งค่า ระบบจะไม่โพสต์การแจ้งเตือน บัญชี mybusiness-api-pubsub@system.gserviceaccount.com ต้องมีสิทธิ์เผยแพร่ในหัวข้อ Pub/Sub เป็นอย่างน้อย
|
notificationTypes[] |
enum (NotificationType )
ประเภทการแจ้งเตือนที่จะส่งไปยังหัวข้อ Pub/Sub หากต้องการหยุดรับการแจ้งเตือนทั้งหมด ให้ใช้ NotificationSettings.UpdateNotificationSetting กับ notificationsTypes ที่ว่างเปล่า หรือตั้งค่า pubsubTopic เป็นสตริงว่าง
|
NotificationType
ประเภทการแจ้งเตือนที่ส่งไปยังหัวข้อ Pub/Sub
Enum |
NOTIFICATION_TYPE_UNSPECIFIED |
ไม่มีประเภทการแจ้งเตือน จะไม่ตรงกับการแจ้งเตือนใดๆ |
GOOGLE_UPDATE |
สถานที่มีการอัปเดตจาก Google ให้ตรวจสอบ ช่อง location_name ในการแจ้งเตือนจะแสดงชื่อทรัพยากรของตำแหน่งพร้อมด้วยการอัปเดตจาก Google |
NEW_REVIEW |
เพิ่มรีวิวใหม่ให้กับสถานที่นี้แล้ว ช่อง review_name ในการแจ้งเตือนจะระบุชื่อทรัพยากรของรีวิวที่เพิ่ม และ location_name จะมีชื่อทรัพยากรของตำแหน่ง |
UPDATED_REVIEW |
อัปเดตรีวิวของสถานที่แล้ว ช่อง review_name ในการแจ้งเตือนจะระบุชื่อทรัพยากรของรีวิวที่เพิ่ม และ location_name จะมีชื่อทรัพยากรของตำแหน่ง |
NEW_CUSTOMER_MEDIA |
ผู้ใช้ Google Maps ได้เพิ่มรายการสื่อใหม่ไปยังตำแหน่งนั้น การแจ้งเตือนจะระบุชื่อทรัพยากรของรายการสื่อใหม่ |
NEW_QUESTION |
มีการเพิ่มคำถามใหม่ลงในสถานที่ การแจ้งเตือนจะระบุชื่อทรัพยากรของคำถาม |
UPDATED_QUESTION |
อัปเดตคําถามเกี่ยวกับสถานที่แล้ว การแจ้งเตือนจะระบุชื่อทรัพยากรของคำถาม |
NEW_ANSWER |
มีการเพิ่มคำตอบใหม่ให้กับสถานที่ การแจ้งเตือนจะระบุชื่อแหล่งข้อมูลของคำถามและคำตอบ |
UPDATED_ANSWER |
อัปเดตคําตอบของตําแหน่งแล้ว การแจ้งเตือนจะระบุชื่อแหล่งข้อมูลของคำถามและคำตอบ |
DUPLICATE_LOCATION |
ระบุว่ามีการเปลี่ยนแปลงในฟิลด์สถานที่ซ้ำของข้อมูลเมตาของตำแหน่งหรือไม่ |
LOSS_OF_VOICE_OF_MERCHANT |
เลิกใช้งานแล้ว: ย้ายข้อมูลการใช้งานที่มีอยู่ของค่านี้ไปยัง "VOICE_OF_MERCHANT_UPDATED" แบบขยายมากขึ้น |
VOICE_OF_MERCHANT_UPDATED |
ระบุว่าสถานที่มีการอัปเดตในสถานะ Voice of Merchant (VOM) หรือไม่ VOM จะกำหนดว่าสถานที่อยู่ในสถานะดีและผู้ขายควบคุมธุรกิจใน Google ได้หรือไม่ การแก้ไขใดๆ กับสถานที่จะเผยแพร่ไปยัง Maps หลังจากผ่านขั้นตอนการตรวจสอบ โทร RPC ของ GetVoiceOfMerchantState เพื่อขอรายละเอียดเพิ่มเติม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGoogle Pub/Sub notifications can be configured for location updates and new reviews.\u003c/p\u003e\n"],["\u003cp\u003eA single notification setting exists per account, directing notifications to a specified Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eNotification types include Google updates, new/updated reviews, new customer media, new/updated Q&A, duplicate location and Voice of Merchant updates.\u003c/p\u003e\n"],["\u003cp\u003eAccount must grant \u003ccode\u003emybusiness-api-pubsub@system.gserviceaccount.com\u003c/code\u003e publish permissions on the designated Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eTo disable notifications, clear the \u003ccode\u003enotificationTypes\u003c/code\u003e list or set \u003ccode\u003epubsubTopic\u003c/code\u003e to an empty string in the notification settings.\u003c/p\u003e\n"]]],[],null,["# NotificationSetting\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [NotificationType](#NotificationType)\n\nA Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"pubsubTopic\": string, \"notificationTypes\": [ enum (/my-business/reference/notifications/rest/v1/NotificationSetting#NotificationType) ] } ``` |\n\n| Fields ||\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. |\n| `pubsubTopic` | `string` Optional. The Google 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 Pub/Sub topic. |\n| `notificationTypes[]` | `enum (`[NotificationType](/my-business/reference/notifications/rest/v1/NotificationSetting#NotificationType)`)` The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notificationTypes or set the pubsubTopic to an empty string. |\n\nNotificationType\n----------------\n\nType of notification sent to the 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 location_name 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 review_name field on the notification will provide the resource name of the review that was added, and location_name will have the location's resource name. |\n| `UPDATED_REVIEW` | A review on the location has been updated. The review_name field on the notification will provide the resource name of the review that was added, and location_name 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| `DUPLICATE_LOCATION` | Indicates whether there is a change in location metadata's duplicate location field. |\n| `LOSS_OF_VOICE_OF_MERCHANT` | Deprecated: Migrate the existing usages of this value to the more expanded \"VOICE_OF_MERCHANT_UPDATED\". | This item is deprecated! |\n| `VOICE_OF_MERCHANT_UPDATED` | Indicates whether the location has an update in Voice of Merchant (VOM) status. VOM dictates whether the location is in good standing and the merchant has control over the business on Google. Any edits made to the location will propagate to Maps after passing the review phase. Call GetVoiceOfMerchantState rpc for more details. |"]]