Représente un abonnement aux notifications appartenant à un compte Merchant.
Représentation JSON
{"name": string,"registeredEvent": enum (NotificationEventType),"callBackUri": string,// Union field interested_in can be only one of the following:"allManagedAccounts": boolean,"targetAccount": string// End of list of possible types for union field interested_in.}
Champs
name
string
Uniquement en sortie. name de la configuration de notification. Généré par l'API Content lors de la création d'un NotificationSubscription. account représente l'ID du marchand propriétaire de la configuration. Format: accounts/{account}/notificationsubscriptions/{notificationSubscription}
Événement pour lequel le marchand souhaite être averti.
callBackUri
string
URL à utiliser pour envoyer la notification au marchand.
Champ d'union interested_in.
interested_in ne peut être qu'un des éléments suivants :
allManagedAccounts
boolean
Si cette valeur est définie sur "true", le compte à l'origine de la demande est informé de l'événement spécifié pour tous les comptes gérés (sous-comptes ou autres comptes associés), y compris les comptes nouvellement ajoutés, sur une base quotidienne.
targetAccount
string
name du compte pour lequel vous souhaitez recevoir des notifications. Format : accounts/{account}
NotificationEventType
Représente le type d'événement pour lequel le marchand souhaite recevoir des notifications.
Enums
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
Le type d'événement de notification n'est pas spécifié.
PRODUCT_STATUS_CHANGE
Notification des changements d'état des produits, par exemple lorsqu'un produit est refusé.
Met à jour un abonnement aux notifications existant pour un marchand.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/24 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/11/24 (UTC)."],[],["Merchants can create `NotificationSubscription` resources to receive updates about specific events. Each subscription includes a `name`, a `registeredEvent` (e.g., `PRODUCT_STATUS_CHANGE`), and a `callBackUri` for notification delivery. Merchants can specify if they want to receive events regarding `allManagedAccounts` or a `targetAccount`. Available methods include `create`, `delete`, `get`, `list`, and `patch` for managing these subscriptions. Notification event type can be `PRODUCT_STATUS_CHANGE` or `NOTIFICATION_EVENT_TYPE_UNSPECIFIED`.\n"]]