Method: accounts.notificationsubscriptions.create
יצירת מינויים לקבלת התראות עבור עסק. בחשבונות עצמאיים או בחשבונות משנה, העסק יכול ליצור מינוי לעצמו. בחשבונות MCA, העסק יכול ליצור מינוי לכל החשבונות המנוהלים או לחשבון משנה ספציפי.
נאפשר את קיומם של סוגי המינויים הבאים להתרעות (לכל עסק כמנוי לכל סוג אירוע):
מינוי לכל החשבונות המנוהלים + מינוי לעצמכם.
כמה מינויים 'חלקיים' לחשבונות מנוהלים + מינוי לעצמכם.
לא נאפשר (לכל עסק כמנוי לכל סוג אירוע):
כמה מינויים לעצמכם.
כמה מינויים מסוג 'כל החשבונות המנוהלים'.
מינוי 'כל החשבונות המנוהלים' ומינויים חלקיים בו-זמנית.
כמה מינויים חלקיים לאותו חשבון יעד.
בקשת HTTP
POST https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. חשבון המוכר שבבעלותו המינוי החדש להתראות. פורמט: accounts/{account}
|
גוף הבקשה
גוף הבקשה מכיל מופע של NotificationSubscription
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של NotificationSubscription
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/content
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-23 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-23 (שעון UTC)."],[[["This API creates notification subscriptions for businesses, allowing them to receive updates on various events."],["Businesses can create subscriptions for themselves, all managed accounts, or specific sub-accounts, with certain restrictions to avoid redundancy."],["The API requires a POST request to a specific URL with the merchant account ID and a request body containing the subscription details."],["A successful response will return the newly created notification subscription details."],["Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope."]]],["This describes how to create a notification subscription for a business via a `POST` request to `https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions`. The request uses a `parent` path parameter specifying the merchant account. The request and response bodies are `NotificationSubscription` instances. Subscriptions can be for self or managed accounts, with restrictions preventing multiple full or partial subscriptions of the same type. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]