Close httplib2 connections.
get(merchantId, x__xgafv=None)
Retrieves a Merchant Center account's pubsub notification settings.
update(merchantId, body=None, x__xgafv=None)
Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.
close()
Close httplib2 connections.
get(merchantId, x__xgafv=None)
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) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format 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. "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only). "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#pubsubNotificationSettings`" "registeredEvents": [ # List of event types. Acceptable values are: - "`orderPendingShipment`" "A String", ], }
update(merchantId, body=None, x__xgafv=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. "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only). "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#pubsubNotificationSettings`" "registeredEvents": [ # List of event types. Acceptable values are: - "`orderPendingShipment`" "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format 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. "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only). "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#pubsubNotificationSettings`" "registeredEvents": [ # List of event types. Acceptable values are: - "`orderPendingShipment`" "A String", ], }