Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class EmailPreferences.
The categories of notifications the user opted into / opted out of. The email
preferences do not include mandatory announcements as users can't opt out of
them.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1.EmailPreferences
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.
↳ news_and_tips
int
Optional. Updates on new features, tips and best practices.
getName
Identifier. The name of the EmailPreferences. The endpoint is only
supported for the authenticated user.
Returns
Type
Description
string
setName
Identifier. The name of the EmailPreferences. The endpoint is only
supported for the authenticated user.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNewsAndTips
Optional. Updates on new features, tips and best practices.
Returns
Type
Description
int
setNewsAndTips
Optional. Updates on new features, tips and best practices.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Accounts V1 Client - Class EmailPreferences (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.EmailPreferences)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.EmailPreferences)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.EmailPreferences)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.EmailPreferences)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.EmailPreferences)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.EmailPreferences)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.EmailPreferences)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.EmailPreferences)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.EmailPreferences)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.EmailPreferences)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.EmailPreferences) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class EmailPreferences.\n\nThe categories of notifications the user opted into / opted out of. The email\npreferences do not include mandatory announcements as users can't opt out of\nthem.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.EmailPreferences`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The name of the EmailPreferences. The endpoint is only\nsupported for the authenticated user.\n\n### setName\n\nIdentifier. The name of the EmailPreferences. The endpoint is only\nsupported for the authenticated user.\n\n### getNewsAndTips\n\nOptional. Updates on new features, tips and best practices.\n\n### setNewsAndTips\n\nOptional. Updates on new features, tips and best practices."]]