# Content API for Shopping . pubsubnotificationsettings

## Instance Methods

Close httplib2 connections.

Retrieves a Merchant Center account's pubsub notification settings.

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

### Method Details

`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.
        "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",
        ],
        "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
      }

`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.
      "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",
      ],
      "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
    }

      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.
        "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",
        ],
        "cloudTopicName": "A String", # Cloud pub/sub topic to which notifications are sent (read-only).
      }