Method: accounts.emailPreferences.updateEmailPreferences

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.

HTTP request

PATCH https://merchantapi.googleapis.com/accounts/v1beta/{emailPreferences.name=accounts/*/users/*/emailPreferences}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
emailPreferences.name

string

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

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. List of fields being updated.

Request body

The request body contains an instance of EmailPreferences.

Response body

If successful, the response body contains an instance of EmailPreferences.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/content

For more information, see the OAuth 2.0 Overview.