"description":"Selector specifying which fields to include in a partial response.",
"location":"query",
"type":"string"
},
"key":{
"description":"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.",
"location":"query",
"type":"string"
},
"oauth_token":{
"description":"OAuth 2.0 token for the current user.",
"location":"query",
"type":"string"
},
"prettyPrint":{
"default":"false",
"description":"Returns response with indentations and line breaks.",
"location":"query",
"type":"boolean"
},
"quotaUser":{
"description":"An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location":"query",
"type":"string"
},
"userIp":{
"description":"Deprecated. Please use quotaUser instead.",
"location":"query",
"type":"string"
}
},
"protocol":"rest",
"resources":{
"data":{
"resources":{
"ga":{
"methods":{
"get":{
"description":"Returns Analytics data for a view (profile).",
"httpMethod":"GET",
"id":"analytics.data.ga.get",
"parameterOrder":[
"ids",
"start-date",
"end-date",
"metrics"
],
"parameters":{
"dimensions":{
"description":"A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.",
"location":"query",
"pattern":"(ga:.+)?",
"type":"string"
},
"end-date":{
"description":"End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.",
"description":"A comma-separated list of dimension or metric filters to be applied to Analytics data.",
"location":"query",
"pattern":"ga:.+",
"type":"string"
},
"ids":{
"description":"Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
"location":"query",
"pattern":"ga:[0-9]+",
"required":true,
"type":"string"
},
"include-empty-rows":{
"description":"The response will include empty rows if this parameter is set to true, the default is true",
"location":"query",
"type":"boolean"
},
"max-results":{
"description":"The maximum number of entries to include in this feed.",
"format":"int32",
"location":"query",
"type":"integer"
},
"metrics":{
"description":"A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified.",
"location":"query",
"pattern":"ga:.+",
"required":true,
"type":"string"
},
"output":{
"description":"The selected format for the response. Default format is JSON.",
"enum":[
"dataTable",
"json"
],
"enumDescriptions":[
"Returns the response in Google Charts Data Table format. This is useful in creating visualization using Google Charts.",
"Returns the response in standard JSON format."
],
"location":"query",
"type":"string"
},
"samplingLevel":{
"description":"The desired sampling level.",
"enum":[
"DEFAULT",
"FASTER",
"HIGHER_PRECISION"
],
"enumDescriptions":[
"Returns response with a sample size that balances speed and accuracy.",
"Returns a fast response with a smaller sample size.",
"Returns a more accurate response using a large sample size, but this may result in the response being slower."
],
"location":"query",
"type":"string"
},
"segment":{
"description":"An Analytics segment to be applied to data.",
"location":"query",
"type":"string"
},
"sort":{
"description":"A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.",
"location":"query",
"pattern":"(-)?ga:.+",
"type":"string"
},
"start-date":{
"description":"Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.",
"description":"Returns Analytics Multi-Channel Funnels data for a view (profile).",
"httpMethod":"GET",
"id":"analytics.data.mcf.get",
"parameterOrder":[
"ids",
"start-date",
"end-date",
"metrics"
],
"parameters":{
"dimensions":{
"description":"A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.",
"location":"query",
"pattern":"(mcf:.+)?",
"type":"string"
},
"end-date":{
"description":"End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.",
"description":"A comma-separated list of dimension or metric filters to be applied to the Analytics data.",
"location":"query",
"pattern":"mcf:.+",
"type":"string"
},
"ids":{
"description":"Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
"location":"query",
"pattern":"ga:[0-9]+",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of entries to include in this feed.",
"format":"int32",
"location":"query",
"type":"integer"
},
"metrics":{
"description":"A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.",
"location":"query",
"pattern":"mcf:.+",
"required":true,
"type":"string"
},
"samplingLevel":{
"description":"The desired sampling level.",
"enum":[
"DEFAULT",
"FASTER",
"HIGHER_PRECISION"
],
"enumDescriptions":[
"Returns response with a sample size that balances speed and accuracy.",
"Returns a fast response with a smaller sample size.",
"Returns a more accurate response using a large sample size, but this may result in the response being slower."
],
"location":"query",
"type":"string"
},
"sort":{
"description":"A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.",
"location":"query",
"pattern":"(-)?mcf:.+",
"type":"string"
},
"start-date":{
"description":"Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.",
"description":"Account ID to retrieve the user links for.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of account-user links to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"start-index":{
"description":"An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"description":"Account Id for the custom data sources to retrieve.",
"location":"path",
"pattern":"\\d+",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of custom data sources to include in this response.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"start-index":{
"description":"A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web property Id for the custom data sources to retrieve.",
"description":"Lists goals to which the user has access.",
"httpMethod":"GET",
"id":"analytics.management.goals.list",
"parameterOrder":[
"accountId",
"webPropertyId",
"profileId"
],
"parameters":{
"accountId":{
"description":"Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of goals to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"profileId":{
"description":"View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.",
"location":"path",
"required":true,
"type":"string"
},
"start-index":{
"description":"An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
"description":"Account ID to retrieve profile filter links for.",
"location":"path",
"pattern":"\\d+",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of profile filter links to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"profileId":{
"description":"Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.",
"location":"path",
"required":true,
"type":"string"
},
"start-index":{
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web property Id for profile filter links for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
"description":"Account ID which the given view (profile) belongs to.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of profile-user links to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"profileId":{
"description":"View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.",
"location":"path",
"required":true,
"type":"string"
},
"start-index":{
"description":"An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web Property ID which the given view (profile) belongs to. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
"description":"Lists views (profiles) to which the user has access.",
"httpMethod":"GET",
"id":"analytics.management.profiles.list",
"parameterOrder":[
"accountId",
"webPropertyId"
],
"parameters":{
"accountId":{
"description":"Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of views (profiles) to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"start-index":{
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.",
"description":"Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not supported.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of unsampled reports to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"profileId":{
"description":"View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all is not supported.",
"location":"path",
"required":true,
"type":"string"
},
"start-index":{
"description":"An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is not supported.",
"description":"An index of the first webProperty-Google Ads link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"description":"Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.",
"httpMethod":"POST",
"id":"analytics.management.webproperties.insert",
"parameterOrder":[
"accountId"
],
"parameters":{
"accountId":{
"description":"Account ID to create the web property for.",
"description":"Lists web properties to which the user has access.",
"httpMethod":"GET",
"id":"analytics.management.webproperties.list",
"parameterOrder":[
"accountId"
],
"parameters":{
"accountId":{
"description":"Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of web properties to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"start-index":{
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"description":"Account ID which the given web property belongs to.",
"location":"path",
"required":true,
"type":"string"
},
"max-results":{
"description":"The maximum number of webProperty-user Links to include in this response.",
"format":"int32",
"location":"query",
"type":"integer"
},
"start-index":{
"description":"An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"location":"query",
"minimum":"1",
"type":"integer"
},
"webPropertyId":{
"description":"Web Property ID for the webProperty-user links to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.",
"description":"JSON template for Analytics account entry.",
"id":"Account",
"properties":{
"childLink":{
"description":"Child link for an account entry. Points to the list of web properties for this account.",
"properties":{
"href":{
"description":"Link to the list of web properties for this account.",
"type":"string"
},
"type":{
"default":"analytics#webproperties",
"description":"Type of the child link. Its value is \"analytics#webproperties\".",
"type":"string"
}
},
"type":"object"
},
"created":{
"description":"Time the account was created.",
"format":"date-time",
"type":"string"
},
"id":{
"description":"Account ID.",
"type":"string"
},
"kind":{
"default":"analytics#account",
"description":"Resource type for Analytics account.",
"type":"string"
},
"name":{
"description":"Account name.",
"type":"string"
},
"permissions":{
"description":"Permissions the user has for this account.",
"properties":{
"effective":{
"description":"All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).",
"items":{
"type":"string"
},
"readOnly":true,
"type":"array"
}
},
"type":"object"
},
"selfLink":{
"description":"Link for this account.",
"type":"string"
},
"starred":{
"description":"Indicates whether this account is starred or not.",
"type":"boolean"
},
"updated":{
"description":"Time the account was last modified.",
"format":"date-time",
"type":"string"
}
},
"type":"object"
},
"AccountRef":{
"description":"JSON template for a linked account.",
"id":"AccountRef",
"properties":{
"href":{
"description":"Link for this account.",
"type":"string"
},
"id":{
"description":"Account ID.",
"type":"string"
},
"kind":{
"default":"analytics#accountRef",
"description":"Analytics account reference.",
"type":"string"
},
"name":{
"description":"Account name.",
"type":"string"
}
},
"type":"object"
},
"AccountSummaries":{
"description":"An AccountSummary collection lists a summary of accounts, properties and views (profiles) to which the user has access. Each resource in the collection corresponds to a single AccountSummary.",
"id":"AccountSummaries",
"properties":{
"items":{
"description":"A list of AccountSummaries.",
"items":{
"$ref":"AccountSummary"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#accountSummaries",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this AccountSummary collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this AccountSummary collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"AccountSummary":{
"description":"JSON template for an Analytics AccountSummary. An AccountSummary is a lightweight tree comprised of properties/profiles.",
"id":"AccountSummary",
"properties":{
"id":{
"description":"Account ID.",
"type":"string"
},
"kind":{
"default":"analytics#accountSummary",
"description":"Resource type for Analytics AccountSummary.",
"type":"string"
},
"name":{
"description":"Account name.",
"type":"string"
},
"starred":{
"description":"Indicates whether this account is starred or not.",
"type":"boolean"
},
"webProperties":{
"description":"List of web properties under this account.",
"items":{
"$ref":"WebPropertySummary"
},
"type":"array"
}
},
"type":"object"
},
"AccountTicket":{
"description":"JSON template for an Analytics account ticket. The account ticket consists of the ticket ID and the basic information for the account, property and profile.",
"id":"AccountTicket",
"properties":{
"account":{
"$ref":"Account",
"description":"Account for this ticket."
},
"id":{
"description":"Account ticket ID used to access the account ticket.",
"type":"string"
},
"kind":{
"default":"analytics#accountTicket",
"description":"Resource type for account ticket.",
"type":"string"
},
"profile":{
"$ref":"Profile",
"description":"View (Profile) for the account."
},
"redirectUri":{
"description":"Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL.",
"type":"string"
},
"webproperty":{
"$ref":"Webproperty",
"description":"Web property for the account."
}
},
"type":"object"
},
"AccountTreeRequest":{
"description":"JSON template for an Analytics account tree requests. The account tree request is used in the provisioning api to create an account, property, and view (profile). It contains the basic information required to make these fields.",
"id":"AccountTreeRequest",
"properties":{
"accountName":{
"annotations":{
"required":[
"analytics.provisioning.createAccountTree"
]
},
"type":"string"
},
"kind":{
"default":"analytics#accountTreeRequest",
"description":"Resource type for account ticket.",
"type":"string"
},
"profileName":{
"annotations":{
"required":[
"analytics.provisioning.createAccountTree"
]
},
"type":"string"
},
"timezone":{
"annotations":{
"required":[
"analytics.provisioning.createAccountTree"
]
},
"type":"string"
},
"webpropertyName":{
"annotations":{
"required":[
"analytics.provisioning.createAccountTree"
]
},
"type":"string"
},
"websiteUrl":{
"annotations":{
"required":[
"analytics.provisioning.createAccountTree"
]
},
"type":"string"
}
},
"type":"object"
},
"AccountTreeResponse":{
"description":"JSON template for an Analytics account tree response. The account tree response is used in the provisioning api to return the result of creating an account, property, and view (profile).",
"id":"AccountTreeResponse",
"properties":{
"account":{
"$ref":"Account",
"description":"The account created."
},
"kind":{
"default":"analytics#accountTreeResponse",
"description":"Resource type for account ticket.",
"type":"string"
},
"profile":{
"$ref":"Profile",
"description":"View (Profile) for the account."
},
"webproperty":{
"$ref":"Webproperty",
"description":"Web property for the account."
}
},
"type":"object"
},
"Accounts":{
"description":"An account collection provides a list of Analytics accounts to which a user has access. The account collection is the entry point to all management information. Each resource in the collection corresponds to a single Analytics account.",
"id":"Accounts",
"properties":{
"items":{
"description":"A list of accounts.",
"items":{
"$ref":"Account"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#accounts",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Next link for this account collection.",
"type":"string"
},
"previousLink":{
"description":"Previous link for this account collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"description":"JSON template for a metadata column.",
"id":"Column",
"properties":{
"attributes":{
"additionalProperties":{
"description":"The name of the attribute.",
"type":"string"
},
"description":"Map of attribute name and value for this column.",
"type":"object"
},
"id":{
"description":"Column id.",
"type":"string"
},
"kind":{
"default":"analytics#column",
"description":"Resource type for Analytics column.",
"type":"string"
}
},
"type":"object"
},
"Columns":{
"description":"Lists columns (dimensions and metrics) for a particular report type.",
"id":"Columns",
"properties":{
"attributeNames":{
"description":"List of attributes names returned by columns.",
"items":{
"type":"string"
},
"type":"array"
},
"etag":{
"description":"Etag of collection. This etag can be compared with the last response etag to check if response has changed.",
"type":"string"
},
"items":{
"description":"List of columns for a report type.",
"items":{
"$ref":"Column"
},
"type":"array"
},
"kind":{
"default":"analytics#columns",
"description":"Collection type.",
"type":"string"
},
"totalResults":{
"description":"Total number of columns returned in the response.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"CustomDataSource":{
"description":"JSON template for an Analytics custom data source.",
"id":"CustomDataSource",
"properties":{
"accountId":{
"description":"Account ID to which this custom data source belongs.",
"type":"string"
},
"childLink":{
"properties":{
"href":{
"description":"Link to the list of daily uploads for this custom data source. Link to the list of uploads for this custom data source.",
"type":"string"
},
"type":{
"description":"Value is \"analytics#dailyUploads\". Value is \"analytics#uploads\".",
"type":"string"
}
},
"type":"object"
},
"created":{
"description":"Time this custom data source was created.",
"format":"date-time",
"type":"string"
},
"description":{
"description":"Description of custom data source.",
"type":"string"
},
"id":{
"description":"Custom data source ID.",
"type":"string"
},
"importBehavior":{
"type":"string"
},
"kind":{
"default":"analytics#customDataSource",
"description":"Resource type for Analytics custom data source.",
"type":"string"
},
"name":{
"description":"Name of this custom data source.",
"type":"string"
},
"parentLink":{
"description":"Parent link for this custom data source. Points to the web property to which this custom data source belongs.",
"properties":{
"href":{
"description":"Link to the web property to which this custom data source belongs.",
"type":"string"
},
"type":{
"default":"analytics#webproperty",
"description":"Value is \"analytics#webproperty\".",
"type":"string"
}
},
"type":"object"
},
"profilesLinked":{
"description":"IDs of views (profiles) linked to the custom data source.",
"items":{
"type":"string"
},
"type":"array"
},
"schema":{
"description":"Collection of schema headers of the custom data source.",
"items":{
"type":"string"
},
"type":"array"
},
"selfLink":{
"description":"Link for this Analytics custom data source.",
"type":"string"
},
"type":{
"description":"Type of the custom data source.",
"type":"string"
},
"updated":{
"description":"Time this custom data source was last modified.",
"format":"date-time",
"type":"string"
},
"uploadType":{
"description":"Upload type of the custom data source.",
"type":"string"
},
"webPropertyId":{
"description":"Web property ID of the form UA-XXXXX-YY to which this custom data source belongs.",
"type":"string"
}
},
"type":"object"
},
"CustomDataSources":{
"description":"Lists Analytics custom data sources to which the user has access. Each resource in the collection corresponds to a single Analytics custom data source.",
"id":"CustomDataSources",
"properties":{
"items":{
"description":"Collection of custom data sources.",
"items":{
"$ref":"CustomDataSource"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#customDataSources",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this custom data source collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this custom data source collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"CustomDimension":{
"description":"JSON template for Analytics Custom Dimension.",
"id":"CustomDimension",
"properties":{
"accountId":{
"description":"Account ID.",
"type":"string"
},
"active":{
"description":"Boolean indicating whether the custom dimension is active.",
"type":"boolean"
},
"created":{
"description":"Time the custom dimension was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"id":{
"description":"Custom dimension ID.",
"type":"string"
},
"index":{
"description":"Index of the custom dimension.",
"format":"int32",
"readOnly":true,
"type":"integer"
},
"kind":{
"default":"analytics#customDimension",
"description":"Kind value for a custom dimension. Set to \"analytics#customDimension\". It is a read-only field.",
"readOnly":true,
"type":"string"
},
"name":{
"description":"Name of the custom dimension.",
"type":"string"
},
"parentLink":{
"description":"Parent link for the custom dimension. Points to the property to which the custom dimension belongs.",
"properties":{
"href":{
"description":"Link to the property to which the custom dimension belongs.",
"type":"string"
},
"type":{
"default":"analytics#webproperty",
"description":"Type of the parent link. Set to \"analytics#webproperty\".",
"type":"string"
}
},
"type":"object"
},
"scope":{
"description":"Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.",
"type":"string"
},
"selfLink":{
"description":"Link for the custom dimension",
"readOnly":true,
"type":"string"
},
"updated":{
"description":"Time the custom dimension was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"webPropertyId":{
"description":"Property ID.",
"type":"string"
}
},
"type":"object"
},
"CustomDimensions":{
"description":"A custom dimension collection lists Analytics custom dimensions to which the user has access. Each resource in the collection corresponds to a single Analytics custom dimension.",
"id":"CustomDimensions",
"properties":{
"items":{
"description":"Collection of custom dimensions.",
"items":{
"$ref":"CustomDimension"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#customDimensions",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this custom dimension collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this custom dimension collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"CustomMetric":{
"description":"JSON template for Analytics Custom Metric.",
"id":"CustomMetric",
"properties":{
"accountId":{
"description":"Account ID.",
"type":"string"
},
"active":{
"description":"Boolean indicating whether the custom metric is active.",
"type":"boolean"
},
"created":{
"description":"Time the custom metric was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"id":{
"description":"Custom metric ID.",
"type":"string"
},
"index":{
"description":"Index of the custom metric.",
"format":"int32",
"readOnly":true,
"type":"integer"
},
"kind":{
"default":"analytics#customMetric",
"description":"Kind value for a custom metric. Set to \"analytics#customMetric\". It is a read-only field.",
"readOnly":true,
"type":"string"
},
"max_value":{
"description":"Max value of custom metric.",
"type":"string"
},
"min_value":{
"description":"Min value of custom metric.",
"type":"string"
},
"name":{
"description":"Name of the custom metric.",
"type":"string"
},
"parentLink":{
"description":"Parent link for the custom metric. Points to the property to which the custom metric belongs.",
"properties":{
"href":{
"description":"Link to the property to which the custom metric belongs.",
"type":"string"
},
"type":{
"default":"analytics#webproperty",
"description":"Type of the parent link. Set to \"analytics#webproperty\".",
"type":"string"
}
},
"type":"object"
},
"scope":{
"description":"Scope of the custom metric: HIT or PRODUCT.",
"type":"string"
},
"selfLink":{
"description":"Link for the custom metric",
"readOnly":true,
"type":"string"
},
"type":{
"description":"Data type of custom metric.",
"type":"string"
},
"updated":{
"description":"Time the custom metric was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"webPropertyId":{
"description":"Property ID.",
"type":"string"
}
},
"type":"object"
},
"CustomMetrics":{
"description":"A custom metric collection lists Analytics custom metrics to which the user has access. Each resource in the collection corresponds to a single Analytics custom metric.",
"id":"CustomMetrics",
"properties":{
"items":{
"description":"Collection of custom metrics.",
"items":{
"$ref":"CustomMetric"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#customMetrics",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this custom metric collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this custom metric collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"description":"A list of Google Ads client accounts. These cannot be MCC accounts. This field is required when creating a Google Ads link. It cannot be empty.",
"description":"An entity Google Ads link collection provides a list of GA-Google Ads links Each resource in this collection corresponds to a single link.",
"description":"The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"EntityUserLink":{
"description":"JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.",
"id":"EntityUserLink",
"properties":{
"entity":{
"description":"Entity for this link. It can be an account, a web property, or a view (profile).",
"properties":{
"accountRef":{
"$ref":"AccountRef",
"description":"Account for this link."
},
"profileRef":{
"$ref":"ProfileRef",
"description":"View (Profile) for this link."
},
"webPropertyRef":{
"$ref":"WebPropertyRef",
"description":"Web property for this link."
}
},
"type":"object"
},
"id":{
"description":"Entity user link ID",
"type":"string"
},
"kind":{
"default":"analytics#entityUserLink",
"description":"Resource type for entity user link.",
"type":"string"
},
"permissions":{
"description":"Permissions the user has for this entity.",
"properties":{
"effective":{
"description":"Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.",
"items":{
"type":"string"
},
"readOnly":true,
"type":"array"
},
"local":{
"description":"Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.",
"items":{
"type":"string"
},
"type":"array"
}
},
"type":"object"
},
"selfLink":{
"description":"Self link for this resource.",
"type":"string"
},
"userRef":{
"$ref":"UserRef",
"description":"User reference."
}
},
"type":"object"
},
"EntityUserLinks":{
"description":"An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.",
"id":"EntityUserLinks",
"properties":{
"items":{
"description":"A list of entity user links.",
"items":{
"$ref":"EntityUserLink"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#entityUserLinks",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Next link for this account collection.",
"type":"string"
},
"previousLink":{
"description":"Previous link for this account collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"Experiment":{
"description":"JSON template for Analytics experiment resource.",
"id":"Experiment",
"properties":{
"accountId":{
"description":"Account ID to which this experiment belongs. This field is read-only.",
"type":"string"
},
"created":{
"description":"Time the experiment was created. This field is read-only.",
"format":"date-time",
"type":"string"
},
"description":{
"description":"Notes about this experiment.",
"type":"string"
},
"editableInGaUi":{
"description":"If true, the end user will be able to edit the experiment via the Google Analytics user interface.",
"type":"boolean"
},
"endTime":{
"description":"The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.",
"format":"date-time",
"type":"string"
},
"equalWeighting":{
"description":"Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED.",
"type":"boolean"
},
"id":{
"annotations":{
"required":[
"analytics.management.experiments.patch",
"analytics.management.experiments.update"
]
},
"description":"Experiment ID. Required for patch and update. Disallowed for create.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this experiment belongs. This field is read-only.",
"type":"string"
},
"kind":{
"default":"analytics#experiment",
"description":"Resource type for an Analytics experiment. This field is read-only.",
"type":"string"
},
"minimumExperimentLengthInDays":{
"description":"An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.",
"format":"int32",
"type":"integer"
},
"name":{
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
},
"description":"Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.",
"type":"string"
},
"objectiveMetric":{
"description":"The metric that the experiment is optimizing. Valid values: \"ga:goal(n)Completions\", \"ga:adsenseAdsClicks\", \"ga:adsenseAdsViewed\", \"ga:adsenseRevenue\", \"ga:bounces\", \"ga:pageviews\", \"ga:sessionDuration\", \"ga:transactions\", \"ga:transactionRevenue\". This field is required if status is \"RUNNING\" and servingFramework is one of \"REDIRECT\" or \"API\".",
"type":"string"
},
"optimizationType":{
"description":"Whether the objectiveMetric should be minimized or maximized. Possible values: \"MAXIMUM\", \"MINIMUM\". Optional--defaults to \"MAXIMUM\". Cannot be specified without objectiveMetric. Cannot be modified when status is \"RUNNING\" or \"ENDED\".",
"type":"string"
},
"parentLink":{
"description":"Parent link for an experiment. Points to the view (profile) to which this experiment belongs.",
"properties":{
"href":{
"description":"Link to the view (profile) to which this experiment belongs. This field is read-only.",
"type":"string"
},
"type":{
"default":"analytics#profile",
"description":"Value is \"analytics#profile\". This field is read-only.",
"type":"string"
}
},
"type":"object"
},
"profileId":{
"description":"View (Profile) ID to which this experiment belongs. This field is read-only.",
"type":"string"
},
"reasonExperimentEnded":{
"description":"Why the experiment ended. Possible values: \"STOPPED_BY_USER\", \"WINNER_FOUND\", \"EXPERIMENT_EXPIRED\", \"ENDED_WITH_NO_WINNER\", \"GOAL_OBJECTIVE_CHANGED\". \"ENDED_WITH_NO_WINNER\" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.",
"type":"string"
},
"rewriteVariationUrlsAsOriginal":{
"description":"Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.",
"type":"boolean"
},
"selfLink":{
"description":"Link for this experiment. This field is read-only.",
"type":"string"
},
"servingFramework":{
"description":"The framework used to serve the experiment variations and evaluate the results. One of: \n- REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.\n- API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.\n- EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.",
"type":"string"
},
"snippet":{
"description":"The snippet of code to include on the control page(s). This field is read-only.",
"type":"string"
},
"startTime":{
"description":"The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.",
"format":"date-time",
"type":"string"
},
"status":{
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
},
"description":"Experiment status. Possible values: \"DRAFT\", \"READY_TO_RUN\", \"RUNNING\", \"ENDED\". Experiments can be created in the \"DRAFT\", \"READY_TO_RUN\" or \"RUNNING\" state. This field is required when creating an experiment.",
"type":"string"
},
"trafficCoverage":{
"description":"A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.",
"format":"double",
"type":"number"
},
"updated":{
"description":"Time the experiment was last modified. This field is read-only.",
"format":"date-time",
"type":"string"
},
"variations":{
"description":"Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.",
"items":{
"properties":{
"name":{
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
},
"description":"The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.",
"type":"string"
},
"status":{
"description":"Status of the variation. Possible values: \"ACTIVE\", \"INACTIVE\". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.",
"type":"string"
},
"url":{
"description":"The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.",
"type":"string"
},
"weight":{
"description":"Weight that this variation should receive. Only present if the experiment is running. This field is read-only.",
"format":"double",
"type":"number"
},
"won":{
"description":"True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.",
"type":"boolean"
}
},
"type":"object"
},
"type":"array"
},
"webPropertyId":{
"description":"Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.",
"type":"string"
},
"winnerConfidenceLevel":{
"description":"A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.",
"format":"double",
"type":"number"
},
"winnerFound":{
"description":"Boolean specifying whether a winner has been found for this experiment. This field is read-only.",
"type":"boolean"
}
},
"type":"object"
},
"Experiments":{
"description":"An experiment collection lists Analytics experiments to which the user has access. Each view (profile) can have a set of experiments. Each resource in the Experiment collection corresponds to a single Analytics experiment.",
"id":"Experiments",
"properties":{
"items":{
"description":"A list of experiments.",
"items":{
"$ref":"Experiment"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#experiments",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this experiment collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this experiment collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"Filter":{
"description":"JSON template for an Analytics account filter.",
"id":"Filter",
"properties":{
"accountId":{
"description":"Account ID to which this filter belongs.",
"type":"string"
},
"advancedDetails":{
"description":"Details for the filter of the type ADVANCED.",
"properties":{
"caseSensitive":{
"description":"Indicates if the filter expressions are case sensitive.",
"type":"boolean"
},
"extractA":{
"description":"Expression to extract from field A.",
"type":"string"
},
"extractB":{
"description":"Expression to extract from field B.",
"type":"string"
},
"fieldA":{
"description":"Field A.",
"type":"string"
},
"fieldAIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
},
"fieldARequired":{
"description":"Indicates if field A is required to match.",
"type":"boolean"
},
"fieldB":{
"description":"Field B.",
"type":"string"
},
"fieldBIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
},
"fieldBRequired":{
"description":"Indicates if field B is required to match.",
"type":"boolean"
},
"outputConstructor":{
"description":"Expression used to construct the output value.",
"type":"string"
},
"outputToField":{
"description":"Output field.",
"type":"string"
},
"outputToFieldIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
},
"overrideOutputField":{
"description":"Indicates if the existing value of the output field, if any, should be overridden by the output expression.",
"type":"boolean"
}
},
"type":"object"
},
"created":{
"description":"Time this filter was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"excludeDetails":{
"$ref":"FilterExpression",
"description":"Details for the filter of the type EXCLUDE."
},
"id":{
"description":"Filter ID.",
"type":"string"
},
"includeDetails":{
"$ref":"FilterExpression",
"description":"Details for the filter of the type INCLUDE."
},
"kind":{
"default":"analytics#filter",
"description":"Resource type for Analytics filter.",
"readOnly":true,
"type":"string"
},
"lowercaseDetails":{
"description":"Details for the filter of the type LOWER.",
"properties":{
"field":{
"description":"Field to use in the filter.",
"type":"string"
},
"fieldIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"name":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.filters.update"
]
},
"description":"Name of this filter.",
"type":"string"
},
"parentLink":{
"description":"Parent link for this filter. Points to the account to which this filter belongs.",
"properties":{
"href":{
"description":"Link to the account to which this filter belongs.",
"type":"string"
},
"type":{
"default":"analytics#account",
"description":"Value is \"analytics#account\".",
"type":"string"
}
},
"type":"object"
},
"searchAndReplaceDetails":{
"description":"Details for the filter of the type SEARCH_AND_REPLACE.",
"properties":{
"caseSensitive":{
"description":"Determines if the filter is case sensitive.",
"type":"boolean"
},
"field":{
"description":"Field to use in the filter.",
"type":"string"
},
"fieldIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
},
"replaceString":{
"description":"Term to replace the search term with.",
"type":"string"
},
"searchString":{
"description":"Term to search.",
"type":"string"
}
},
"type":"object"
},
"selfLink":{
"description":"Link for this filter.",
"readOnly":true,
"type":"string"
},
"type":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.filters.update"
]
},
"description":"Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.",
"type":"string"
},
"updated":{
"description":"Time this filter was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"uppercaseDetails":{
"description":"Details for the filter of the type UPPER.",
"properties":{
"field":{
"description":"Field to use in the filter.",
"type":"string"
},
"fieldIndex":{
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
}
},
"type":"object"
},
"FilterExpression":{
"description":"JSON template for an Analytics filter expression.",
"id":"FilterExpression",
"properties":{
"caseSensitive":{
"description":"Determines if the filter is case sensitive.",
"description":"The Index of the custom dimension. Set only if the field is a is CUSTOM_DIMENSION.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#filterExpression",
"description":"Kind value for filter expression",
"type":"string"
},
"matchType":{
"description":"Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all other filters must use MATCHES.",
"type":"string"
}
},
"type":"object"
},
"FilterRef":{
"description":"JSON template for a profile filter link.",
"id":"FilterRef",
"properties":{
"accountId":{
"description":"Account ID to which this filter belongs.",
"readOnly":true,
"type":"string"
},
"href":{
"description":"Link for this filter.",
"type":"string"
},
"id":{
"annotations":{
"required":[
"analytics.management.profileFilterLinks.insert"
]
},
"description":"Filter ID.",
"type":"string"
},
"kind":{
"default":"analytics#filterRef",
"description":"Kind value for filter reference.",
"type":"string"
},
"name":{
"description":"Name of this filter.",
"readOnly":true,
"type":"string"
}
},
"type":"object"
},
"Filters":{
"description":"A filter collection lists filters created by users in an Analytics account. Each resource in the collection corresponds to a filter.",
"id":"Filters",
"properties":{
"items":{
"description":"A list of filters.",
"items":{
"$ref":"Filter"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#filters",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this filter collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this filter collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"GaData":{
"description":"Analytics data for a given view (profile).",
"id":"GaData",
"properties":{
"columnHeaders":{
"description":"Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.",
"items":{
"properties":{
"columnType":{
"description":"Column Type. Either DIMENSION or METRIC.",
"type":"string"
},
"dataType":{
"description":"Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc.",
"type":"string"
},
"name":{
"description":"Column name.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"containsSampledData":{
"description":"Determines if Analytics data contains samples.",
"type":"boolean"
},
"dataLastRefreshed":{
"description":"The last refreshed time in seconds for Analytics data.",
"format":"int64",
"type":"string"
},
"dataTable":{
"properties":{
"cols":{
"items":{
"properties":{
"id":{
"type":"string"
},
"label":{
"type":"string"
},
"type":{
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"rows":{
"items":{
"properties":{
"c":{
"items":{
"properties":{
"v":{
"type":"string"
}
},
"type":"object"
},
"type":"array"
}
},
"type":"object"
},
"type":"array"
}
},
"type":"object"
},
"id":{
"description":"Unique ID for this data response.",
"type":"string"
},
"itemsPerPage":{
"description":"The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#gaData",
"description":"Resource type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this Analytics data query.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this Analytics data query.",
"type":"string"
},
"profileInfo":{
"description":"Information for the view (profile), for which the Analytics data was requested.",
"properties":{
"accountId":{
"description":"Account ID to which this view (profile) belongs.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this view (profile) belongs.",
"type":"string"
},
"profileId":{
"description":"View (Profile) ID.",
"type":"string"
},
"profileName":{
"description":"View (Profile) name.",
"type":"string"
},
"tableId":{
"description":"Table ID for view (profile).",
"type":"string"
},
"webPropertyId":{
"description":"Web Property ID to which this view (profile) belongs.",
"type":"string"
}
},
"type":"object"
},
"query":{
"description":"Analytics data request query parameters.",
"properties":{
"dimensions":{
"description":"List of analytics dimensions.",
"type":"string"
},
"end-date":{
"description":"End date.",
"type":"string"
},
"filters":{
"description":"Comma-separated list of dimension or metric filters.",
"type":"string"
},
"ids":{
"description":"Unique table ID.",
"type":"string"
},
"max-results":{
"description":"Maximum results per page.",
"format":"int32",
"type":"integer"
},
"metrics":{
"description":"List of analytics metrics.",
"items":{
"type":"string"
},
"type":"array"
},
"samplingLevel":{
"description":"Desired sampling level",
"type":"string"
},
"segment":{
"description":"Analytics advanced segment.",
"type":"string"
},
"sort":{
"description":"List of dimensions or metrics based on which Analytics data is sorted.",
"items":{
"type":"string"
},
"type":"array"
},
"start-date":{
"description":"Start date.",
"type":"string"
},
"start-index":{
"description":"Start index.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"rows":{
"description":"Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.",
"items":{
"items":{
"type":"string"
},
"type":"array"
},
"type":"array"
},
"sampleSize":{
"description":"The number of samples used to calculate the result.",
"format":"int64",
"type":"string"
},
"sampleSpace":{
"description":"Total size of the sample space from which the samples were selected.",
"format":"int64",
"type":"string"
},
"selfLink":{
"description":"Link to this page.",
"type":"string"
},
"totalResults":{
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32",
"type":"integer"
},
"totalsForAllResults":{
"additionalProperties":{
"description":"Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.",
"type":"string"
},
"description":"Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.",
"type":"object"
}
},
"type":"object"
},
"Goal":{
"description":"JSON template for Analytics goal resource.",
"id":"Goal",
"properties":{
"accountId":{
"description":"Account ID to which this goal belongs.",
"type":"string"
},
"active":{
"description":"Determines whether this goal is active.",
"type":"boolean"
},
"created":{
"description":"Time this goal was created.",
"format":"date-time",
"type":"string"
},
"eventDetails":{
"description":"Details for the goal of the type EVENT.",
"properties":{
"eventConditions":{
"description":"List of event conditions.",
"items":{
"properties":{
"comparisonType":{
"description":"Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.",
"type":"string"
},
"comparisonValue":{
"description":"Value used for this comparison.",
"format":"int64",
"type":"string"
},
"expression":{
"description":"Expression used for this match.",
"type":"string"
},
"matchType":{
"description":"Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.",
"type":"string"
},
"type":{
"description":"Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"useEventValue":{
"description":"Determines if the event value should be used as the value for this goal.",
"type":"boolean"
}
},
"type":"object"
},
"id":{
"description":"Goal ID.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this goal belongs.",
"type":"string"
},
"kind":{
"default":"analytics#goal",
"description":"Resource type for an Analytics goal.",
"type":"string"
},
"name":{
"description":"Goal name.",
"type":"string"
},
"parentLink":{
"description":"Parent link for a goal. Points to the view (profile) to which this goal belongs.",
"properties":{
"href":{
"description":"Link to the view (profile) to which this goal belongs.",
"type":"string"
},
"type":{
"default":"analytics#profile",
"description":"Value is \"analytics#profile\".",
"type":"string"
}
},
"type":"object"
},
"profileId":{
"description":"View (Profile) ID to which this goal belongs.",
"type":"string"
},
"selfLink":{
"description":"Link for this goal.",
"type":"string"
},
"type":{
"description":"Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.",
"type":"string"
},
"updated":{
"description":"Time this goal was last modified.",
"format":"date-time",
"type":"string"
},
"urlDestinationDetails":{
"description":"Details for the goal of the type URL_DESTINATION.",
"properties":{
"caseSensitive":{
"description":"Determines if the goal URL must exactly match the capitalization of visited URLs.",
"type":"boolean"
},
"firstStepRequired":{
"description":"Determines if the first step in this goal is required.",
"type":"boolean"
},
"matchType":{
"description":"Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.",
"type":"string"
},
"steps":{
"description":"List of steps configured for this goal funnel.",
"items":{
"properties":{
"name":{
"description":"Step name.",
"type":"string"
},
"number":{
"description":"Step number.",
"format":"int32",
"type":"integer"
},
"url":{
"description":"URL for this step.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"url":{
"description":"URL for this goal.",
"type":"string"
}
},
"type":"object"
},
"value":{
"description":"Goal value.",
"format":"float",
"type":"number"
},
"visitNumPagesDetails":{
"description":"Details for the goal of the type VISIT_NUM_PAGES.",
"properties":{
"comparisonType":{
"description":"Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.",
"type":"string"
},
"comparisonValue":{
"description":"Value used for this comparison.",
"format":"int64",
"type":"string"
}
},
"type":"object"
},
"visitTimeOnSiteDetails":{
"description":"Details for the goal of the type VISIT_TIME_ON_SITE.",
"properties":{
"comparisonType":{
"description":"Type of comparison. Possible values are LESS_THAN or GREATER_THAN.",
"type":"string"
},
"comparisonValue":{
"description":"Value used for this comparison.",
"format":"int64",
"type":"string"
}
},
"type":"object"
},
"webPropertyId":{
"description":"Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.",
"type":"string"
}
},
"type":"object"
},
"Goals":{
"description":"A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of goals. Each resource in the Goal collection corresponds to a single Analytics goal.",
"id":"Goals",
"properties":{
"items":{
"description":"A list of goals.",
"items":{
"$ref":"Goal"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#goals",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this goal collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this goal collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"description":"JSON template for an Analytics Remarketing Include Conditions.",
"id":"IncludeConditions",
"properties":{
"daysToLookBack":{
"description":"The look-back window lets you specify a time frame for evaluating the behavior that qualifies users for your audience. For example, if your filters include users from Central Asia, and Transactions Greater than 2, and you set the look-back window to 14 days, then any user from Central Asia whose cumulative transactions exceed 2 during the last 14 days is added to the audience.",
"format":"int32",
"type":"integer"
},
"isSmartList":{
"description":"Boolean indicating whether this segment is a smart list. https://support.google.com/analytics/answer/4628577",
"type":"boolean"
},
"kind":{
"default":"analytics#includeConditions",
"description":"Resource type for include conditions.",
"type":"string"
},
"membershipDurationDays":{
"description":"Number of days (in the range 1 to 540) a user remains in the audience.",
"format":"int32",
"type":"integer"
},
"segment":{
"description":"The segment condition that will cause a user to be added to an audience.",
"type":"string"
}
},
"type":"object"
},
"LinkedForeignAccount":{
"description":"JSON template for an Analytics Remarketing Audience Foreign Link.",
"id":"LinkedForeignAccount",
"properties":{
"accountId":{
"description":"Account ID to which this linked foreign account belongs.",
"type":"string"
},
"eligibleForSearch":{
"description":"Boolean indicating whether this is eligible for search.",
"readOnly":true,
"type":"boolean"
},
"id":{
"description":"Entity ad account link ID.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this linked foreign account belongs.",
"readOnly":true,
"type":"string"
},
"kind":{
"default":"analytics#linkedForeignAccount",
"description":"Resource type for linked foreign account.",
"description":"Remarketing audience ID to which this linked foreign account belongs.",
"type":"string"
},
"status":{
"description":"The status of this foreign account link.",
"type":"string"
},
"type":{
"description":"The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`.",
"type":"string"
},
"webPropertyId":{
"description":"Web property ID of the form UA-XXXXX-YY to which this linked foreign account belongs.",
"type":"string"
}
},
"type":"object"
},
"McfData":{
"description":"Multi-Channel Funnels data for a given view (profile).",
"id":"McfData",
"properties":{
"columnHeaders":{
"description":"Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.",
"items":{
"properties":{
"columnType":{
"description":"Column Type. Either DIMENSION or METRIC.",
"type":"string"
},
"dataType":{
"description":"Data type. Dimension and metric values data types such as INTEGER, DOUBLE, CURRENCY, MCF_SEQUENCE etc.",
"type":"string"
},
"name":{
"description":"Column name.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"containsSampledData":{
"description":"Determines if the Analytics data contains sampled data.",
"type":"boolean"
},
"id":{
"description":"Unique ID for this data response.",
"type":"string"
},
"itemsPerPage":{
"description":"The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#mcfData",
"description":"Resource type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this Analytics data query.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this Analytics data query.",
"type":"string"
},
"profileInfo":{
"description":"Information for the view (profile), for which the Analytics data was requested.",
"properties":{
"accountId":{
"description":"Account ID to which this view (profile) belongs.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this view (profile) belongs.",
"type":"string"
},
"profileId":{
"description":"View (Profile) ID.",
"type":"string"
},
"profileName":{
"description":"View (Profile) name.",
"type":"string"
},
"tableId":{
"description":"Table ID for view (profile).",
"type":"string"
},
"webPropertyId":{
"description":"Web Property ID to which this view (profile) belongs.",
"type":"string"
}
},
"type":"object"
},
"query":{
"description":"Analytics data request query parameters.",
"properties":{
"dimensions":{
"description":"List of analytics dimensions.",
"type":"string"
},
"end-date":{
"description":"End date.",
"type":"string"
},
"filters":{
"description":"Comma-separated list of dimension or metric filters.",
"type":"string"
},
"ids":{
"description":"Unique table ID.",
"type":"string"
},
"max-results":{
"description":"Maximum results per page.",
"format":"int32",
"type":"integer"
},
"metrics":{
"description":"List of analytics metrics.",
"items":{
"type":"string"
},
"type":"array"
},
"samplingLevel":{
"description":"Desired sampling level",
"type":"string"
},
"segment":{
"description":"Analytics advanced segment.",
"type":"string"
},
"sort":{
"description":"List of dimensions or metrics based on which Analytics data is sorted.",
"items":{
"type":"string"
},
"type":"array"
},
"start-date":{
"description":"Start date.",
"type":"string"
},
"start-index":{
"description":"Start index.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"rows":{
"description":"Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.",
"items":{
"items":{
"description":"A union object representing a dimension or metric value. Only one of \"primitiveValue\" or \"conversionPathValue\" attribute will be populated.",
"properties":{
"conversionPathValue":{
"description":"A conversion path dimension value, containing a list of interactions with their attributes.",
"items":{
"properties":{
"interactionType":{
"description":"Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.",
"type":"string"
},
"nodeValue":{
"description":"Node value of an interaction on conversion path. Such as source, medium etc.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"primitiveValue":{
"description":"A primitive dimension value. A primitive metric value.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"type":"array"
},
"sampleSize":{
"description":"The number of samples used to calculate the result.",
"format":"int64",
"type":"string"
},
"sampleSpace":{
"description":"Total size of the sample space from which the samples were selected.",
"format":"int64",
"type":"string"
},
"selfLink":{
"description":"Link to this page.",
"type":"string"
},
"totalResults":{
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32",
"type":"integer"
},
"totalsForAllResults":{
"additionalProperties":{
"description":"Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.",
"type":"string"
},
"description":"Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.",
"type":"object"
}
},
"type":"object"
},
"Profile":{
"description":"JSON template for an Analytics view (profile).",
"id":"Profile",
"properties":{
"accountId":{
"description":"Account ID to which this view (profile) belongs.",
"type":"string"
},
"botFilteringEnabled":{
"description":"Indicates whether bot filtering is enabled for this view (profile).",
"type":"boolean"
},
"childLink":{
"description":"Child link for this view (profile). Points to the list of goals for this view (profile).",
"properties":{
"href":{
"description":"Link to the list of goals for this view (profile).",
"type":"string"
},
"type":{
"default":"analytics#goals",
"description":"Value is \"analytics#goals\".",
"type":"string"
}
},
"type":"object"
},
"created":{
"description":"Time this view (profile) was created.",
"description":"Default page for this view (profile).",
"type":"string"
},
"eCommerceTracking":{
"description":"Indicates whether ecommerce tracking is enabled for this view (profile).",
"type":"boolean"
},
"enhancedECommerceTracking":{
"description":"Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.",
"type":"boolean"
},
"excludeQueryParameters":{
"description":"The query parameters that are excluded from this view (profile).",
"type":"string"
},
"id":{
"description":"View (Profile) ID.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this view (profile) belongs.",
"readOnly":true,
"type":"string"
},
"kind":{
"default":"analytics#profile",
"description":"Resource type for Analytics view (profile).",
"readOnly":true,
"type":"string"
},
"name":{
"description":"Name of this view (profile).",
"type":"string"
},
"parentLink":{
"description":"Parent link for this view (profile). Points to the web property to which this view (profile) belongs.",
"properties":{
"href":{
"description":"Link to the web property to which this view (profile) belongs.",
"type":"string"
},
"type":{
"default":"analytics#webproperty",
"description":"Value is \"analytics#webproperty\".",
"type":"string"
}
},
"type":"object"
},
"permissions":{
"description":"Permissions the user has for this view (profile).",
"properties":{
"effective":{
"description":"All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.",
"items":{
"type":"string"
},
"readOnly":true,
"type":"array"
}
},
"type":"object"
},
"selfLink":{
"description":"Link for this view (profile).",
"readOnly":true,
"type":"string"
},
"siteSearchCategoryParameters":{
"description":"Site search category parameters for this view (profile).",
"type":"string"
},
"siteSearchQueryParameters":{
"description":"The site search query parameters for this view (profile).",
"type":"string"
},
"starred":{
"description":"Indicates whether this view (profile) is starred or not.",
"type":"boolean"
},
"stripSiteSearchCategoryParameters":{
"description":"Whether or not Analytics will strip search category parameters from the URLs in your reports.",
"type":"boolean"
},
"stripSiteSearchQueryParameters":{
"description":"Whether or not Analytics will strip search query parameters from the URLs in your reports.",
"type":"boolean"
},
"timezone":{
"description":"Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.",
"type":"string"
},
"type":{
"description":"View (Profile) type. Supported types: WEB or APP.",
"type":"string"
},
"updated":{
"description":"Time this view (profile) was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"webPropertyId":{
"description":"Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.",
"readOnly":true,
"type":"string"
},
"websiteUrl":{
"description":"Website URL for this view (profile).",
"type":"string"
}
},
"type":"object"
},
"ProfileFilterLink":{
"description":"JSON template for an Analytics profile filter link.",
"id":"ProfileFilterLink",
"properties":{
"filterRef":{
"$ref":"FilterRef",
"description":"Filter for this link."
},
"id":{
"description":"Profile filter link ID.",
"type":"string"
},
"kind":{
"default":"analytics#profileFilterLink",
"description":"Resource type for Analytics filter.",
"readOnly":true,
"type":"string"
},
"profileRef":{
"$ref":"ProfileRef",
"description":"View (Profile) for this link."
},
"rank":{
"description":"The rank of this profile filter link relative to the other filters linked to the same profile.\nFor readonly (i.e., list and get) operations, the rank always starts at 1.\nFor write (i.e., create, update, or delete) operations, you may specify a value between 0 and 255 inclusively, [0, 255]. In order to insert a link at the end of the list, either don't specify a rank or set a rank to a number greater than the largest rank in the list. In order to insert a link to the beginning of the list specify a rank that is less than or equal to 1. The new link will move all existing filters with the same or lower rank down the list. After the link is inserted/updated/deleted all profile filter links will be renumbered starting at 1.",
"format":"int32",
"type":"integer"
},
"selfLink":{
"description":"Link for this profile filter link.",
"readOnly":true,
"type":"string"
}
},
"type":"object"
},
"ProfileFilterLinks":{
"description":"A profile filter link collection lists profile filter links between profiles and filters. Each resource in the collection corresponds to a profile filter link.",
"id":"ProfileFilterLinks",
"properties":{
"items":{
"description":"A list of profile filter links.",
"items":{
"$ref":"ProfileFilterLink"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#profileFilterLinks",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this profile filter link collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this profile filter link collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"ProfileRef":{
"description":"JSON template for a linked view (profile).",
"id":"ProfileRef",
"properties":{
"accountId":{
"description":"Account ID to which this view (profile) belongs.",
"type":"string"
},
"href":{
"description":"Link for this view (profile).",
"type":"string"
},
"id":{
"description":"View (Profile) ID.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this view (profile) belongs.",
"description":"Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.",
"type":"string"
}
},
"type":"object"
},
"ProfileSummary":{
"description":"JSON template for an Analytics ProfileSummary. ProfileSummary returns basic information (i.e., summary) for a profile.",
"id":"ProfileSummary",
"properties":{
"id":{
"description":"View (profile) ID.",
"type":"string"
},
"kind":{
"default":"analytics#profileSummary",
"description":"Resource type for Analytics ProfileSummary.",
"type":"string"
},
"name":{
"description":"View (profile) name.",
"type":"string"
},
"starred":{
"description":"Indicates whether this view (profile) is starred or not.",
"type":"boolean"
},
"type":{
"description":"View (Profile) type. Supported types: WEB or APP.",
"type":"string"
}
},
"type":"object"
},
"Profiles":{
"description":"A view (profile) collection lists Analytics views (profiles) to which the user has access. Each resource in the collection corresponds to a single Analytics view (profile).",
"id":"Profiles",
"properties":{
"items":{
"description":"A list of views (profiles).",
"items":{
"$ref":"Profile"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#profiles",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this view (profile) collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this view (profile) collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"RealtimeData":{
"description":"Real time data for a given view (profile).",
"id":"RealtimeData",
"properties":{
"columnHeaders":{
"description":"Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.",
"items":{
"properties":{
"columnType":{
"description":"Column Type. Either DIMENSION or METRIC.",
"type":"string"
},
"dataType":{
"description":"Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc.",
"type":"string"
},
"name":{
"description":"Column name.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"id":{
"description":"Unique ID for this data response.",
"type":"string"
},
"kind":{
"default":"analytics#realtimeData",
"description":"Resource type.",
"type":"string"
},
"profileInfo":{
"description":"Information for the view (profile), for which the real time data was requested.",
"properties":{
"accountId":{
"description":"Account ID to which this view (profile) belongs.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this view (profile) belongs.",
"type":"string"
},
"profileId":{
"description":"View (Profile) ID.",
"type":"string"
},
"profileName":{
"description":"View (Profile) name.",
"type":"string"
},
"tableId":{
"description":"Table ID for view (profile).",
"type":"string"
},
"webPropertyId":{
"description":"Web Property ID to which this view (profile) belongs.",
"type":"string"
}
},
"type":"object"
},
"query":{
"description":"Real time data request query parameters.",
"properties":{
"dimensions":{
"description":"List of real time dimensions.",
"type":"string"
},
"filters":{
"description":"Comma-separated list of dimension or metric filters.",
"type":"string"
},
"ids":{
"description":"Unique table ID.",
"type":"string"
},
"max-results":{
"description":"Maximum results per page.",
"format":"int32",
"type":"integer"
},
"metrics":{
"description":"List of real time metrics.",
"items":{
"type":"string"
},
"type":"array"
},
"sort":{
"description":"List of dimensions or metrics based on which real time data is sorted.",
"items":{
"type":"string"
},
"type":"array"
}
},
"type":"object"
},
"rows":{
"description":"Real time data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.",
"items":{
"items":{
"type":"string"
},
"type":"array"
},
"type":"array"
},
"selfLink":{
"description":"Link to this page.",
"type":"string"
},
"totalResults":{
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32",
"type":"integer"
},
"totalsForAllResults":{
"additionalProperties":{
"description":"Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.",
"type":"string"
},
"description":"Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.",
"type":"object"
}
},
"type":"object"
},
"RemarketingAudience":{
"description":"JSON template for an Analytics remarketing audience.",
"id":"RemarketingAudience",
"properties":{
"accountId":{
"description":"Account ID to which this remarketing audience belongs.",
"type":"string"
},
"audienceDefinition":{
"description":"The simple audience definition that will cause a user to be added to an audience.",
"properties":{
"includeConditions":{
"$ref":"IncludeConditions",
"description":"Defines the conditions to include users to the audience."
}
},
"type":"object"
},
"audienceType":{
"description":"The type of audience, either SIMPLE or STATE_BASED.",
"type":"string"
},
"created":{
"description":"Time this remarketing audience was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"description":{
"description":"The description of this remarketing audience.",
"readOnly":true,
"type":"string"
},
"id":{
"description":"Remarketing Audience ID.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for the web property to which this remarketing audience belongs.",
"readOnly":true,
"type":"string"
},
"kind":{
"default":"analytics#remarketingAudience",
"description":"Collection type.",
"type":"string"
},
"linkedAdAccounts":{
"description":"The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently.",
"items":{
"$ref":"LinkedForeignAccount"
},
"type":"array"
},
"linkedViews":{
"description":"The views (profiles) that this remarketing audience is linked to.",
"items":{
"type":"string"
},
"type":"array"
},
"name":{
"description":"The name of this remarketing audience.",
"type":"string"
},
"stateBasedAudienceDefinition":{
"description":"A state based audience definition that will cause a user to be added or removed from an audience.",
"properties":{
"excludeConditions":{
"description":"Defines the conditions to exclude users from the audience.",
"properties":{
"exclusionDuration":{
"description":"Whether to make the exclusion TEMPORARY or PERMANENT.",
"type":"string"
},
"segment":{
"description":"The segment condition that will cause a user to be removed from an audience.",
"type":"string"
}
},
"type":"object"
},
"includeConditions":{
"$ref":"IncludeConditions",
"description":"Defines the conditions to include users to the audience."
}
},
"type":"object"
},
"updated":{
"description":"Time this remarketing audience was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"webPropertyId":{
"description":"Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs.",
"type":"string"
}
},
"type":"object"
},
"RemarketingAudiences":{
"description":"A remarketing audience collection lists Analytics remarketing audiences to which the user has access. Each resource in the collection corresponds to a single Analytics remarketing audience.",
"id":"RemarketingAudiences",
"properties":{
"items":{
"description":"A list of remarketing audiences.",
"items":{
"$ref":"RemarketingAudience"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#remarketingAudiences",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this remarketing audience collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this view (profile) collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"Segment":{
"description":"JSON template for an Analytics segment.",
"id":"Segment",
"properties":{
"created":{
"description":"Time the segment was created.",
"format":"date-time",
"type":"string"
},
"definition":{
"description":"Segment definition.",
"type":"string"
},
"id":{
"description":"Segment ID.",
"type":"string"
},
"kind":{
"default":"analytics#segment",
"description":"Resource type for Analytics segment.",
"type":"string"
},
"name":{
"description":"Segment name.",
"type":"string"
},
"segmentId":{
"description":"Segment ID. Can be used with the 'segment' parameter in Core Reporting API.",
"type":"string"
},
"selfLink":{
"description":"Link for this segment.",
"type":"string"
},
"type":{
"description":"Type for a segment. Possible values are \"BUILT_IN\" or \"CUSTOM\".",
"type":"string"
},
"updated":{
"description":"Time the segment was last modified.",
"format":"date-time",
"type":"string"
}
},
"type":"object"
},
"Segments":{
"description":"An segment collection lists Analytics segments that the user has access to. Each resource in the collection corresponds to a single Analytics segment.",
"id":"Segments",
"properties":{
"items":{
"description":"A list of segments.",
"items":{
"$ref":"Segment"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#segments",
"description":"Collection type for segments.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this segment collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this segment collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"UnsampledReport":{
"description":"JSON template for Analytics unsampled report resource.",
"id":"UnsampledReport",
"properties":{
"accountId":{
"description":"Account ID to which this unsampled report belongs.",
"type":"string"
},
"cloudStorageDownloadDetails":{
"description":"Download details for a file stored in Google Cloud Storage.",
"properties":{
"bucketId":{
"description":"Id of the bucket the file object is stored in.",
"type":"string"
},
"objectId":{
"description":"Id of the file object containing the report data.",
"type":"string"
}
},
"readOnly":true,
"type":"object"
},
"created":{
"description":"Time this unsampled report was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"dimensions":{
"description":"The dimensions for the unsampled report.",
"type":"string"
},
"downloadType":{
"description":"The type of download you need to use for the report data file. Possible values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.",
"readOnly":true,
"type":"string"
},
"driveDownloadDetails":{
"description":"Download details for a file stored in Google Drive.",
"properties":{
"documentId":{
"description":"Id of the document/file containing the report data.",
"type":"string"
}
},
"readOnly":true,
"type":"object"
},
"end-date":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
},
"description":"The end date for the unsampled report.",
"type":"string"
},
"filters":{
"description":"The filters for the unsampled report.",
"type":"string"
},
"id":{
"description":"Unsampled report ID.",
"type":"string"
},
"kind":{
"default":"analytics#unsampledReport",
"description":"Resource type for an Analytics unsampled report.",
"readOnly":true,
"type":"string"
},
"metrics":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
},
"description":"The metrics for the unsampled report.",
"type":"string"
},
"profileId":{
"description":"View (Profile) ID to which this unsampled report belongs.",
"type":"string"
},
"segment":{
"description":"The segment for the unsampled report.",
"type":"string"
},
"selfLink":{
"description":"Link for this unsampled report.",
"readOnly":true,
"type":"string"
},
"start-date":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
},
"description":"The start date for the unsampled report.",
"type":"string"
},
"status":{
"description":"Status of this unsampled report. Possible values are PENDING, COMPLETED, or FAILED.",
"readOnly":true,
"type":"string"
},
"title":{
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
},
"description":"Title of the unsampled report.",
"type":"string"
},
"updated":{
"description":"Time this unsampled report was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"webPropertyId":{
"description":"Web property ID to which this unsampled report belongs. The web property ID is of the form UA-XXXXX-YY.",
"type":"string"
}
},
"type":"object"
},
"UnsampledReports":{
"description":"An unsampled report collection lists Analytics unsampled reports to which the user has access. Each view (profile) can have a set of unsampled reports. Each resource in the unsampled report collection corresponds to a single Analytics unsampled report.",
"id":"UnsampledReports",
"properties":{
"items":{
"description":"A list of unsampled reports.",
"items":{
"$ref":"UnsampledReport"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#unsampledReports",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this unsampled report collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this unsampled report collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"Upload":{
"description":"Metadata returned for an upload operation.",
"id":"Upload",
"properties":{
"accountId":{
"description":"Account Id to which this upload belongs.",
"format":"int64",
"type":"string"
},
"customDataSourceId":{
"description":"Custom data source Id to which this data import belongs.",
"type":"string"
},
"errors":{
"description":"Data import errors collection.",
"items":{
"type":"string"
},
"type":"array"
},
"id":{
"description":"A unique ID for this upload.",
"type":"string"
},
"kind":{
"default":"analytics#upload",
"description":"Resource type for Analytics upload.",
"type":"string"
},
"status":{
"description":"Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED.",
"type":"string"
},
"uploadTime":{
"description":"Time this file is uploaded.",
"format":"date-time",
"type":"string"
}
},
"type":"object"
},
"Uploads":{
"description":"Upload collection lists Analytics uploads to which the user has access. Each custom data source can have a set of uploads. Each resource in the upload collection corresponds to a single Analytics data upload.",
"id":"Uploads",
"properties":{
"items":{
"description":"A list of uploads.",
"items":{
"$ref":"Upload"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#uploads",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this upload collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this upload collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32",
"type":"integer"
}
},
"type":"object"
},
"UserDeletionRequest":{
"description":"JSON template for a user deletion request resource.",
"id":"UserDeletionRequest",
"properties":{
"deletionRequestTime":{
"description":"This marks the point in time for which all user data before should be deleted",
"description":"Value is \"analytics#userDeletionRequest\".",
"type":"string"
},
"webPropertyId":{
"description":"Web property ID of the form UA-XXXXX-YY.",
"type":"string"
}
},
"type":"object"
},
"UserRef":{
"description":"JSON template for a user reference.",
"id":"UserRef",
"properties":{
"email":{
"description":"Email ID of this user.",
"type":"string"
},
"id":{
"description":"User ID.",
"type":"string"
},
"kind":{
"default":"analytics#userRef",
"type":"string"
}
},
"type":"object"
},
"WebPropertyRef":{
"description":"JSON template for a web property reference.",
"id":"WebPropertyRef",
"properties":{
"accountId":{
"description":"Account ID to which this web property belongs.",
"type":"string"
},
"href":{
"description":"Link for this web property.",
"type":"string"
},
"id":{
"description":"Web property ID of the form UA-XXXXX-YY.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for this web property.",
"type":"string"
},
"kind":{
"default":"analytics#webPropertyRef",
"description":"Analytics web property reference.",
"type":"string"
},
"name":{
"description":"Name of this web property.",
"type":"string"
}
},
"type":"object"
},
"WebPropertySummary":{
"description":"JSON template for an Analytics WebPropertySummary. WebPropertySummary returns basic information (i.e., summary) for a web property.",
"id":"WebPropertySummary",
"properties":{
"id":{
"description":"Web property ID of the form UA-XXXXX-YY.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for this web property.",
"type":"string"
},
"kind":{
"default":"analytics#webPropertySummary",
"description":"Resource type for Analytics WebPropertySummary.",
"type":"string"
},
"level":{
"description":"Level for this web property. Possible values are STANDARD or PREMIUM.",
"type":"string"
},
"name":{
"description":"Web property name.",
"type":"string"
},
"profiles":{
"description":"List of profiles under this web property.",
"items":{
"$ref":"ProfileSummary"
},
"type":"array"
},
"starred":{
"description":"Indicates whether this web property is starred or not.",
"type":"boolean"
},
"websiteUrl":{
"description":"Website url for this web property.",
"type":"string"
}
},
"type":"object"
},
"Webproperties":{
"description":"A web property collection lists Analytics web properties to which the user has access. Each resource in the collection corresponds to a single Analytics web property.",
"id":"Webproperties",
"properties":{
"items":{
"description":"A list of web properties.",
"items":{
"$ref":"Webproperty"
},
"type":"array"
},
"itemsPerPage":{
"description":"The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
"format":"int32",
"type":"integer"
},
"kind":{
"default":"analytics#webproperties",
"description":"Collection type.",
"type":"string"
},
"nextLink":{
"description":"Link to next page for this web property collection.",
"type":"string"
},
"previousLink":{
"description":"Link to previous page for this web property collection.",
"type":"string"
},
"startIndex":{
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32",
"type":"integer"
},
"totalResults":{
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32",
"type":"integer"
},
"username":{
"description":"Email ID of the authenticated user",
"type":"string"
}
},
"type":"object"
},
"Webproperty":{
"description":"JSON template for an Analytics web property.",
"id":"Webproperty",
"properties":{
"accountId":{
"description":"Account ID to which this web property belongs.",
"type":"string"
},
"childLink":{
"description":"Child link for this web property. Points to the list of views (profiles) for this web property.",
"properties":{
"href":{
"description":"Link to the list of views (profiles) for this web property.",
"type":"string"
},
"type":{
"default":"analytics#profiles",
"description":"Type of the parent link. Its value is \"analytics#profiles\".",
"type":"string"
}
},
"type":"object"
},
"created":{
"description":"Time this web property was created.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"dataRetentionResetOnNewActivity":{
"description":"Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).\nSet to false to delete data associated with the user identifer automatically after the rentention period.\nThis property cannot be set on insert.",
"type":"boolean"
},
"dataRetentionTtl":{
"description":"The length of time for which user and event data is retained.\nThis property cannot be set on insert.",
"type":"string"
},
"defaultProfileId":{
"description":"Default view (profile) ID.",
"format":"int64",
"type":"string"
},
"id":{
"description":"Web property ID of the form UA-XXXXX-YY.",
"type":"string"
},
"industryVertical":{
"description":"The industry vertical/category selected for this web property.",
"type":"string"
},
"internalWebPropertyId":{
"description":"Internal ID for this web property.",
"readOnly":true,
"type":"string"
},
"kind":{
"default":"analytics#webproperty",
"description":"Resource type for Analytics WebProperty.",
"readOnly":true,
"type":"string"
},
"level":{
"description":"Level for this web property. Possible values are STANDARD or PREMIUM.",
"readOnly":true,
"type":"string"
},
"name":{
"description":"Name of this web property.",
"type":"string"
},
"parentLink":{
"description":"Parent link for this web property. Points to the account to which this web property belongs.",
"properties":{
"href":{
"description":"Link to the account for this web property.",
"type":"string"
},
"type":{
"default":"analytics#account",
"description":"Type of the parent link. Its value is \"analytics#account\".",
"type":"string"
}
},
"type":"object"
},
"permissions":{
"description":"Permissions the user has for this web property.",
"properties":{
"effective":{
"description":"All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.",
"items":{
"type":"string"
},
"readOnly":true,
"type":"array"
}
},
"type":"object"
},
"profileCount":{
"description":"View (Profile) count for this web property.",
"format":"int32",
"readOnly":true,
"type":"integer"
},
"selfLink":{
"description":"Link for this web property.",
"readOnly":true,
"type":"string"
},
"starred":{
"description":"Indicates whether this web property is starred or not.",
"type":"boolean"
},
"updated":{
"description":"Time this web property was last modified.",
"format":"date-time",
"readOnly":true,
"type":"string"
},
"websiteUrl":{
"description":"Website url for this web property.",