Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Account.
TheAccountmessage represents a business's account within Shopping
Ads. It's the primary entity for managing product data, settings, and
interactions with Google's services and external providers.
Accounts can operate as standalone entities or be part of a advanced account
structure. In an advanced account setup the parent account manages multiple
sub-accounts.
Establishing an account involves configuring attributes like the account
name, time zone, and language preferences.
TheAccountmessage is the parent entity for many other resources, for
example,AccountRelationship,Homepage,BusinessInfoand so on.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1.Account
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 resource name of the account. Format:accounts/{account}
↳ account_id
int|string
Output only. The ID of the account.
↳ account_name
string
Required. A human-readable name of the account. Seestore nameandbusiness namefor more information.
↳ adult_content
bool
Optional. Whether this account contains adult content.
Required. The time zone of the account. On writes,time_zonesets both thereporting_time_zoneand thedisplay_time_zone. For reads,time_zonealways returns thedisplay_time_zone. Ifdisplay_time_zonedoesn't exist for your account,time_zoneis empty. Theversionfield is not supported, won't be set in responses and will be silently ignored if specified in requests.
Required. A human-readable name of the account. Seestore nameandbusiness namefor
more information.
Returns
Type
Description
string
setAccountName
Required. A human-readable name of the account. Seestore nameandbusiness namefor
more information.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAdultContent
Optional. Whether this account contains adult content.
Returns
Type
Description
bool
hasAdultContent
clearAdultContent
setAdultContent
Optional. Whether this account contains adult content.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getTestAccount
Output only. Whether this is a test account.
Returns
Type
Description
bool
setTestAccount
Output only. Whether this is a test account.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getTimeZone
Required. The time zone of the account.
On writes,time_zonesets both thereporting_time_zoneand thedisplay_time_zone.
For reads,time_zonealways returns thedisplay_time_zone. Ifdisplay_time_zonedoesn't exist for your account,time_zoneis empty.
Theversionfield is not supported, won't be set in responses and will be
silently ignored if specified in requests.
On writes,time_zonesets both thereporting_time_zoneand thedisplay_time_zone.
For reads,time_zonealways returns thedisplay_time_zone. Ifdisplay_time_zonedoesn't exist for your account,time_zoneis empty.
Theversionfield is not supported, won't be set in responses and will be
silently ignored if specified in requests.
[[["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 Account (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.Account)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.Account)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.Account)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.Account)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.Account)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.Account)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.Account)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.Account)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.Account)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.Account)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.Account) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Account.\n\nThe `Account` message represents a business's account within Shopping\nAds. It's the primary entity for managing product data, settings, and\ninteractions with Google's services and external providers.\n\nAccounts can operate as standalone entities or be part of a advanced account\nstructure. In an advanced account setup the parent account manages multiple\nsub-accounts.\nEstablishing an account involves configuring attributes like the account\nname, time zone, and language preferences.\nThe `Account` message is the parent entity for many other resources, for\nexample, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.Account`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the account.\n\nFormat: `accounts/{account}`\n\n### setName\n\nIdentifier. The resource name of the account.\n\nFormat: `accounts/{account}`\n\n### getAccountId\n\nOutput only. The ID of the account.\n\n### setAccountId\n\nOutput only. The ID of the account.\n\n### getAccountName\n\nRequired. A human-readable name of the account. See\n[store name](https://support.google.com/merchants/answer/160556) and\n[business name](https://support.google.com/merchants/answer/12159159) for\nmore information.\n\n### setAccountName\n\nRequired. A human-readable name of the account. See\n[store name](https://support.google.com/merchants/answer/160556) and\n[business name](https://support.google.com/merchants/answer/12159159) for\nmore information.\n\n### getAdultContent\n\nOptional. Whether this account contains adult content.\n\n### hasAdultContent\n\n### clearAdultContent\n\n### setAdultContent\n\nOptional. Whether this account contains adult content.\n\n### getTestAccount\n\nOutput only. Whether this is a test account.\n\n### setTestAccount\n\nOutput only. Whether this is a test account.\n\n### getTimeZone\n\nRequired. The time zone of the account.\n\nOn writes, `time_zone` sets both the `reporting_time_zone` and the\n`display_time_zone`.\nFor reads, `time_zone` always returns the `display_time_zone`. If\n`display_time_zone` doesn't exist for your account, `time_zone` is empty.\nThe `version` field is not supported, won't be set in responses and will be\nsilently ignored if specified in requests.\n\n### hasTimeZone\n\n### clearTimeZone\n\n### setTimeZone\n\nRequired. The time zone of the account.\n\nOn writes, `time_zone` sets both the `reporting_time_zone` and the\n`display_time_zone`.\nFor reads, `time_zone` always returns the `display_time_zone`. If\n`display_time_zone` doesn't exist for your account, `time_zone` is empty.\nThe `version` field is not supported, won't be set in responses and will be\nsilently ignored if specified in requests.\n\n### getLanguageCode\n\nRequired. The account's [BCP-47 language\ncode](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.\n\n### setLanguageCode\n\nRequired. The account's [BCP-47 language\ncode](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`."]]