Erstellt ein Benachrichtigungsabo für ein Unternehmen. Für eigenständige Konten oder Unterkonten kann das Unternehmen ein Abo für sich selbst erstellen. Bei Mehrfachkundenkonten kann das Unternehmen ein Abo für alle verwalteten Konten oder für ein bestimmtes Unterkonto erstellen.
Die folgenden Arten von Benachrichtigungsabos können gleichzeitig vorhanden sein (pro Unternehmen als Abonnent und pro Ereignistyp):
Abo für alle verwalteten Konten + Abo für mich selbst
Mehrere „teilweise“ Abos für verwaltete Konten und ein Abo für mich selbst
Folgendes ist nicht zulässig (pro Unternehmen als Abonnent und pro Ereignistyp):
Mehrere selbst abgeschlossene Abos
Mehrere Abos vom Typ „Alle verwalteten Konten“
Das Abo „Alle verwalteten Konten“ und Teilabos gleichzeitig
Mehrere teilweise Abos für dasselbe Zielkonto.
HTTP-Anfrage
POST https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]