"description":"Selector specifying which fields to include in a partial response.",
"location":"query"
},
"key":{
"type":"string",
"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"
},
"oauth_token":{
"type":"string",
"description":"OAuth 2.0 token for the current user.",
"location":"query"
},
"prettyPrint":{
"type":"boolean",
"description":"Returns response with indentations and line breaks.",
"default":"false",
"location":"query"
},
"quotaUser":{
"type":"string",
"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location":"query"
},
"userIp":{
"type":"string",
"description":"IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location":"query"
}
},
"auth":{
"oauth2":{
"scopes":{
"https://www.googleapis.com/auth/analytics":{
"description":"View and manage your Google Analytics data"
"description":"JSON template for Analytics account entry.",
"properties":{
"childLink":{
"type":"object",
"description":"Child link for an account entry. Points to the list of web properties for this account.",
"properties":{
"href":{
"type":"string",
"description":"Link to the list of web properties for this account."
},
"type":{
"type":"string",
"description":"Type of the child link. Its value is \"analytics#webproperties\".",
"default":"analytics#webproperties"
}
}
},
"created":{
"type":"string",
"description":"Time the account was created.",
"format":"date-time"
},
"id":{
"type":"string",
"description":"Account ID."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics account.",
"default":"analytics#account"
},
"name":{
"type":"string",
"description":"Account name."
},
"permissions":{
"type":"object",
"description":"Permissions the user has for this account.",
"properties":{
"effective":{
"type":"array",
"description":"All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).",
"readOnly":true,
"items":{
"type":"string"
}
}
}
},
"selfLink":{
"type":"string",
"description":"Link for this account."
},
"starred":{
"type":"boolean",
"description":"Indicates whether this account is starred or not."
},
"updated":{
"type":"string",
"description":"Time the account was last modified.",
"format":"date-time"
}
}
},
"AccountRef":{
"id":"AccountRef",
"type":"object",
"description":"JSON template for a linked account.",
"properties":{
"href":{
"type":"string",
"description":"Link for this account."
},
"id":{
"type":"string",
"description":"Account ID."
},
"kind":{
"type":"string",
"description":"Analytics account reference.",
"default":"analytics#accountRef"
},
"name":{
"type":"string",
"description":"Account name."
}
}
},
"AccountSummaries":{
"id":"AccountSummaries",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of AccountSummaries.",
"items":{
"$ref":"AccountSummary"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#accountSummaries"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this AccountSummary collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this AccountSummary collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"AccountSummary":{
"id":"AccountSummary",
"type":"object",
"description":"JSON template for an Analytics AccountSummary. An AccountSummary is a lightweight tree comprised of properties/profiles.",
"properties":{
"id":{
"type":"string",
"description":"Account ID."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics AccountSummary.",
"default":"analytics#accountSummary"
},
"name":{
"type":"string",
"description":"Account name."
},
"starred":{
"type":"boolean",
"description":"Indicates whether this account is starred or not."
},
"webProperties":{
"type":"array",
"description":"List of web properties under this account.",
"items":{
"$ref":"WebPropertySummary"
}
}
}
},
"AccountTicket":{
"id":"AccountTicket",
"type":"object",
"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.",
"properties":{
"account":{
"$ref":"Account",
"description":"Account for this ticket."
},
"id":{
"type":"string",
"description":"Account ticket ID used to access the account ticket."
},
"kind":{
"type":"string",
"description":"Resource type for account ticket.",
"default":"analytics#accountTicket"
},
"profile":{
"$ref":"Profile",
"description":"View (Profile) for the account."
},
"redirectUri":{
"type":"string",
"description":"Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL."
},
"webproperty":{
"$ref":"Webproperty",
"description":"Web property for the account."
}
}
},
"Accounts":{
"id":"Accounts",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of accounts.",
"items":{
"$ref":"Account"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#accounts"
},
"nextLink":{
"type":"string",
"description":"Next link for this account collection."
},
"previousLink":{
"type":"string",
"description":"Previous link for this account collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"AdWordsAccount":{
"id":"AdWordsAccount",
"type":"object",
"description":"JSON template for an AdWords account.",
"properties":{
"autoTaggingEnabled":{
"type":"boolean",
"description":"True if auto-tagging is enabled on the AdWords account. Read-only after the insert operation."
},
"customerId":{
"type":"string",
"description":"Customer ID. This field is required when creating an AdWords link.",
"description":"Web property ID of the form UA-XXXXX-YY to which this custom data source belongs."
}
}
},
"CustomDataSources":{
"id":"CustomDataSources",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"Collection of custom data sources.",
"items":{
"$ref":"CustomDataSource"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#customDataSources"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this custom data source collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this custom data source collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"CustomDimension":{
"id":"CustomDimension",
"type":"object",
"description":"JSON template for Analytics Custom Dimension.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID."
},
"active":{
"type":"boolean",
"description":"Boolean indicating whether the custom dimension is active."
},
"created":{
"type":"string",
"description":"Time the custom dimension was created.",
"format":"date-time",
"readOnly":true
},
"id":{
"type":"string",
"description":"Custom dimension ID."
},
"index":{
"type":"integer",
"description":"Index of the custom dimension.",
"format":"int32",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Kind value for a custom dimension. Set to \"analytics#customDimension\". It is a read-only field.",
"default":"analytics#customDimension",
"readOnly":true
},
"name":{
"type":"string",
"description":"Name of the custom dimension."
},
"parentLink":{
"type":"object",
"description":"Parent link for the custom dimension. Points to the property to which the custom dimension belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the property to which the custom dimension belongs."
},
"type":{
"type":"string",
"description":"Type of the parent link. Set to \"analytics#webproperty\".",
"default":"analytics#webproperty"
}
}
},
"scope":{
"type":"string",
"description":"Scope of the custom dimension: HIT, SESSION, USER or PRODUCT."
},
"selfLink":{
"type":"string",
"description":"Link for the custom dimension",
"readOnly":true
},
"updated":{
"type":"string",
"description":"Time the custom dimension was last modified.",
"format":"date-time",
"readOnly":true
},
"webPropertyId":{
"type":"string",
"description":"Property ID."
}
}
},
"CustomDimensions":{
"id":"CustomDimensions",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"Collection of custom dimensions.",
"items":{
"$ref":"CustomDimension"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#customDimensions"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this custom dimension collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this custom dimension collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"CustomMetric":{
"id":"CustomMetric",
"type":"object",
"description":"JSON template for Analytics Custom Metric.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID."
},
"active":{
"type":"boolean",
"description":"Boolean indicating whether the custom metric is active."
},
"created":{
"type":"string",
"description":"Time the custom metric was created.",
"format":"date-time",
"readOnly":true
},
"id":{
"type":"string",
"description":"Custom metric ID."
},
"index":{
"type":"integer",
"description":"Index of the custom metric.",
"format":"int32",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Kind value for a custom metric. Set to \"analytics#customMetric\". It is a read-only field.",
"default":"analytics#customMetric",
"readOnly":true
},
"max_value":{
"type":"string",
"description":"Max value of custom metric."
},
"min_value":{
"type":"string",
"description":"Min value of custom metric."
},
"name":{
"type":"string",
"description":"Name of the custom metric."
},
"parentLink":{
"type":"object",
"description":"Parent link for the custom metric. Points to the property to which the custom metric belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the property to which the custom metric belongs."
},
"type":{
"type":"string",
"description":"Type of the parent link. Set to \"analytics#webproperty\".",
"default":"analytics#webproperty"
}
}
},
"scope":{
"type":"string",
"description":"Scope of the custom metric: HIT or PRODUCT."
},
"selfLink":{
"type":"string",
"description":"Link for the custom metric",
"readOnly":true
},
"type":{
"type":"string",
"description":"Data type of custom metric."
},
"updated":{
"type":"string",
"description":"Time the custom metric was last modified.",
"format":"date-time",
"readOnly":true
},
"webPropertyId":{
"type":"string",
"description":"Property ID."
}
}
},
"CustomMetrics":{
"id":"CustomMetrics",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"Collection of custom metrics.",
"items":{
"$ref":"CustomMetric"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#customMetrics"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this custom metric collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this custom metric collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"EntityAdWordsLink":{
"id":"EntityAdWordsLink",
"type":"object",
"description":"JSON template for Analytics Entity AdWords Link.",
"properties":{
"adWordsAccounts":{
"type":"array",
"description":"A list of AdWords client accounts. These cannot be MCC accounts. This field is required when creating an AdWords link. It cannot be empty.",
"description":"IDs of linked Views (Profiles) represented as strings.",
"items":{
"type":"string"
}
},
"selfLink":{
"type":"string",
"description":"URL link for this Google Analytics - Google AdWords link."
}
}
},
"EntityAdWordsLinks":{
"id":"EntityAdWordsLinks",
"type":"object",
"description":"An entity AdWords link collection provides a list of GA-AdWords links Each resource in this collection corresponds to a single link.",
"properties":{
"items":{
"type":"array",
"description":"A list of entity AdWords links.",
"items":{
"$ref":"EntityAdWordsLink"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#entityAdWordsLinks"
},
"nextLink":{
"type":"string",
"description":"Next link for this AdWords link collection."
},
"previousLink":{
"type":"string",
"description":"Previous link for this AdWords link collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
}
}
},
"EntityUserLink":{
"id":"EntityUserLink",
"type":"object",
"description":"JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.",
"properties":{
"entity":{
"type":"object",
"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."
}
}
},
"id":{
"type":"string",
"description":"Entity user link ID"
},
"kind":{
"type":"string",
"description":"Resource type for entity user link.",
"default":"analytics#entityUserLink"
},
"permissions":{
"type":"object",
"description":"Permissions the user has for this entity.",
"properties":{
"effective":{
"type":"array",
"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.",
"readOnly":true,
"items":{
"type":"string"
}
},
"local":{
"type":"array",
"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"
}
}
}
},
"selfLink":{
"type":"string",
"description":"Self link for this resource."
},
"userRef":{
"$ref":"UserRef",
"description":"User reference."
}
}
},
"EntityUserLinks":{
"id":"EntityUserLinks",
"type":"object",
"description":"An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.",
"properties":{
"items":{
"type":"array",
"description":"A list of entity user links.",
"items":{
"$ref":"EntityUserLink"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#entityUserLinks"
},
"nextLink":{
"type":"string",
"description":"Next link for this account collection."
},
"previousLink":{
"type":"string",
"description":"Previous link for this account collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
}
}
},
"Experiment":{
"id":"Experiment",
"type":"object",
"description":"JSON template for Analytics experiment resource.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this experiment belongs. This field is read-only."
},
"created":{
"type":"string",
"description":"Time the experiment was created. This field is read-only.",
"format":"date-time"
},
"description":{
"type":"string",
"description":"Notes about this experiment."
},
"editableInGaUi":{
"type":"boolean",
"description":"If true, the end user will be able to edit the experiment via the Google Analytics user interface."
},
"endTime":{
"type":"string",
"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"
},
"equalWeighting":{
"type":"boolean",
"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."
},
"id":{
"type":"string",
"description":"Experiment ID. Required for patch and update. Disallowed for create.",
"annotations":{
"required":[
"analytics.management.experiments.patch",
"analytics.management.experiments.update"
]
}
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this experiment belongs. This field is read-only."
},
"kind":{
"type":"string",
"description":"Resource type for an Analytics experiment. This field is read-only.",
"default":"analytics#experiment"
},
"minimumExperimentLengthInDays":{
"type":"integer",
"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"
},
"name":{
"type":"string",
"description":"Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.",
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
}
},
"objectiveMetric":{
"type":"string",
"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\"."
},
"optimizationType":{
"type":"string",
"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\"."
},
"parentLink":{
"type":"object",
"description":"Parent link for an experiment. Points to the view (profile) to which this experiment belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the view (profile) to which this experiment belongs. This field is read-only."
},
"type":{
"type":"string",
"description":"Value is \"analytics#profile\". This field is read-only.",
"default":"analytics#profile"
}
}
},
"profileId":{
"type":"string",
"description":"View (Profile) ID to which this experiment belongs. This field is read-only."
},
"reasonExperimentEnded":{
"type":"string",
"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."
},
"rewriteVariationUrlsAsOriginal":{
"type":"boolean",
"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."
},
"selfLink":{
"type":"string",
"description":"Link for this experiment. This field is read-only."
},
"servingFramework":{
"type":"string",
"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."
},
"snippet":{
"type":"string",
"description":"The snippet of code to include on the control page(s). This field is read-only."
},
"startTime":{
"type":"string",
"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"
},
"status":{
"type":"string",
"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.",
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
}
},
"trafficCoverage":{
"type":"number",
"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"
},
"updated":{
"type":"string",
"description":"Time the experiment was last modified. This field is read-only.",
"format":"date-time"
},
"variations":{
"type":"array",
"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":{
"type":"object",
"properties":{
"name":{
"type":"string",
"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.",
"annotations":{
"required":[
"analytics.management.experiments.insert",
"analytics.management.experiments.update"
]
}
},
"status":{
"type":"string",
"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."
},
"url":{
"type":"string",
"description":"The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED."
},
"weight":{
"type":"number",
"description":"Weight that this variation should receive. Only present if the experiment is running. This field is read-only.",
"format":"double"
},
"won":{
"type":"boolean",
"description":"True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only."
}
}
}
},
"webPropertyId":{
"type":"string",
"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."
},
"winnerConfidenceLevel":{
"type":"number",
"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"
},
"winnerFound":{
"type":"boolean",
"description":"Boolean specifying whether a winner has been found for this experiment. This field is read-only."
}
}
},
"Experiments":{
"id":"Experiments",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of experiments.",
"items":{
"$ref":"Experiment"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#experiments"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this experiment collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this experiment collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"Filter":{
"id":"Filter",
"type":"object",
"description":"JSON template for an Analytics account filter.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this filter belongs."
},
"advancedDetails":{
"type":"object",
"description":"Details for the filter of the type ADVANCED.",
"properties":{
"caseSensitive":{
"type":"boolean",
"description":"Indicates if the filter expressions are case sensitive."
},
"extractA":{
"type":"string",
"description":"Expression to extract from field A."
},
"extractB":{
"type":"string",
"description":"Expression to extract from field B."
},
"fieldA":{
"type":"string",
"description":"Field A."
},
"fieldAIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
},
"fieldARequired":{
"type":"boolean",
"description":"Indicates if field A is required to match."
},
"fieldB":{
"type":"string",
"description":"Field B."
},
"fieldBIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
},
"fieldBRequired":{
"type":"boolean",
"description":"Indicates if field B is required to match."
},
"outputConstructor":{
"type":"string",
"description":"Expression used to construct the output value."
},
"outputToField":{
"type":"string",
"description":"Output field."
},
"outputToFieldIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
},
"overrideOutputField":{
"type":"boolean",
"description":"Indicates if the existing value of the output field, if any, should be overridden by the output expression."
}
}
},
"created":{
"type":"string",
"description":"Time this filter was created.",
"format":"date-time",
"readOnly":true
},
"excludeDetails":{
"$ref":"FilterExpression",
"description":"Details for the filter of the type EXCLUDE."
},
"id":{
"type":"string",
"description":"Filter ID."
},
"includeDetails":{
"$ref":"FilterExpression",
"description":"Details for the filter of the type INCLUDE."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics filter.",
"default":"analytics#filter",
"readOnly":true
},
"lowercaseDetails":{
"type":"object",
"description":"Details for the filter of the type LOWER.",
"properties":{
"field":{
"type":"string",
"description":"Field to use in the filter."
},
"fieldIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
}
}
},
"name":{
"type":"string",
"description":"Name of this filter.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.filters.update"
]
}
},
"parentLink":{
"type":"object",
"description":"Parent link for this filter. Points to the account to which this filter belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the account to which this filter belongs."
},
"type":{
"type":"string",
"description":"Value is \"analytics#account\".",
"default":"analytics#account"
}
}
},
"searchAndReplaceDetails":{
"type":"object",
"description":"Details for the filter of the type SEARCH_AND_REPLACE.",
"properties":{
"caseSensitive":{
"type":"boolean",
"description":"Determines if the filter is case sensitive."
},
"field":{
"type":"string",
"description":"Field to use in the filter."
},
"fieldIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
},
"replaceString":{
"type":"string",
"description":"Term to replace the search term with."
},
"searchString":{
"type":"string",
"description":"Term to search."
}
}
},
"selfLink":{
"type":"string",
"description":"Link for this filter.",
"readOnly":true
},
"type":{
"type":"string",
"description":"Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.filters.update"
]
}
},
"updated":{
"type":"string",
"description":"Time this filter was last modified.",
"format":"date-time",
"readOnly":true
},
"uppercaseDetails":{
"type":"object",
"description":"Details for the filter of the type UPPER.",
"properties":{
"field":{
"type":"string",
"description":"Field to use in the filter."
},
"fieldIndex":{
"type":"integer",
"description":"The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.",
"format":"int32"
}
}
}
}
},
"FilterExpression":{
"id":"FilterExpression",
"type":"object",
"description":"JSON template for an Analytics filter expression.",
"properties":{
"caseSensitive":{
"type":"boolean",
"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"
},
"kind":{
"type":"string",
"description":"Kind value for filter expression",
"default":"analytics#filterExpression"
},
"matchType":{
"type":"string",
"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."
}
}
},
"FilterRef":{
"id":"FilterRef",
"type":"object",
"description":"JSON template for a profile filter link.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this filter belongs.",
"readOnly":true
},
"href":{
"type":"string",
"description":"Link for this filter."
},
"id":{
"type":"string",
"description":"Filter ID.",
"annotations":{
"required":[
"analytics.management.profileFilterLinks.insert"
]
}
},
"kind":{
"type":"string",
"description":"Kind value for filter reference.",
"default":"analytics#filterRef"
},
"name":{
"type":"string",
"description":"Name of this filter.",
"readOnly":true
}
}
},
"Filters":{
"id":"Filters",
"type":"object",
"description":"A filter collection lists filters created by users in an Analytics account. Each resource in the collection corresponds to a filter.",
"properties":{
"items":{
"type":"array",
"description":"A list of filters.",
"items":{
"$ref":"Filter"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#filters"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this filter collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this filter collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"GaData":{
"id":"GaData",
"type":"object",
"description":"Analytics data for a given view (profile).",
"properties":{
"columnHeaders":{
"type":"array",
"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":{
"type":"object",
"properties":{
"columnType":{
"type":"string",
"description":"Column Type. Either DIMENSION or METRIC."
},
"dataType":{
"type":"string",
"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."
},
"name":{
"type":"string",
"description":"Column name."
}
}
}
},
"containsSampledData":{
"type":"boolean",
"description":"Determines if Analytics data contains samples."
},
"dataLastRefreshed":{
"type":"string",
"description":"The last refreshed time in seconds for Analytics data.",
"format":"int64"
},
"dataTable":{
"type":"object",
"properties":{
"cols":{
"type":"array",
"items":{
"type":"object",
"properties":{
"id":{
"type":"string"
},
"label":{
"type":"string"
},
"type":{
"type":"string"
}
}
}
},
"rows":{
"type":"array",
"items":{
"type":"object",
"properties":{
"c":{
"type":"array",
"items":{
"type":"object",
"properties":{
"v":{
"type":"string"
}
}
}
}
}
}
}
}
},
"id":{
"type":"string",
"description":"Unique ID for this data response."
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Resource type.",
"default":"analytics#gaData"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this Analytics data query."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this Analytics data query."
},
"profileInfo":{
"type":"object",
"description":"Information for the view (profile), for which the Analytics data was requested.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this view (profile) belongs."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this view (profile) belongs."
},
"profileId":{
"type":"string",
"description":"View (Profile) ID."
},
"profileName":{
"type":"string",
"description":"View (Profile) name."
},
"tableId":{
"type":"string",
"description":"Table ID for view (profile)."
},
"webPropertyId":{
"type":"string",
"description":"Web Property ID to which this view (profile) belongs."
}
}
},
"query":{
"type":"object",
"description":"Analytics data request query parameters.",
"properties":{
"dimensions":{
"type":"string",
"description":"List of analytics dimensions."
},
"end-date":{
"type":"string",
"description":"End date."
},
"filters":{
"type":"string",
"description":"Comma-separated list of dimension or metric filters."
},
"ids":{
"type":"string",
"description":"Unique table ID."
},
"max-results":{
"type":"integer",
"description":"Maximum results per page.",
"format":"int32"
},
"metrics":{
"type":"array",
"description":"List of analytics metrics.",
"items":{
"type":"string"
}
},
"samplingLevel":{
"type":"string",
"description":"Desired sampling level"
},
"segment":{
"type":"string",
"description":"Analytics advanced segment."
},
"sort":{
"type":"array",
"description":"List of dimensions or metrics based on which Analytics data is sorted.",
"items":{
"type":"string"
}
},
"start-date":{
"type":"string",
"description":"Start date."
},
"start-index":{
"type":"integer",
"description":"Start index.",
"format":"int32"
}
}
},
"rows":{
"type":"array",
"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":{
"type":"array",
"items":{
"type":"string"
}
}
},
"sampleSize":{
"type":"string",
"description":"The number of samples used to calculate the result.",
"format":"int64"
},
"sampleSpace":{
"type":"string",
"description":"Total size of the sample space from which the samples were selected.",
"format":"int64"
},
"selfLink":{
"type":"string",
"description":"Link to this page."
},
"totalResults":{
"type":"integer",
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32"
},
"totalsForAllResults":{
"type":"object",
"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.",
"additionalProperties":{
"type":"string",
"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."
}
}
}
},
"Goal":{
"id":"Goal",
"type":"object",
"description":"JSON template for Analytics goal resource.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this goal belongs."
},
"active":{
"type":"boolean",
"description":"Determines whether this goal is active."
},
"created":{
"type":"string",
"description":"Time this goal was created.",
"format":"date-time"
},
"eventDetails":{
"type":"object",
"description":"Details for the goal of the type EVENT.",
"properties":{
"eventConditions":{
"type":"array",
"description":"List of event conditions.",
"items":{
"type":"object",
"properties":{
"comparisonType":{
"type":"string",
"description":"Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL."
},
"comparisonValue":{
"type":"string",
"description":"Value used for this comparison.",
"format":"int64"
},
"expression":{
"type":"string",
"description":"Expression used for this match."
},
"matchType":{
"type":"string",
"description":"Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT."
},
"type":{
"type":"string",
"description":"Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE."
}
}
}
},
"useEventValue":{
"type":"boolean",
"description":"Determines if the event value should be used as the value for this goal."
}
}
},
"id":{
"type":"string",
"description":"Goal ID."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this goal belongs."
},
"kind":{
"type":"string",
"description":"Resource type for an Analytics goal.",
"default":"analytics#goal"
},
"name":{
"type":"string",
"description":"Goal name."
},
"parentLink":{
"type":"object",
"description":"Parent link for a goal. Points to the view (profile) to which this goal belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the view (profile) to which this goal belongs."
},
"type":{
"type":"string",
"description":"Value is \"analytics#profile\".",
"default":"analytics#profile"
}
}
},
"profileId":{
"type":"string",
"description":"View (Profile) ID to which this goal belongs."
},
"selfLink":{
"type":"string",
"description":"Link for this goal."
},
"type":{
"type":"string",
"description":"Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT."
},
"updated":{
"type":"string",
"description":"Time this goal was last modified.",
"format":"date-time"
},
"urlDestinationDetails":{
"type":"object",
"description":"Details for the goal of the type URL_DESTINATION.",
"properties":{
"caseSensitive":{
"type":"boolean",
"description":"Determines if the goal URL must exactly match the capitalization of visited URLs."
},
"firstStepRequired":{
"type":"boolean",
"description":"Determines if the first step in this goal is required."
},
"matchType":{
"type":"string",
"description":"Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX."
},
"steps":{
"type":"array",
"description":"List of steps configured for this goal funnel.",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string",
"description":"Step name."
},
"number":{
"type":"integer",
"description":"Step number.",
"format":"int32"
},
"url":{
"type":"string",
"description":"URL for this step."
}
}
}
},
"url":{
"type":"string",
"description":"URL for this goal."
}
}
},
"value":{
"type":"number",
"description":"Goal value.",
"format":"float"
},
"visitNumPagesDetails":{
"type":"object",
"description":"Details for the goal of the type VISIT_NUM_PAGES.",
"properties":{
"comparisonType":{
"type":"string",
"description":"Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL."
},
"comparisonValue":{
"type":"string",
"description":"Value used for this comparison.",
"format":"int64"
}
}
},
"visitTimeOnSiteDetails":{
"type":"object",
"description":"Details for the goal of the type VISIT_TIME_ON_SITE.",
"properties":{
"comparisonType":{
"type":"string",
"description":"Type of comparison. Possible values are LESS_THAN or GREATER_THAN."
},
"comparisonValue":{
"type":"string",
"description":"Value used for this comparison.",
"format":"int64"
}
}
},
"webPropertyId":{
"type":"string",
"description":"Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY."
}
}
},
"Goals":{
"id":"Goals",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of goals.",
"items":{
"$ref":"Goal"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#goals"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this goal collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this goal collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"IncludeConditions":{
"id":"IncludeConditions",
"type":"object",
"description":"JSON template for an Analytics Remarketing Include Conditions.",
"properties":{
"daysToLookBack":{
"type":"integer",
"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"
},
"isSmartList":{
"type":"boolean",
"description":"Boolean indicating whether this segment is a smart list. https://support.google.com/analytics/answer/4628577"
},
"kind":{
"type":"string",
"description":"Resource type for include conditions.",
"default":"analytics#includeConditions"
},
"membershipDurationDays":{
"type":"integer",
"description":"Number of days (in the range 1 to 540) a user remains in the audience.",
"format":"int32"
},
"segment":{
"type":"string",
"description":"The segment condition that will cause a user to be added to an audience."
}
}
},
"LinkedForeignAccount":{
"id":"LinkedForeignAccount",
"type":"object",
"description":"JSON template for an Analytics Remarketing Audience Foreign Link.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this linked foreign account belongs."
},
"eligibleForSearch":{
"type":"boolean",
"description":"Boolean indicating whether this is eligible for search.",
"readOnly":true
},
"id":{
"type":"string",
"description":"Entity ad account link ID."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this linked foreign account belongs.",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Resource type for linked foreign account.",
"default":"analytics#linkedForeignAccount"
},
"linkedAccountId":{
"type":"string",
"description":"The foreign account ID. For example the an AdWords `linkedAccountId` has the following format XXX-XXX-XXXX."
},
"remarketingAudienceId":{
"type":"string",
"description":"Remarketing audience ID to which this linked foreign account belongs."
},
"status":{
"type":"string",
"description":"The status of this foreign account link."
},
"type":{
"type":"string",
"description":"The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`."
},
"webPropertyId":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY to which this linked foreign account belongs."
}
}
},
"McfData":{
"id":"McfData",
"type":"object",
"description":"Multi-Channel Funnels data for a given view (profile).",
"properties":{
"columnHeaders":{
"type":"array",
"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":{
"type":"object",
"properties":{
"columnType":{
"type":"string",
"description":"Column Type. Either DIMENSION or METRIC."
},
"dataType":{
"type":"string",
"description":"Data type. Dimension and metric values data types such as INTEGER, DOUBLE, CURRENCY, MCF_SEQUENCE etc."
},
"name":{
"type":"string",
"description":"Column name."
}
}
}
},
"containsSampledData":{
"type":"boolean",
"description":"Determines if the Analytics data contains sampled data."
},
"id":{
"type":"string",
"description":"Unique ID for this data response."
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Resource type.",
"default":"analytics#mcfData"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this Analytics data query."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this Analytics data query."
},
"profileInfo":{
"type":"object",
"description":"Information for the view (profile), for which the Analytics data was requested.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this view (profile) belongs."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this view (profile) belongs."
},
"profileId":{
"type":"string",
"description":"View (Profile) ID."
},
"profileName":{
"type":"string",
"description":"View (Profile) name."
},
"tableId":{
"type":"string",
"description":"Table ID for view (profile)."
},
"webPropertyId":{
"type":"string",
"description":"Web Property ID to which this view (profile) belongs."
}
}
},
"query":{
"type":"object",
"description":"Analytics data request query parameters.",
"properties":{
"dimensions":{
"type":"string",
"description":"List of analytics dimensions."
},
"end-date":{
"type":"string",
"description":"End date."
},
"filters":{
"type":"string",
"description":"Comma-separated list of dimension or metric filters."
},
"ids":{
"type":"string",
"description":"Unique table ID."
},
"max-results":{
"type":"integer",
"description":"Maximum results per page.",
"format":"int32"
},
"metrics":{
"type":"array",
"description":"List of analytics metrics.",
"items":{
"type":"string"
}
},
"samplingLevel":{
"type":"string",
"description":"Desired sampling level"
},
"segment":{
"type":"string",
"description":"Analytics advanced segment."
},
"sort":{
"type":"array",
"description":"List of dimensions or metrics based on which Analytics data is sorted.",
"items":{
"type":"string"
}
},
"start-date":{
"type":"string",
"description":"Start date."
},
"start-index":{
"type":"integer",
"description":"Start index.",
"format":"int32"
}
}
},
"rows":{
"type":"array",
"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":{
"type":"array",
"items":{
"type":"object",
"description":"A union object representing a dimension or metric value. Only one of \"primitiveValue\" or \"conversionPathValue\" attribute will be populated.",
"properties":{
"conversionPathValue":{
"type":"array",
"description":"A conversion path dimension value, containing a list of interactions with their attributes.",
"items":{
"type":"object",
"properties":{
"interactionType":{
"type":"string",
"description":"Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc."
},
"nodeValue":{
"type":"string",
"description":"Node value of an interaction on conversion path. Such as source, medium etc."
}
}
}
},
"primitiveValue":{
"type":"string",
"description":"A primitive dimension value. A primitive metric value."
}
}
}
}
},
"sampleSize":{
"type":"string",
"description":"The number of samples used to calculate the result.",
"format":"int64"
},
"sampleSpace":{
"type":"string",
"description":"Total size of the sample space from which the samples were selected.",
"format":"int64"
},
"selfLink":{
"type":"string",
"description":"Link to this page."
},
"totalResults":{
"type":"integer",
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32"
},
"totalsForAllResults":{
"type":"object",
"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.",
"additionalProperties":{
"type":"string",
"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."
}
}
}
},
"Profile":{
"id":"Profile",
"type":"object",
"description":"JSON template for an Analytics view (profile).",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this view (profile) belongs."
},
"botFilteringEnabled":{
"type":"boolean",
"description":"Indicates whether bot filtering is enabled for this view (profile)."
},
"childLink":{
"type":"object",
"description":"Child link for this view (profile). Points to the list of goals for this view (profile).",
"properties":{
"href":{
"type":"string",
"description":"Link to the list of goals for this view (profile)."
},
"type":{
"type":"string",
"description":"Value is \"analytics#goals\".",
"default":"analytics#goals"
}
}
},
"created":{
"type":"string",
"description":"Time this view (profile) was created.",
"description":"Default page for this view (profile)."
},
"eCommerceTracking":{
"type":"boolean",
"description":"Indicates whether ecommerce tracking is enabled for this view (profile)."
},
"enhancedECommerceTracking":{
"type":"boolean",
"description":"Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled."
},
"excludeQueryParameters":{
"type":"string",
"description":"The query parameters that are excluded from this view (profile)."
},
"id":{
"type":"string",
"description":"View (Profile) ID."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this view (profile) belongs.",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Resource type for Analytics view (profile).",
"default":"analytics#profile",
"readOnly":true
},
"name":{
"type":"string",
"description":"Name of this view (profile)."
},
"parentLink":{
"type":"object",
"description":"Parent link for this view (profile). Points to the web property to which this view (profile) belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the web property to which this view (profile) belongs."
},
"type":{
"type":"string",
"description":"Value is \"analytics#webproperty\".",
"default":"analytics#webproperty"
}
}
},
"permissions":{
"type":"object",
"description":"Permissions the user has for this view (profile).",
"properties":{
"effective":{
"type":"array",
"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.",
"readOnly":true,
"items":{
"type":"string"
}
}
}
},
"selfLink":{
"type":"string",
"description":"Link for this view (profile).",
"readOnly":true
},
"siteSearchCategoryParameters":{
"type":"string",
"description":"Site search category parameters for this view (profile)."
},
"siteSearchQueryParameters":{
"type":"string",
"description":"The site search query parameters for this view (profile)."
},
"starred":{
"type":"boolean",
"description":"Indicates whether this view (profile) is starred or not."
},
"stripSiteSearchCategoryParameters":{
"type":"boolean",
"description":"Whether or not Analytics will strip search category parameters from the URLs in your reports."
},
"stripSiteSearchQueryParameters":{
"type":"boolean",
"description":"Whether or not Analytics will strip search query parameters from the URLs in your reports."
},
"timezone":{
"type":"string",
"description":"Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database."
},
"type":{
"type":"string",
"description":"View (Profile) type. Supported types: WEB or APP."
},
"updated":{
"type":"string",
"description":"Time this view (profile) was last modified.",
"format":"date-time",
"readOnly":true
},
"webPropertyId":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.",
"readOnly":true
},
"websiteUrl":{
"type":"string",
"description":"Website URL for this view (profile)."
}
}
},
"ProfileFilterLink":{
"id":"ProfileFilterLink",
"type":"object",
"description":"JSON template for an Analytics profile filter link.",
"properties":{
"filterRef":{
"$ref":"FilterRef",
"description":"Filter for this link."
},
"id":{
"type":"string",
"description":"Profile filter link ID."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics filter.",
"default":"analytics#profileFilterLink",
"readOnly":true
},
"profileRef":{
"$ref":"ProfileRef",
"description":"View (Profile) for this link."
},
"rank":{
"type":"integer",
"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"
},
"selfLink":{
"type":"string",
"description":"Link for this profile filter link.",
"readOnly":true
}
}
},
"ProfileFilterLinks":{
"id":"ProfileFilterLinks",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of profile filter links.",
"items":{
"$ref":"ProfileFilterLink"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#profileFilterLinks"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this profile filter link collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this profile filter link collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"ProfileRef":{
"id":"ProfileRef",
"type":"object",
"description":"JSON template for a linked view (profile).",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this view (profile) belongs."
},
"href":{
"type":"string",
"description":"Link for this view (profile)."
},
"id":{
"type":"string",
"description":"View (Profile) ID."
},
"internalWebPropertyId":{
"type":"string",
"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."
}
}
},
"ProfileSummary":{
"id":"ProfileSummary",
"type":"object",
"description":"JSON template for an Analytics ProfileSummary. ProfileSummary returns basic information (i.e., summary) for a profile.",
"properties":{
"id":{
"type":"string",
"description":"View (profile) ID."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics ProfileSummary.",
"default":"analytics#profileSummary"
},
"name":{
"type":"string",
"description":"View (profile) name."
},
"starred":{
"type":"boolean",
"description":"Indicates whether this view (profile) is starred or not."
},
"type":{
"type":"string",
"description":"View (Profile) type. Supported types: WEB or APP."
}
}
},
"Profiles":{
"id":"Profiles",
"type":"object",
"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).",
"properties":{
"items":{
"type":"array",
"description":"A list of views (profiles).",
"items":{
"$ref":"Profile"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#profiles"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this view (profile) collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this view (profile) collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"RealtimeData":{
"id":"RealtimeData",
"type":"object",
"description":"Real time data for a given view (profile).",
"properties":{
"columnHeaders":{
"type":"array",
"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":{
"type":"object",
"properties":{
"columnType":{
"type":"string",
"description":"Column Type. Either DIMENSION or METRIC."
},
"dataType":{
"type":"string",
"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."
},
"name":{
"type":"string",
"description":"Column name."
}
}
}
},
"id":{
"type":"string",
"description":"Unique ID for this data response."
},
"kind":{
"type":"string",
"description":"Resource type.",
"default":"analytics#realtimeData"
},
"profileInfo":{
"type":"object",
"description":"Information for the view (profile), for which the real time data was requested.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this view (profile) belongs."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this view (profile) belongs."
},
"profileId":{
"type":"string",
"description":"View (Profile) ID."
},
"profileName":{
"type":"string",
"description":"View (Profile) name."
},
"tableId":{
"type":"string",
"description":"Table ID for view (profile)."
},
"webPropertyId":{
"type":"string",
"description":"Web Property ID to which this view (profile) belongs."
}
}
},
"query":{
"type":"object",
"description":"Real time data request query parameters.",
"properties":{
"dimensions":{
"type":"string",
"description":"List of real time dimensions."
},
"filters":{
"type":"string",
"description":"Comma-separated list of dimension or metric filters."
},
"ids":{
"type":"string",
"description":"Unique table ID."
},
"max-results":{
"type":"integer",
"description":"Maximum results per page.",
"format":"int32"
},
"metrics":{
"type":"array",
"description":"List of real time metrics.",
"items":{
"type":"string"
}
},
"sort":{
"type":"array",
"description":"List of dimensions or metrics based on which real time data is sorted.",
"items":{
"type":"string"
}
}
}
},
"rows":{
"type":"array",
"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":{
"type":"array",
"items":{
"type":"string"
}
}
},
"selfLink":{
"type":"string",
"description":"Link to this page."
},
"totalResults":{
"type":"integer",
"description":"The total number of rows for the query, regardless of the number of rows in the response.",
"format":"int32"
},
"totalsForAllResults":{
"type":"object",
"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.",
"additionalProperties":{
"type":"string",
"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."
}
}
}
},
"RemarketingAudience":{
"id":"RemarketingAudience",
"type":"object",
"description":"JSON template for an Analytics remarketing audience.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this remarketing audience belongs."
},
"audienceDefinition":{
"type":"object",
"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."
}
}
},
"audienceType":{
"type":"string",
"description":"The type of audience, either SIMPLE or STATE_BASED."
},
"created":{
"type":"string",
"description":"Time this remarketing audience was created.",
"format":"date-time",
"readOnly":true
},
"description":{
"type":"string",
"description":"The description of this remarketing audience.",
"readOnly":true
},
"id":{
"type":"string",
"description":"Remarketing Audience ID."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for the web property to which this remarketing audience belongs.",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#remarketingAudience"
},
"linkedAdAccounts":{
"type":"array",
"description":"The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently.",
"items":{
"$ref":"LinkedForeignAccount"
}
},
"linkedViews":{
"type":"array",
"description":"The views (profiles) that this remarketing audience is linked to.",
"items":{
"type":"string"
}
},
"name":{
"type":"string",
"description":"The name of this remarketing audience."
},
"stateBasedAudienceDefinition":{
"type":"object",
"description":"A state based audience definition that will cause a user to be added or removed from an audience.",
"properties":{
"excludeConditions":{
"type":"object",
"description":"Defines the conditions to exclude users from the audience.",
"properties":{
"exclusionDuration":{
"type":"string",
"description":"Whether to make the exclusion TEMPORARY or PERMANENT."
},
"segment":{
"type":"string",
"description":"The segment condition that will cause a user to be removed from an audience."
}
}
},
"includeConditions":{
"$ref":"IncludeConditions",
"description":"Defines the conditions to include users to the audience."
}
}
},
"updated":{
"type":"string",
"description":"Time this remarketing audience was last modified.",
"format":"date-time",
"readOnly":true
},
"webPropertyId":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs."
}
}
},
"RemarketingAudiences":{
"id":"RemarketingAudiences",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of remarketing audiences.",
"items":{
"$ref":"RemarketingAudience"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#remarketingAudiences"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this remarketing audience collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this view (profile) collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"Segment":{
"id":"Segment",
"type":"object",
"description":"JSON template for an Analytics segment.",
"properties":{
"created":{
"type":"string",
"description":"Time the segment was created.",
"format":"date-time"
},
"definition":{
"type":"string",
"description":"Segment definition."
},
"id":{
"type":"string",
"description":"Segment ID."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics segment.",
"default":"analytics#segment"
},
"name":{
"type":"string",
"description":"Segment name."
},
"segmentId":{
"type":"string",
"description":"Segment ID. Can be used with the 'segment' parameter in Core Reporting API."
},
"selfLink":{
"type":"string",
"description":"Link for this segment."
},
"type":{
"type":"string",
"description":"Type for a segment. Possible values are \"BUILT_IN\" or \"CUSTOM\"."
},
"updated":{
"type":"string",
"description":"Time the segment was last modified.",
"format":"date-time"
}
}
},
"Segments":{
"id":"Segments",
"type":"object",
"description":"An segment collection lists Analytics segments that the user has access to. Each resource in the collection corresponds to a single Analytics segment.",
"properties":{
"items":{
"type":"array",
"description":"A list of segments.",
"items":{
"$ref":"Segment"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type for segments.",
"default":"analytics#segments"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this segment collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this segment collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"UnsampledReport":{
"id":"UnsampledReport",
"type":"object",
"description":"JSON template for Analytics unsampled report resource.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this unsampled report belongs."
},
"cloudStorageDownloadDetails":{
"type":"object",
"description":"Download details for a file stored in Google Cloud Storage.",
"readOnly":true,
"properties":{
"bucketId":{
"type":"string",
"description":"Id of the bucket the file object is stored in."
},
"objectId":{
"type":"string",
"description":"Id of the file object containing the report data."
}
}
},
"created":{
"type":"string",
"description":"Time this unsampled report was created.",
"format":"date-time",
"readOnly":true
},
"dimensions":{
"type":"string",
"description":"The dimensions for the unsampled report."
},
"downloadType":{
"type":"string",
"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
},
"driveDownloadDetails":{
"type":"object",
"description":"Download details for a file stored in Google Drive.",
"readOnly":true,
"properties":{
"documentId":{
"type":"string",
"description":"Id of the document/file containing the report data."
}
}
},
"end-date":{
"type":"string",
"description":"The end date for the unsampled report.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
}
},
"filters":{
"type":"string",
"description":"The filters for the unsampled report."
},
"id":{
"type":"string",
"description":"Unsampled report ID."
},
"kind":{
"type":"string",
"description":"Resource type for an Analytics unsampled report.",
"default":"analytics#unsampledReport",
"readOnly":true
},
"metrics":{
"type":"string",
"description":"The metrics for the unsampled report.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
}
},
"profileId":{
"type":"string",
"description":"View (Profile) ID to which this unsampled report belongs."
},
"segment":{
"type":"string",
"description":"The segment for the unsampled report."
},
"selfLink":{
"type":"string",
"description":"Link for this unsampled report.",
"readOnly":true
},
"start-date":{
"type":"string",
"description":"The start date for the unsampled report.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
}
},
"status":{
"type":"string",
"description":"Status of this unsampled report. Possible values are PENDING, COMPLETED, or FAILED.",
"readOnly":true
},
"title":{
"type":"string",
"description":"Title of the unsampled report.",
"annotations":{
"required":[
"analytics.management.filters.insert",
"analytics.management.unsampledReports.insert"
]
}
},
"updated":{
"type":"string",
"description":"Time this unsampled report was last modified.",
"format":"date-time",
"readOnly":true
},
"webPropertyId":{
"type":"string",
"description":"Web property ID to which this unsampled report belongs. The web property ID is of the form UA-XXXXX-YY."
}
}
},
"UnsampledReports":{
"id":"UnsampledReports",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of unsampled reports.",
"items":{
"$ref":"UnsampledReport"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#unsampledReports"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this unsampled report collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this unsampled report collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"Upload":{
"id":"Upload",
"type":"object",
"description":"Metadata returned for an upload operation.",
"properties":{
"accountId":{
"type":"string",
"description":"Account Id to which this upload belongs.",
"format":"int64"
},
"customDataSourceId":{
"type":"string",
"description":"Custom data source Id to which this data import belongs."
},
"errors":{
"type":"array",
"description":"Data import errors collection.",
"items":{
"type":"string"
}
},
"id":{
"type":"string",
"description":"A unique ID for this upload."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics upload.",
"default":"analytics#upload"
},
"status":{
"type":"string",
"description":"Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED."
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of uploads.",
"items":{
"$ref":"Upload"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#uploads"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this upload collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this upload collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of resources in the result.",
"format":"int32"
}
}
},
"UserRef":{
"id":"UserRef",
"type":"object",
"description":"JSON template for a user reference.",
"properties":{
"email":{
"type":"string",
"description":"Email ID of this user."
},
"id":{
"type":"string",
"description":"User ID."
},
"kind":{
"type":"string",
"default":"analytics#userRef"
}
}
},
"WebPropertyRef":{
"id":"WebPropertyRef",
"type":"object",
"description":"JSON template for a web property reference.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this web property belongs."
},
"href":{
"type":"string",
"description":"Link for this web property."
},
"id":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for this web property."
},
"kind":{
"type":"string",
"description":"Analytics web property reference.",
"default":"analytics#webPropertyRef"
},
"name":{
"type":"string",
"description":"Name of this web property."
}
}
},
"WebPropertySummary":{
"id":"WebPropertySummary",
"type":"object",
"description":"JSON template for an Analytics WebPropertySummary. WebPropertySummary returns basic information (i.e., summary) for a web property.",
"properties":{
"id":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for this web property."
},
"kind":{
"type":"string",
"description":"Resource type for Analytics WebPropertySummary.",
"default":"analytics#webPropertySummary"
},
"level":{
"type":"string",
"description":"Level for this web property. Possible values are STANDARD or PREMIUM."
},
"name":{
"type":"string",
"description":"Web property name."
},
"profiles":{
"type":"array",
"description":"List of profiles under this web property.",
"items":{
"$ref":"ProfileSummary"
}
},
"starred":{
"type":"boolean",
"description":"Indicates whether this web property is starred or not."
},
"websiteUrl":{
"type":"string",
"description":"Website url for this web property."
}
}
},
"Webproperties":{
"id":"Webproperties",
"type":"object",
"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.",
"properties":{
"items":{
"type":"array",
"description":"A list of web properties.",
"items":{
"$ref":"Webproperty"
}
},
"itemsPerPage":{
"type":"integer",
"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"
},
"kind":{
"type":"string",
"description":"Collection type.",
"default":"analytics#webproperties"
},
"nextLink":{
"type":"string",
"description":"Link to next page for this web property collection."
},
"previousLink":{
"type":"string",
"description":"Link to previous page for this web property collection."
},
"startIndex":{
"type":"integer",
"description":"The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
"format":"int32"
},
"totalResults":{
"type":"integer",
"description":"The total number of results for the query, regardless of the number of results in the response.",
"format":"int32"
},
"username":{
"type":"string",
"description":"Email ID of the authenticated user"
}
}
},
"Webproperty":{
"id":"Webproperty",
"type":"object",
"description":"JSON template for an Analytics web property.",
"properties":{
"accountId":{
"type":"string",
"description":"Account ID to which this web property belongs."
},
"childLink":{
"type":"object",
"description":"Child link for this web property. Points to the list of views (profiles) for this web property.",
"properties":{
"href":{
"type":"string",
"description":"Link to the list of views (profiles) for this web property."
},
"type":{
"type":"string",
"description":"Type of the parent link. Its value is \"analytics#profiles\".",
"default":"analytics#profiles"
}
}
},
"created":{
"type":"string",
"description":"Time this web property was created.",
"format":"date-time",
"readOnly":true
},
"defaultProfileId":{
"type":"string",
"description":"Default view (profile) ID.",
"format":"int64"
},
"id":{
"type":"string",
"description":"Web property ID of the form UA-XXXXX-YY."
},
"industryVertical":{
"type":"string",
"description":"The industry vertical/category selected for this web property."
},
"internalWebPropertyId":{
"type":"string",
"description":"Internal ID for this web property.",
"readOnly":true
},
"kind":{
"type":"string",
"description":"Resource type for Analytics WebProperty.",
"default":"analytics#webproperty",
"readOnly":true
},
"level":{
"type":"string",
"description":"Level for this web property. Possible values are STANDARD or PREMIUM.",
"readOnly":true
},
"name":{
"type":"string",
"description":"Name of this web property."
},
"parentLink":{
"type":"object",
"description":"Parent link for this web property. Points to the account to which this web property belongs.",
"properties":{
"href":{
"type":"string",
"description":"Link to the account for this web property."
},
"type":{
"type":"string",
"description":"Type of the parent link. Its value is \"analytics#account\".",
"default":"analytics#account"
}
}
},
"permissions":{
"type":"object",
"description":"Permissions the user has for this web property.",
"properties":{
"effective":{
"type":"array",
"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.",
"readOnly":true,
"items":{
"type":"string"
}
}
}
},
"profileCount":{
"type":"integer",
"description":"View (Profile) count for this web property.",
"format":"int32",
"readOnly":true
},
"selfLink":{
"type":"string",
"description":"Link for this web property.",
"readOnly":true
},
"starred":{
"type":"boolean",
"description":"Indicates whether this web property is starred or not."
},
"updated":{
"type":"string",
"description":"Time this web property was last modified.",
"format":"date-time",
"readOnly":true
},
"websiteUrl":{
"type":"string",
"description":"Website url for this web property."
}
}
}
},
"resources":{
"data":{
"resources":{
"ga":{
"methods":{
"get":{
"id":"analytics.data.ga.get",
"path":"data/ga",
"httpMethod":"GET",
"description":"Returns Analytics data for a view (profile).",
"parameters":{
"dimensions":{
"type":"string",
"description":"A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.",
"pattern":"(ga:.+)?",
"location":"query"
},
"end-date":{
"type":"string",
"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.",
"pattern":"ga:.+",
"location":"query"
},
"ids":{
"type":"string",
"description":"Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
"required":true,
"pattern":"ga:[0-9]+",
"location":"query"
},
"include-empty-rows":{
"type":"boolean",
"description":"The response will include empty rows if this parameter is set to true, the default is true",
"location":"query"
},
"max-results":{
"type":"integer",
"description":"The maximum number of entries to include in this feed.",
"format":"int32",
"location":"query"
},
"metrics":{
"type":"string",
"description":"A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified.",
"required":true,
"pattern":"ga:.+",
"location":"query"
},
"output":{
"type":"string",
"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"
},
"samplingLevel":{
"type":"string",
"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"
},
"segment":{
"type":"string",
"description":"An Analytics segment to be applied to data.",
"location":"query"
},
"sort":{
"type":"string",
"description":"A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.",
"pattern":"(-)?ga:.+",
"location":"query"
},
"start-date":{
"type":"string",
"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).",
"parameters":{
"dimensions":{
"type":"string",
"description":"A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.",
"pattern":"(mcf:.+)?",
"location":"query"
},
"end-date":{
"type":"string",
"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.",
"pattern":"mcf:.+",
"location":"query"
},
"ids":{
"type":"string",
"description":"Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.",
"required":true,
"pattern":"ga:[0-9]+",
"location":"query"
},
"max-results":{
"type":"integer",
"description":"The maximum number of entries to include in this feed.",
"format":"int32",
"location":"query"
},
"metrics":{
"type":"string",
"description":"A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.",
"required":true,
"pattern":"mcf:.+",
"location":"query"
},
"samplingLevel":{
"type":"string",
"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"
},
"sort":{
"type":"string",
"description":"A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.",
"pattern":"(-)?mcf:.+",
"location":"query"
},
"start-date":{
"type":"string",
"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":"Lists account-user links for a given account.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID to retrieve the user links for.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of account-user links to include in this response.",
"format":"int32",
"location":"query"
},
"start-index":{
"type":"integer",
"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":"List custom data sources to which the user has access.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account Id for the custom data sources to retrieve.",
"required":true,
"pattern":"\\d+",
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of custom data sources to include in this response.",
"format":"int32",
"minimum":"1",
"location":"query"
},
"start-index":{
"type":"integer",
"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",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"description":"Web property Id for the custom data sources to retrieve.",
"description":"Lists goals to which the user has access.",
"parameters":{
"accountId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of goals to include in this response.",
"format":"int32",
"location":"query"
},
"profileId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"start-index":{
"type":"integer",
"description":"An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"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":"Lists all profile filter links for a profile.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID to retrieve profile filter links for.",
"required":true,
"pattern":"\\d+",
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of profile filter links to include in this response.",
"format":"int32",
"location":"query"
},
"profileId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"start-index":{
"type":"integer",
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"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":"Lists profile-user links for a given view (profile).",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID which the given view (profile) belongs to.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of profile-user links to include in this response.",
"format":"int32",
"location":"query"
},
"profileId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"start-index":{
"type":"integer",
"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",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"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.",
"parameters":{
"accountId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of views (profiles) to include in this response.",
"format":"int32",
"location":"query"
},
"start-index":{
"type":"integer",
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"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":"Lists unsampled reports to which the user has access.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not supported.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of unsampled reports to include in this response.",
"format":"int32",
"location":"query"
},
"profileId":{
"type":"string",
"description":"View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all is not supported.",
"required":true,
"location":"path"
},
"start-index":{
"type":"integer",
"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",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"description":"Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is not supported.",
"description":"Lists webProperty-AdWords links for a given web property.",
"parameters":{
"accountId":{
"type":"string",
"description":"ID of the account which the given web property belongs to.",
"required":true,
"pattern":"\\d+",
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of webProperty-AdWords links to include in this response.",
"format":"int32",
"location":"query"
},
"start-index":{
"type":"integer",
"description":"An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"format":"int32",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"description":"Web property ID to retrieve the AdWords links for.",
"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.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID to create the web property for.",
"description":"Lists web properties to which the user has access.",
"parameters":{
"accountId":{
"type":"string",
"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.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of web properties to include in this response.",
"format":"int32",
"location":"query"
},
"start-index":{
"type":"integer",
"description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
"description":"Lists webProperty-user links for a given web property.",
"parameters":{
"accountId":{
"type":"string",
"description":"Account ID which the given web property belongs to.",
"required":true,
"location":"path"
},
"max-results":{
"type":"integer",
"description":"The maximum number of webProperty-user Links to include in this response.",
"format":"int32",
"location":"query"
},
"start-index":{
"type":"integer",
"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",
"minimum":"1",
"location":"query"
},
"webPropertyId":{
"type":"string",
"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.",