Class EmailPreferencesService.EmailPreferencesServiceBase
Base class for server-side implementations of EmailPreferencesService
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(EmailPreferencesService), "BindService")]
public abstract class EmailPreferencesService.EmailPreferencesServiceBase
Methods
GetEmailPreferences(GetEmailPreferencesRequest, ServerCallContext)
Returns the email preferences for a Merchant Center account user.
Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user.
Declaration
public virtual Task<EmailPreferences> GetEmailPreferences(GetEmailPreferencesRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetEmailPreferencesRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<EmailPreferences> | The response to send back to the client (wrapped by a task). |
UpdateEmailPreferences(UpdateEmailPreferencesRequest, ServerCallContext)
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.
Declaration
public virtual Task<EmailPreferences> UpdateEmailPreferences(UpdateEmailPreferencesRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateEmailPreferencesRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<EmailPreferences> | The response to send back to the client (wrapped by a task). |