NotificationSetting
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נושא ב-Google Pub/Sub שבו אפשר לפרסם התראות כשמיקום מתעדכן או כשמתבצעת בדיקה חדשה. יהיה רק משאב אחד של הגדרת התראות לכל חשבון.
ייצוג 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 עם ערכי notificationsType ריקים או להגדיר את ה-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. בהתראה יצוין שם המשאב של פריט המדיה החדש. |
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. עריכות שתבצעו במיקום יועברו למפות Google אחרי שיעברו את שלב הבדיקה. לפרטים נוספים, אפשר להתקשר ל-rpc ב-GetVoiceOfMerchantState. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]