Class AccountsResource.EmailPreferencesResource
The "emailPreferences" collection of methods.
Inherited Members
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 |
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 |