Google Business Performance API یک روش API
جدید دارد که امکان واکشی چندین «DailyMetrics» را در یک درخواست API فراهم میکند.
زمانبندی منسوخ شدن و دستورالعملهای انتقال از روش API reportInsights v4 به API عملکرد نمایه کسبوکار Google را مرور کنید.
Notifications
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک موضوع Google Cloud Pub/Sub که در آن هنگام بهروزرسانی مکان یا بررسی جدید، میتوان اعلانها را منتشر کرد. تنها یک منبع تنظیمات اعلان برای هر حساب وجود خواهد داشت.
نمایندگی 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 ارسال می شود. حداقل یکی باید مشخص شود. برای توقف کامل دریافت اعلانها، از accounts.deleteNotifications استفاده کنید. |
نوع اعلان
نوع اعلان ارسال شده به موضوع Cloud Pub/Sub.
Enums |
---|
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 به روز شده خواهد بود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]