Show / Hide Table of Contents

Class Account

The Account message 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.

The Account message is the parent entity for many other resources, for example, AccountRelationship, Homepage, BusinessInfo and so on.

Inheritance
object
Account
Implements
IMessage<Account>
IEquatable<Account>
IDeepCloneable<Account>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class Account : IMessage<Account>, IEquatable<Account>, IDeepCloneable<Account>, IBufferMessage, IMessage

Constructors

Account()

Declaration
public Account()

Account(Account)

Declaration
public Account(Account other)
Parameters
Type Name Description
Account other

Properties

AccountId

Output only. The ID of the account.

Declaration
public long AccountId { get; set; }
Property Value
Type Description
long

AccountName

Required. A human-readable name of the account. See store name and business name for more information.

Declaration
public string AccountName { get; set; }
Property Value
Type Description
string

AdultContent

Optional. Whether this account contains adult content.

Declaration
public bool AdultContent { get; set; }
Property Value
Type Description
bool

HasAdultContent

Gets whether the "adult_content" field is set

Declaration
public bool HasAdultContent { get; }
Property Value
Type Description
bool

LanguageCode

Required. The account's BCP-47 language code, such as en-US or sr-Latn.

Declaration
public string LanguageCode { get; set; }
Property Value
Type Description
string

Name

Identifier. The resource name of the account. Format: accounts/{account}

Declaration
public string Name { get; set; }
Property Value
Type Description
string

NameAsAccountName

AccountName-typed view over the Name resource name property.

Declaration
public AccountName NameAsAccountName { get; set; }
Property Value
Type Description
AccountName

TestAccount

Output only. Whether this is a test account.

Declaration
public bool TestAccount { get; set; }
Property Value
Type Description
bool

TimeZone

Required. The time zone of the account.

On writes, time_zone sets both the reporting_time_zone and the display_time_zone.

For reads, time_zone always returns the display_time_zone. If display_time_zone doesn't exist for your account, time_zone is empty.

The version field is not supported, won't be set in responses and will be silently ignored if specified in requests.

Declaration
public TimeZone TimeZone { get; set; }
Property Value
Type Description
TimeZone
In this article
Back to top Generated by DocFX