Google Business Performance API, tek bir API isteğinde birden fazla "GünlükMetrik" getirmeye olanak tanıyan
YENİ bir API yöntemine sahiptir.
Kullanımdan kaldırma planını ve v4 reportInsights API yönteminden Google Business Profile Performance API'ye geçiş talimatlarını inceleyin.
Notifications
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir konum güncellendiğinde veya yeni bir yorum yapıldığında bildirimlerin yayınlanabildiği bir Google Cloud Pub/Sub konusu. Hesap başına yalnızca bir bildirim ayarları kaynağı olur.
JSON gösterimi |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Alanlar |
name |
string
Yalnızca çıkış. Bildirim kaynağının adı.
|
topicName |
string
Bu hesap tarafından yönetilen konumlar güncellendiğinde bildirim alacak olan Google Cloud Pub/Sub konusu. Politika ayarlanmazsa hiçbir bildirim yayınlanmaz. mybusiness-api-pubsub@system.gserviceaccount.com hesabı, Cloud Pub/Sub konusunda en azından Yayınlama izinlerine sahip olmalıdır.
|
notificationTypes[] |
enum (NotificationType )
Cloud Pub/Sub konusuna gönderilecek bildirim türleri. En az biri belirtilmelidir. Bildirim almayı tamamen durdurmak için accounts.deleteNotifications uygulamasını kullanın.
|
NotificationType
Cloud Pub/Sub konusuna gönderilen bildirimin türü.
Sıralamalar |
NOTIFICATION_TYPE_UNSPECIFIED |
Bildirim türü yok. Hiçbir bildirimle eşleşmeyecek. |
GOOGLE_UPDATE |
Konum, incelenmek üzere Google güncellemelerine sahip. Bildirimdeki locationName alanı, Google güncellemeleri yapılan konumun kaynak adını sağlar. |
NEW_REVIEW |
Konuma yeni bir yorum eklendi. Bildirimdeki reviewName alanı, eklenen yorumun kaynak adını; locationName ise konumun kaynak adını içerir. |
UPDATED_REVIEW |
Konumla ilgili bir yorum güncellendi. Bildirimdeki reviewName alanı, eklenen yorumun kaynak adını; locationName ise konumun kaynak adını içerir. |
NEW_CUSTOMER_MEDIA |
Bir Google Haritalar kullanıcısı tarafından konuma yeni bir medya öğesi eklendi. Bildirimde, yeni medya öğesinin kaynak adı yer alır. |
NEW_QUESTION |
Konuma yeni bir soru eklenir. Bildirimde, sorunun kaynak adı belirtilir. |
UPDATED_QUESTION |
Konumla ilgili bir soru güncellendi. Bildirimde, sorunun kaynak adı belirtilir. |
NEW_ANSWER |
Konuma yeni bir yanıt eklenir. Bildirimde, soru ve yanıtın kaynak adı belirtilir. |
UPDATED_ANSWER |
Konumla ilgili bir yanıt güncellendi. Bildirimde, soru ve yanıtın kaynak adı belirtilir. |
UPDATED_LOCATION_STATE |
Konumun LocationState değeri güncellendi. Bildirim, güncellenen LocationState alanlarının alan maskesini içerir. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]