Class AccountsResource.EmailPreferencesResource.UpdateEmailPreferencesRequest
Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.
Inheritance
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class AccountsResource.EmailPreferencesResource.UpdateEmailPreferencesRequest : MerchantBaseServiceRequest<EmailPreferences>, IClientServiceRequest<EmailPreferences>, IClientServiceRequest
Constructors
UpdateEmailPreferencesRequest(IClientService, EmailPreferences, string)
Constructs a new UpdateEmailPreferences request.
Declaration
public UpdateEmailPreferencesRequest(IClientService service, EmailPreferences body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
EmailPreferences | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Required. List of fields being updated. The following fields are supported (in both snake_case
and
lowerCamelCase
): - news_and_tips
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes UpdateEmailPreferences parameter list.
Declaration
protected override void InitParameters()