Show / Hide Table of Contents

Class AccountsResource.NotificationsubscriptionsResource

The "notificationsubscriptions" collection of methods.

Inheritance
object
AccountsResource.NotificationsubscriptionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Merchant.notifications_v1beta
Assembly: Google.Apis.Merchant.notifications_v1beta.dll
Syntax
public class AccountsResource.NotificationsubscriptionsResource

Constructors

NotificationsubscriptionsResource(IClientService)

Constructs a new resource.

Declaration
public NotificationsubscriptionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(NotificationSubscription, string)

Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.

Declaration
public virtual AccountsResource.NotificationsubscriptionsResource.CreateRequest Create(NotificationSubscription body, string parent)
Parameters
Type Name Description
NotificationSubscription body

The body of the request.

string parent

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

Returns
Type Description
AccountsResource.NotificationsubscriptionsResource.CreateRequest

Delete(string)

Deletes a notification subscription for a merchant.

Declaration
public virtual AccountsResource.NotificationsubscriptionsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the notification subscription to be deleted.

Returns
Type Description
AccountsResource.NotificationsubscriptionsResource.DeleteRequest

Get(string)

Gets notification subscriptions for an account.

Declaration
public virtual AccountsResource.NotificationsubscriptionsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the notification subscription.

Returns
Type Description
AccountsResource.NotificationsubscriptionsResource.GetRequest

List(string)

Gets all the notification subscriptions for a merchant.

Declaration
public virtual AccountsResource.NotificationsubscriptionsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The merchant account who owns the notification subscriptions. Format: accounts/{account}

Returns
Type Description
AccountsResource.NotificationsubscriptionsResource.ListRequest

Patch(NotificationSubscription, string)

Updates an existing notification subscription for a merchant.

Declaration
public virtual AccountsResource.NotificationsubscriptionsResource.PatchRequest Patch(NotificationSubscription body, string name)
Parameters
Type Name Description
NotificationSubscription body

The body of the request.

string name

Output only. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration. Format: accounts/{account}/notificationsubscriptions/{notification_subscription}

Returns
Type Description
AccountsResource.NotificationsubscriptionsResource.PatchRequest
In this article
Back to top Generated by DocFX