Crea una sottoscrizione alle notifiche per un'attività. Per gli account autonomi o subaccount, l'attività può creare un abbonamento per se stessa. Per gli AMC, l'attività può creare un abbonamento per tutti gli account gestiti o per un subaccount specifico.
Consentiremo la coesistenza dei seguenti tipi di iscrizioni alle notifiche (per attività come abbonato per tipo di evento):
Abbonamento per tutti gli account gestiti + abbonamento personale.
Più abbonamenti "parziali" per gli account gestiti + abbonamento personale.
Non sono consentiti (per attività come abbonato per tipo di evento):
Più abbonamenti personali.
Più iscrizioni "tutti gli account gestiti".
Abbonamento "Tutti gli account gestiti" e abbonamenti parziali contemporaneamente.
Più abbonamenti parziali per lo stesso account di destinazione.
Richiesta HTTP
POST https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]