class Pubsubnotificationsettings extends Resource (View source)

The "pubsubnotificationsettings" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $pubsubnotificationsettings = $contentService->pubsubnotificationsettings;

Methods

get(string $merchantId, array $optParams = [])

Retrieves a Merchant Center account's pubsub notification settings.

update(string $merchantId, PubsubNotificationSettings $postBody, array $optParams = [])

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

Details

PubsubNotificationSettings get(string $merchantId, array $optParams = [])

Retrieves a Merchant Center account's pubsub notification settings.

(pubsubnotificationsettings.get)

Parameters

string $merchantId

The ID of the account for which to get pubsub notification settings.

array $optParams

Optional parameters.

Return Value

PubsubNotificationSettings

Exceptions

Exception

PubsubNotificationSettings update(string $merchantId, PubsubNotificationSettings $postBody, array $optParams = [])

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

(pubsubnotificationsettings.update)

Parameters

string $merchantId

The ID of the account.

PubsubNotificationSettings $postBody
array $optParams

Optional parameters.

Return Value

PubsubNotificationSettings

Exceptions

Exception