REST Resource: accounts
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003cstrong\u003eAccount\u003c/strong\u003e resource provides information about a Comparison Shopping Service (CSS) or Merchant Center (MC) account, including details like name, type, and parent.\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eAccountType\u003c/strong\u003e defines the specific type of account, such as CSS group, CSS domain, or various MC account types.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods are available to manage accounts: \u003cstrong\u003eget\u003c/strong\u003e retrieves account details, \u003cstrong\u003elistChildAccounts\u003c/strong\u003e lists sub-accounts, and \u003cstrong\u003eupdateLabels\u003c/strong\u003e modifies account labels.\u003c/p\u003e\n"],["\u003cp\u003eAccounts can be identified by their \u003ccode\u003ename\u003c/code\u003e field, which follows the format "accounts/{account}", and they may have manually or automatically assigned labels.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts\n\n- [Resource: Account](#Account)\n - [JSON representation](#Account.SCHEMA_REPRESENTATION)\n- [AccountType](#AccountType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Account\n-----------------\n\nInformation about CSS/MC account.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"fullName\": string, \"labelIds\": [ string ], \"automaticLabelIds\": [ string ], \"accountType\": enum (/comparison-shopping-services/api/reference/rest/v1/accounts#AccountType), \"displayName\": string, \"homepageUri\": string, \"parent\": string } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The label resource name. Format: accounts/{account} |\n| `fullName` | `string` Output only. Immutable. The CSS/MC account's full name. |\n| `labelIds[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Manually created label IDs assigned to the CSS/MC account by a CSS parent account. |\n| `automaticLabelIds[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Automatically created label IDs assigned to the MC account by CSS Center. |\n| `accountType` | `enum (`[AccountType](/comparison-shopping-services/api/reference/rest/v1/accounts#AccountType)`)` Output only. The type of this account. |\n| `displayName` | `string` The CSS/MC account's short display name. |\n| `homepageUri` | `string` Output only. Immutable. The CSS/MC account's homepage. |\n| `parent` | `string` The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account. Note: For MC sub-accounts, this is also the CSS domain that is the parent resource of the MCA account, since we are effectively flattening the hierarchy.\" |\n\nAccountType\n-----------\n\nThe account type.\n\n| Enums ||\n|----------------------------|-----------------------------|\n| `ACCOUNT_TYPE_UNSPECIFIED` | Unknown account type. |\n| `CSS_GROUP` | CSS group account. |\n| `CSS_DOMAIN` | CSS domain account. |\n| `MC_PRIMARY_CSS_MCA` | MC Primary CSS MCA account. |\n| `MC_CSS_MCA` | MC CSS MCA account. |\n| `MC_MARKETPLACE_MCA` | MC Marketplace MCA account. |\n| `MC_OTHER_MCA` | MC Other MCA account. |\n| `MC_STANDALONE` | MC Standalone account. |\n| `MC_MCA_SUBACCOUNT` | MC MCA sub-account. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| ### [get](/comparison-shopping-services/api/reference/rest/v1/accounts/get) | Retrieves a single CSS/MC account by ID. |\n| ### [listChildAccounts](/comparison-shopping-services/api/reference/rest/v1/accounts/listChildAccounts) | Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name. |\n| ### [updateLabels](/comparison-shopping-services/api/reference/rest/v1/accounts/updateLabels) | Updates labels assigned to CSS/MC accounts by a CSS domain. |"]]