Show / Hide Table of Contents

Class EmailPreferencesService.EmailPreferencesServiceBase

Base class for server-side implementations of EmailPreferencesService

Inheritance
object
EmailPreferencesService.EmailPreferencesServiceBase
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.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. This service only permits retrieving and updating email preferences for the authenticated 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. Advanced account users should specify the advanced account rather than a sub-account of the advanced account.

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).

In this article
Back to top Generated by DocFX