Show / Hide Table of Contents

Class AccountsResource.EmailPreferencesResource

The "emailPreferences" collection of methods.

Inheritance
object
AccountsResource.EmailPreferencesResource
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.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class AccountsResource.EmailPreferencesResource

Constructors

EmailPreferencesResource(IClientService)

Constructs a new resource.

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

Methods

GetEmailPreferences(string)

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 AccountsResource.EmailPreferencesResource.GetEmailPreferencesRequest GetEmailPreferences(string name)
Parameters
Type Name Description
string name

Required. The name of the EmailPreferences resource. Format: accounts/{account}/users/{email}/emailPreferences

Returns
Type Description
AccountsResource.EmailPreferencesResource.GetEmailPreferencesRequest

UpdateEmailPreferences(EmailPreferences, string)

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 AccountsResource.EmailPreferencesResource.UpdateEmailPreferencesRequest UpdateEmailPreferences(EmailPreferences body, string name)
Parameters
Type Name Description
EmailPreferences body

The body of the request.

string name

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

Returns
Type Description
AccountsResource.EmailPreferencesResource.UpdateEmailPreferencesRequest
In this article
Back to top Generated by DocFX