Reference documentation and code samples for the Google Analytics Admin V1alpha Client class Property.
A resource message representing a Google Analytics property.
Generated from protobuf messagegoogle.analytics.admin.v1alpha.Property
Namespace
Google \ Analytics \ Admin \ V1alpha
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"
↳ property_type
int
Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied.
Output only. Time when entity payload fields were last updated.
↳ parent
string
Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"
↳ display_name
string
Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
↳ industry_category
int
Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
↳ time_zone
string
Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format:https://www.iana.org/time-zonesExample: "America/Los_Angeles"
Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
↳ account
string
Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"
Immutable. The property type for this Property resource. When creating a
property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
"ORDINARY_PROPERTY" will be implied.
Returns
Type
Description
int
setPropertyType
Immutable. The property type for this Property resource. When creating a
property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
"ORDINARY_PROPERTY" will be implied.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getCreateTime
Output only. Time when the entity was originally created.
Immutable. Resource name of this property's logical parent.
Note: The Property-Moving UI can be used to change the parent.
Format: accounts/{account}, properties/{property}
Example: "accounts/100", "properties/101"
Returns
Type
Description
string
setParent
Immutable. Resource name of this property's logical parent.
Note: The Property-Moving UI can be used to change the parent.
Format: accounts/{account}, properties/{property}
Example: "accounts/100", "properties/101"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
Required. Human-readable display name for this property.
The max allowed display name length is 100 UTF-16 code units.
Returns
Type
Description
string
setDisplayName
Required. Human-readable display name for this property.
The max allowed display name length is 100 UTF-16 code units.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getIndustryCategory
Industry associated with this property
Example: AUTOMOTIVE, FOOD_AND_DRINK
Returns
Type
Description
int
setIndustryCategory
Industry associated with this property
Example: AUTOMOTIVE, FOOD_AND_DRINK
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getTimeZone
Required. Reporting Time Zone, used as the day boundary for reports,
regardless of where the data originates. If the time zone honors DST,
Analytics will automatically adjust for the changes.
NOTE: Changing the time zone only affects data going forward, and is not
applied retroactively.
Format:https://www.iana.org/time-zonesExample: "America/Los_Angeles"
Returns
Type
Description
string
setTimeZone
Required. Reporting Time Zone, used as the day boundary for reports,
regardless of where the data originates. If the time zone honors DST,
Analytics will automatically adjust for the changes.
NOTE: Changing the time zone only affects data going forward, and is not
applied retroactively.
Format:https://www.iana.org/time-zonesExample: "America/Los_Angeles"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCurrencyCode
The currency type used in reports involving monetary values.
Output only. If set, the time at which this trashed property will be
permanently deleted. If not set, then this property is not currently in the
trash can and is not slated to be deleted.
Output only. If set, the time at which this trashed property will be
permanently deleted. If not set, then this property is not currently in the
trash can and is not slated to be deleted.
[[["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 Analytics Admin V1alpha Client - Class Property (0.29.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.29.1 (latest)](/php/docs/reference/analytics-admin/latest/V1alpha.Property)\n- [0.29.0](/php/docs/reference/analytics-admin/0.29.0/V1alpha.Property)\n- [0.28.1](/php/docs/reference/analytics-admin/0.28.1/V1alpha.Property)\n- [0.27.0](/php/docs/reference/analytics-admin/0.27.0/V1alpha.Property)\n- [0.26.0](/php/docs/reference/analytics-admin/0.26.0/V1alpha.Property)\n- [0.25.2](/php/docs/reference/analytics-admin/0.25.2/V1alpha.Property)\n- [0.24.2](/php/docs/reference/analytics-admin/0.24.2/V1alpha.Property)\n- [0.23.0](/php/docs/reference/analytics-admin/0.23.0/V1alpha.Property)\n- [0.22.5](/php/docs/reference/analytics-admin/0.22.5/V1alpha.Property)\n- [0.20.0](/php/docs/reference/analytics-admin/0.20.0/V1alpha.Property)\n- [0.19.0](/php/docs/reference/analytics-admin/0.19.0/V1alpha.Property)\n- [0.18.1](/php/docs/reference/analytics-admin/0.18.1/V1alpha.Property)\n- [0.17.0](/php/docs/reference/analytics-admin/0.17.0/V1alpha.Property)\n- [0.16.0](/php/docs/reference/analytics-admin/0.16.0/V1alpha.Property)\n- [0.15.1](/php/docs/reference/analytics-admin/0.15.1/V1alpha.Property)\n- [0.14.0](/php/docs/reference/analytics-admin/0.14.0/V1alpha.Property)\n- [0.13.0](/php/docs/reference/analytics-admin/0.13.0/V1alpha.Property)\n- [0.12.0](/php/docs/reference/analytics-admin/0.12.0/V1alpha.Property)\n- [0.11.1](/php/docs/reference/analytics-admin/0.11.1/V1alpha.Property)\n- [0.10.0](/php/docs/reference/analytics-admin/0.10.0/V1alpha.Property)\n- [0.9.0](/php/docs/reference/analytics-admin/0.9.0/V1alpha.Property)\n- [0.8.2](/php/docs/reference/analytics-admin/0.8.2/V1alpha.Property) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Analytics Admin V1alpha Client class Property.\n\nA resource message representing a Google Analytics property.\n\nGenerated from protobuf message `google.analytics.admin.v1alpha.Property`\n\nNamespace\n---------\n\nGoogle \\\\ Analytics \\\\ Admin \\\\ V1alpha\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. Resource name of this property.\n\nFormat: properties/{property_id}\nExample: \"properties/1000\"\n\n### setName\n\nOutput only. Resource name of this property.\n\nFormat: properties/{property_id}\nExample: \"properties/1000\"\n\n### getPropertyType\n\nImmutable. The property type for this Property resource. When creating a\nproperty, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then\n\"ORDINARY_PROPERTY\" will be implied.\n\n### setPropertyType\n\nImmutable. The property type for this Property resource. When creating a\nproperty, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then\n\"ORDINARY_PROPERTY\" will be implied.\n\n### getCreateTime\n\nOutput only. Time when the entity was originally created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Time when the entity was originally created.\n\n### getUpdateTime\n\nOutput only. Time when entity payload fields were last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Time when entity payload fields were last updated.\n\n### getParent\n\nImmutable. Resource name of this property's logical parent.\n\nNote: The Property-Moving UI can be used to change the parent.\nFormat: accounts/{account}, properties/{property}\nExample: \"accounts/100\", \"properties/101\"\n\n### setParent\n\nImmutable. Resource name of this property's logical parent.\n\nNote: The Property-Moving UI can be used to change the parent.\nFormat: accounts/{account}, properties/{property}\nExample: \"accounts/100\", \"properties/101\"\n\n### getDisplayName\n\nRequired. Human-readable display name for this property.\n\nThe max allowed display name length is 100 UTF-16 code units.\n\n### setDisplayName\n\nRequired. Human-readable display name for this property.\n\nThe max allowed display name length is 100 UTF-16 code units.\n\n### getIndustryCategory\n\nIndustry associated with this property\nExample: AUTOMOTIVE, FOOD_AND_DRINK\n\n### setIndustryCategory\n\nIndustry associated with this property\nExample: AUTOMOTIVE, FOOD_AND_DRINK\n\n### getTimeZone\n\nRequired. Reporting Time Zone, used as the day boundary for reports,\nregardless of where the data originates. If the time zone honors DST,\nAnalytics will automatically adjust for the changes.\n\nNOTE: Changing the time zone only affects data going forward, and is not\napplied retroactively.\nFormat: \u003chttps://www.iana.org/time-zones\u003e\nExample: \"America/Los_Angeles\"\n\n### setTimeZone\n\nRequired. Reporting Time Zone, used as the day boundary for reports,\nregardless of where the data originates. If the time zone honors DST,\nAnalytics will automatically adjust for the changes.\n\nNOTE: Changing the time zone only affects data going forward, and is not\napplied retroactively.\nFormat: \u003chttps://www.iana.org/time-zones\u003e\nExample: \"America/Los_Angeles\"\n\n### getCurrencyCode\n\nThe currency type used in reports involving monetary values.\n\nFormat: \u003chttps://en.wikipedia.org/wiki/ISO_4217\u003e\nExamples: \"USD\", \"EUR\", \"JPY\"\n\n### setCurrencyCode\n\nThe currency type used in reports involving monetary values.\n\nFormat: \u003chttps://en.wikipedia.org/wiki/ISO_4217\u003e\nExamples: \"USD\", \"EUR\", \"JPY\"\n\n### getServiceLevel\n\nOutput only. The Google Analytics service level that applies to this\nproperty.\n\n### setServiceLevel\n\nOutput only. The Google Analytics service level that applies to this\nproperty.\n\n### getDeleteTime\n\nOutput only. If set, the time at which this property was trashed. If not\nset, then this property is not currently in the trash can.\n\n### hasDeleteTime\n\n### clearDeleteTime\n\n### setDeleteTime\n\nOutput only. If set, the time at which this property was trashed. If not\nset, then this property is not currently in the trash can.\n\n### getExpireTime\n\nOutput only. If set, the time at which this trashed property will be\npermanently deleted. If not set, then this property is not currently in the\ntrash can and is not slated to be deleted.\n\n### hasExpireTime\n\n### clearExpireTime\n\n### setExpireTime\n\nOutput only. If set, the time at which this trashed property will be\npermanently deleted. If not set, then this property is not currently in the\ntrash can and is not slated to be deleted.\n\n### getAccount\n\nImmutable. The resource name of the parent account\nFormat: accounts/{account_id}\nExample: \"accounts/123\"\n\n### setAccount\n\nImmutable. The resource name of the parent account\nFormat: accounts/{account_id}\nExample: \"accounts/123\""]]