Content API for Shopping . 1 . pubsubnotificationsettings

Instance Methods

get(merchantId=*)

Retrieves a Merchant Center account's pubsub notification settings.

update(merchantId=*, body=None)

Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.

Method Details

get(merchantId=*)
Retrieves a Merchant Center account's pubsub notification settings.

Args:
  merchantId: string, The ID of the account for which to get pubsub notification settings. (required)

Returns:
  An object of the form:

    { # Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.
      "kind": "content#pubsubNotificationSettings", # Identifies what kind of resource this is. Value: the fixed string "content#pubsubNotificationSettings".
      "registeredEvents": [ # List of event types. Supported event types: orderPendingShipment.
        "A String",
      ],
      "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
    }
update(merchantId=*, body=None)
Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.

Args:
  merchantId: string, The ID of the account. (required)
  body: object, The request body.
    The object takes the form of:

{ # Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.
    "kind": "content#pubsubNotificationSettings", # Identifies what kind of resource this is. Value: the fixed string "content#pubsubNotificationSettings".
    "registeredEvents": [ # List of event types. Supported event types: orderPendingShipment.
      "A String",
    ],
    "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
  }


Returns:
  An object of the form:

    { # Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.
      "kind": "content#pubsubNotificationSettings", # Identifies what kind of resource this is. Value: the fixed string "content#pubsubNotificationSettings".
      "registeredEvents": [ # List of event types. Supported event types: orderPendingShipment.
        "A String",
      ],
      "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
    }