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 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"]]