properties

POST /v1beta/properties

Changed on

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

Request

  • Base URL
    https://analyticsadmin.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/analytics.edit
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/analytics.edit

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Request body

GoogleAnalyticsAdminV1betaProperty required

A resource message representing a Google Analytics property.

account, string

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

createTime, string google-datetime

Output only. Time when the entity was originally created.

currencyCode, string

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

deleteTime, string 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.

displayName, string

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

expireTime, string 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.

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

name, string

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

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"

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.

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

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

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

updateTime, string google-datetime

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

Response

Successful response

GoogleAnalyticsAdminV1betaProperty required

A resource message representing a Google Analytics property.

account, string

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

createTime, string google-datetime

Output only. Time when the entity was originally created.

currencyCode, string

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

deleteTime, string 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.

displayName, string

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

expireTime, string 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.

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

name, string

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

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"

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.

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

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

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

updateTime, string google-datetime

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

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status