سرور MCP را برای Google Analytics امتحان کنید. از
GitHub نصب کنید و برای جزئیات بیشتر به
اطلاعیه مراجعه کنید.
REST Resource: accounts
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع: حساب کاربری
یک پیام منبع که نشان دهنده یک حساب Google Analytics است.
نمایندگی JSON |
---|
{
"name": string,
"createTime": string,
"updateTime": string,
"displayName": string,
"regionCode": string,
"deleted": boolean,
"gmpOrganization": string
} |
فیلدها |
---|
name | string فقط خروجی نام منبع این حساب. قالب: accounts/{account} مثال: "accounts/100" |
createTime | string ( Timestamp format) فقط خروجی زمانی که این حساب در ابتدا ایجاد شد. از RFC 3339 استفاده می کند، که در آن خروجی تولید شده همیشه با Z نرمال می شود و از 0، 3، 6 یا 9 رقم کسری استفاده می کند. افست های غیر از "Z" نیز پذیرفته می شود. مثالها: "2014-10-02T15:01:23Z" ، "2014-10-02T15:01:23.045123456Z" یا "2014-10-02T15:01:23+05:30" . |
updateTime | string ( Timestamp format) فقط خروجی زمان آخرین بهروزرسانی فیلدهای بار حساب. از RFC 3339 استفاده می کند، که در آن خروجی تولید شده همیشه با Z نرمال می شود و از 0، 3، 6 یا 9 رقم کسری استفاده می کند. افست های غیر از "Z" نیز پذیرفته می شود. مثالها: "2014-10-02T15:01:23Z" ، "2014-10-02T15:01:23.045123456Z" یا "2014-10-02T15:01:23+05:30" . |
displayName | string مورد نیاز. نام نمایشی قابل خواندن توسط انسان برای این حساب. |
regionCode | string کشور تجارت. باید کد منطقه Unicode CLDR باشد. |
deleted | boolean فقط خروجی نشان می دهد که آیا این حساب به صورت نرم حذف شده است یا خیر. حسابهای حذفشده از نتایج فهرست حذف میشوند مگر اینکه بهطور خاص درخواست شود. |
gmpOrganization | string فقط خروجی URI برای یک منبع سازمانی پلتفرم بازاریابی Google. فقط زمانی تنظیم شود که این حساب به یک سازمان GMP متصل باشد. قالب: marketingplatformadmin.googleapis.com/organizations/{org_id} |
روش ها |
---|
| حساب هدف را بهعنوان پاکشده (یعنی «حذفشده») علامتگذاری میکند و آن را برمیگرداند. |
| جستجو برای یک حساب واحد. |
| تنظیمات اشتراک گذاری داده را در یک حساب دریافت کنید. |
| همه حسابهای قابل دسترسی تماسگیرنده را برمیگرداند. |
| یک حساب کاربری را به روز می کند. |
| درخواست یک بلیط برای ایجاد یک حساب کاربری. |
| یک گزارش سفارشی از سوابق دسترسی به داده ها را برمی گرداند. |
| با توجه به مجموعه فیلترهای مشخص شده، تمام تغییرات یک حساب یا فرزندان آن را جستجو می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis documentation describes the Account resource in Google Analytics, including its JSON representation and available methods.\u003c/p\u003e\n"],["\u003cp\u003eThe Account resource represents a Google Analytics account with properties like name, creation time, display name, and region.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use various methods for account management, such as deleting, retrieving, updating, and listing accounts.\u003c/p\u003e\n"],["\u003cp\u003eAccount data sharing settings can be accessed and a provision ticket for account creation can be requested via dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eThe API also supports running custom data access reports and searching change history events related to an account.\u003c/p\u003e\n"]]],["The provided content describes Google Analytics account resources, their JSON structure, and available methods. Accounts contain fields like `name`, `createTime`, `updateTime`, `displayName`, `regionCode`, `deleted`, and `gmpOrganization`. Methods include: `delete` (soft-delete), `get`, `getDataSharingSettings`, `list` (all accessible accounts), `patch` (update), `provisionAccountTicket` (create), `runAccessReport` (data access), and `searchChangeHistoryEvents` (account changes).\n"],null,["# REST Resource: accounts\n\n- [Resource: Account](#Account)\n - [JSON representation](#Account.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Account\n-----------------\n\nA resource message representing a Google Analytics account.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"createTime\": string, \"updateTime\": string, \"displayName\": string, \"regionCode\": string, \"deleted\": boolean, \"gmpOrganization\": string } ``` |\n\n| Fields ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this account. Format: accounts/{account} Example: \"accounts/100\" |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when this account was originally created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `updateTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when account payload fields were last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `displayName` | `string` Required. Human-readable display name for this account. |\n| `regionCode` | `string` Country of business. Must be a Unicode CLDR region code. |\n| `deleted` | `boolean` Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested. |\n| `gmpOrganization` | `string` Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id} |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/delete) | Marks target Account as soft-deleted (ie: \"trashed\") and returns it. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/get) | Lookup for a single Account. |\n| ### [getDataSharingSettings](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/getDataSharingSettings) | Get data sharing settings on an account. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/list) | Returns all accounts accessible by the caller. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/patch) | Updates an account. |\n| ### [provisionAccountTicket](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/provisionAccountTicket) | Requests a ticket for creating an account. |\n| ### [runAccessReport](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/runAccessReport) | Returns a customized report of data access records. |\n| ### [searchChangeHistoryEvents](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents) | Searches through all changes to an account or its children given the specified set of filters. |"]]