v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13286594.5 KB
properties

Creates a Google Analytics property with the specified location and attributes.

post/v1beta/properties

Request body

namestring

Identifier. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

propertyType'PROPERTY_TYPE_UNSPECIFIED' | 'PROPERTY_TYPE_ORDINARY' | 'PROPERTY_TYPE_SUBPROPERTY' | 'PROPERTY_TYPE_ROLLUP'

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.

updateTimestring google-datetime

Output only. Time when entity payload fields were last updated.

displayNamestring

Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.

createTimestring google-datetime

Output only. Time when the entity was originally created.

timeZonestring

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-zones Example: "America/Los_Angeles"

parentstring

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"

industryCategory'INDUSTRY_CATEGORY_UNSPECIFIED' | 'AUTOMOTIVE' | 'BUSINESS_AND_INDUSTRIAL_MARKETS' | 'FINANCE' | 'HEALTHCARE' | 'TECHNOLOGY' | 'TRAVEL' | 'OTHER' | 'ARTS_AND_ENTERTAINMENT' | 'BEAUTY_AND_FITNESS' | 'BOOKS_AND_LITERATURE' | 'FOOD_AND_DRINK' | 'GAMES' | 'HOBBIES_AND_LEISURE' | 'HOME_AND_GARDEN' | 'INTERNET_AND_TELECOM' | 'LAW_AND_GOVERNMENT' | 'NEWS' | 'ONLINE_COMMUNITIES' | 'PEOPLE_AND_SOCIETY' | 'PETS_AND_ANIMALS' | 'REAL_ESTATE' | 'REFERENCE' | 'SCIENCE' | 'SPORTS' | 'JOBS_AND_EDUCATION' | 'SHOPPING'

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

currencyCodestring

The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

serviceLevel'SERVICE_LEVEL_UNSPECIFIED' | 'GOOGLE_ANALYTICS_STANDARD' | 'GOOGLE_ANALYTICS_360'

Output only. The Google Analytics service level that applies to this property.

deleteTimestring google-datetime

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

expireTimestring google-datetime

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.

accountstring

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

Response

Successful response