REST Resource: pubsubnotificationsettings
Resource: PubsubNotificationSettings
Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.
JSON representation |
{
"kind": string,
"cloudTopicName": string,
"registeredEvents": [
string
]
} |
Fields |
kind |
string
Identifies what kind of resource this is. Value: the fixed string "content#pubsubNotificationSettings "
|
cloudTopicName |
string
Cloud pub/sub topic to which notifications are sent (read-only).
|
registeredEvents[] |
string
List of event types. Acceptable values are:
|
Methods |
|
Retrieves a Merchant Center account's pubsub notification settings. |
|
Register a Merchant Center account for pubsub notifications. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["PubsubNotificationSettings allows you to configure Pub/Sub notifications for your Merchant Center account, requiring direct user access."],["These settings define where notifications are sent (`cloudTopicName`) and which events trigger them (`registeredEvents`)."],["You can retrieve existing notification settings using the `get` method and register or update them with the `update` method."],["The `orderPendingShipment` event is a supported event type for triggering notifications."],["The JSON representation of PubsubNotificationSettings includes `kind`, `cloudTopicName`, and `registeredEvents` fields."]]],["Pub/Sub notification settings manage notifications for a Merchant Center account, requiring direct user access. Settings include a `kind`, a read-only `cloudTopicName`, and a list of `registeredEvents`. The only currently available registered event is `orderPendingShipment`. The `get` method retrieves notification settings, while the `update` method registers an account for these notifications. The settings use a specific JSON structure.\n"]]