Google Business Performance API memiliki metode API
BARU yang memungkinkan pengambilan beberapa `DailyMetrics` dalam satu permintaan API.
Tinjau
jadwal penghentian dan petunjuk untuk bermigrasi dari metode API reportInsights v4 ke Google Business Profile Performance API.
Notifications
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Topik Google Cloud Pub/Sub tempat notifikasi dapat dipublikasikan saat lokasi diperbarui atau memiliki ulasan baru. Hanya akan ada satu resource setelan notifikasi per akun.
Representasi JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Kolom |
name |
string
Hanya output. Nama resource notifikasi.
|
topicName |
string
Topik Google Cloud Pub/Sub yang akan menerima notifikasi saat lokasi yang dikelola oleh akun ini diperbarui. Jika tidak disetel, tidak ada notifikasi yang akan diposting. Akun mybusiness-api-pubsub@system.gserviceaccount.com harus memiliki setidaknya izin Publikasi pada topik Cloud Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Jenis notifikasi yang akan dikirim ke topik Cloud Pub/Sub. Setidaknya salah satunya harus ditentukan. Untuk berhenti menerima notifikasi sepenuhnya, gunakan accounts.deleteNotifications .
|
NotificationType
Jenis notifikasi yang dikirim ke topik Cloud Pub/Sub.
Enum |
NOTIFICATION_TYPE_UNSPECIFIED |
Tidak ada jenis notifikasi. Tidak akan cocok dengan notifikasi apa pun. |
GOOGLE_UPDATE |
Lokasi memiliki update Google untuk ditinjau. Kolom locationName pada notifikasi akan memberikan nama resource lokasi yang memiliki update Google. |
NEW_REVIEW |
Ulasan baru telah ditambahkan ke lokasi. Kolom reviewName pada notifikasi akan memberikan nama resource ulasan yang ditambahkan, dan locationName akan mencantumkan nama resource lokasi. |
UPDATED_REVIEW |
Ulasan tentang lokasi telah diperbarui. Kolom reviewName pada notifikasi akan memberikan nama resource ulasan yang ditambahkan, dan locationName akan mencantumkan nama resource lokasi. |
NEW_CUSTOMER_MEDIA |
Item media baru telah ditambahkan ke lokasi oleh pengguna Google Maps. Notifikasi akan memberikan nama resource item media baru. |
NEW_QUESTION |
Pertanyaan baru ditambahkan ke lokasi. Notifikasi akan memberikan nama resource pertanyaan. |
UPDATED_QUESTION |
Pertanyaan tentang lokasi diperbarui. Notifikasi akan memberikan nama resource pertanyaan. |
NEW_ANSWER |
Jawaban baru ditambahkan ke lokasi. Notifikasi akan memberikan nama referensi pertanyaan dan jawaban. |
UPDATED_ANSWER |
Jawaban lokasi diperbarui. Notifikasi akan memberikan nama referensi pertanyaan dan jawaban. |
UPDATED_LOCATION_STATE |
LocationState untuk Lokasi telah diperbarui. Notifikasi akan berisi mask kolom untuk kolom LocationState yang diperbarui. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]