Google Shopping Merchant Notifications V1beta Client - Class CreateNotificationSubscriptionRequest (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Notifications V1beta Client class CreateNotificationSubscriptionRequest.

Request message for the CreateNotificationSubscription method.

Generated from protobuf message google.shopping.merchant.notifications.v1beta.CreateNotificationSubscriptionRequest

Namespace

Google \ Shopping \ Merchant \ Notifications \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The merchant account that owns the new notification subscription. Format: accounts/{account}

↳ notification_subscription Google\Shopping\Merchant\Notifications\V1beta\NotificationSubscription

Required. The notification subscription to create.

getParent

Required. The merchant account that owns the new notification subscription.

Format: accounts/{account}

Returns
Type Description
string

setParent

Required. The merchant account that owns the new notification subscription.

Format: accounts/{account}

Parameter
Name Description
var string
Returns
Type Description
$this

getNotificationSubscription

Required. The notification subscription to create.

Returns
Type Description
Google\Shopping\Merchant\Notifications\V1beta\NotificationSubscription|null

hasNotificationSubscription

clearNotificationSubscription

setNotificationSubscription

Required. The notification subscription to create.

Parameter
Name Description
var Google\Shopping\Merchant\Notifications\V1beta\NotificationSubscription
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The merchant account that owns the new notification subscription. Format: accounts/{account} Please see Google\Shopping\Merchant\Notifications\V1beta\NotificationsApiServiceClient::accountName() for help formatting this field.

notificationSubscription Google\Shopping\Merchant\Notifications\V1beta\NotificationSubscription

Required. The notification subscription to create.

Returns
Type Description
Google\Shopping\Merchant\Notifications\V1beta\CreateNotificationSubscriptionRequest