Skip to content

Commit a362e49

Browse files
feat(analyticsdata): update the api
#### analyticsdata:v1beta The following keys were added: - schemas.ActiveMetricRestriction (Total Keys: 5) - schemas.MetricMetadata.properties.blockedReasons (Total Keys: 2) - schemas.ResponseMetaData.properties.emptyReason.type (Total Keys: 1) - schemas.ResponseMetaData.properties.schemaRestrictionResponse.$ref (Total Keys: 1) - schemas.SchemaRestrictionResponse (Total Keys: 4)
1 parent 8666e3e commit a362e49

File tree

2 files changed

+118
-1
lines changed

2 files changed

+118
-1
lines changed

docs/dyn/analyticsdata_v1beta.properties.html

+50
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,17 @@ <h3>Method Details</h3>
329329
&quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
330330
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property&#x27;s current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;. To learn more, see https://support.google.com/analytics/answer/9796179.
331331
&quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
332+
&quot;emptyReason&quot;: &quot;A String&quot;, # If empty reason is specified, the report is empty for this reason.
333+
&quot;schemaRestrictionResponse&quot;: { # The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). # Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
334+
&quot;activeMetricRestrictions&quot;: [ # All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user&#x27;s custom role disallows access to `REVENUE_DATA`.
335+
{ # A metric actively restricted in creating the report.
336+
&quot;metricName&quot;: &quot;A String&quot;, # The name of the restricted metric.
337+
&quot;restrictedMetricTypes&quot;: [ # The reason for this metric&#x27;s restriction.
338+
&quot;A String&quot;,
339+
],
340+
},
341+
],
342+
},
332343
&quot;timeZone&quot;: &quot;A String&quot;, # The property&#x27;s current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example &quot;America/New_York&quot; or &quot;Asia/Tokyo&quot;.
333344
},
334345
&quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
@@ -615,6 +626,17 @@ <h3>Method Details</h3>
615626
&quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
616627
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property&#x27;s current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;. To learn more, see https://support.google.com/analytics/answer/9796179.
617628
&quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
629+
&quot;emptyReason&quot;: &quot;A String&quot;, # If empty reason is specified, the report is empty for this reason.
630+
&quot;schemaRestrictionResponse&quot;: { # The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). # Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
631+
&quot;activeMetricRestrictions&quot;: [ # All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user&#x27;s custom role disallows access to `REVENUE_DATA`.
632+
{ # A metric actively restricted in creating the report.
633+
&quot;metricName&quot;: &quot;A String&quot;, # The name of the restricted metric.
634+
&quot;restrictedMetricTypes&quot;: [ # The reason for this metric&#x27;s restriction.
635+
&quot;A String&quot;,
636+
],
637+
},
638+
],
639+
},
618640
&quot;timeZone&quot;: &quot;A String&quot;, # The property&#x27;s current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example &quot;America/New_York&quot; or &quot;Asia/Tokyo&quot;.
619641
},
620642
&quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
@@ -849,6 +871,9 @@ <h3>Method Details</h3>
849871
&quot;compatibility&quot;: &quot;A String&quot;, # The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.
850872
&quot;metricMetadata&quot;: { # Explains a metric. # The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.
851873
&quot;apiName&quot;: &quot;A String&quot;, # A metric name. Useable in [Metric](#Metric)&#x27;s `name`. For example, `eventCount`.
874+
&quot;blockedReasons&quot;: [ # If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
875+
&quot;A String&quot;,
876+
],
852877
&quot;category&quot;: &quot;A String&quot;, # The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
853878
&quot;customDefinition&quot;: True or False, # True if the metric is a custom metric for this property.
854879
&quot;deprecatedApiNames&quot;: [ # Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`.
@@ -899,6 +924,9 @@ <h3>Method Details</h3>
899924
&quot;metrics&quot;: [ # The metric descriptions.
900925
{ # Explains a metric.
901926
&quot;apiName&quot;: &quot;A String&quot;, # A metric name. Useable in [Metric](#Metric)&#x27;s `name`. For example, `eventCount`.
927+
&quot;blockedReasons&quot;: [ # If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
928+
&quot;A String&quot;,
929+
],
902930
&quot;category&quot;: &quot;A String&quot;, # The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
903931
&quot;customDefinition&quot;: True or False, # True if the metric is a custom metric for this property.
904932
&quot;deprecatedApiNames&quot;: [ # Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`.
@@ -1137,6 +1165,17 @@ <h3>Method Details</h3>
11371165
&quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
11381166
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property&#x27;s current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;. To learn more, see https://support.google.com/analytics/answer/9796179.
11391167
&quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
1168+
&quot;emptyReason&quot;: &quot;A String&quot;, # If empty reason is specified, the report is empty for this reason.
1169+
&quot;schemaRestrictionResponse&quot;: { # The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). # Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
1170+
&quot;activeMetricRestrictions&quot;: [ # All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user&#x27;s custom role disallows access to `REVENUE_DATA`.
1171+
{ # A metric actively restricted in creating the report.
1172+
&quot;metricName&quot;: &quot;A String&quot;, # The name of the restricted metric.
1173+
&quot;restrictedMetricTypes&quot;: [ # The reason for this metric&#x27;s restriction.
1174+
&quot;A String&quot;,
1175+
],
1176+
},
1177+
],
1178+
},
11401179
&quot;timeZone&quot;: &quot;A String&quot;, # The property&#x27;s current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example &quot;America/New_York&quot; or &quot;Asia/Tokyo&quot;.
11411180
},
11421181
&quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
@@ -1676,6 +1715,17 @@ <h3>Method Details</h3>
16761715
&quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
16771716
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property&#x27;s current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;. To learn more, see https://support.google.com/analytics/answer/9796179.
16781717
&quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
1718+
&quot;emptyReason&quot;: &quot;A String&quot;, # If empty reason is specified, the report is empty for this reason.
1719+
&quot;schemaRestrictionResponse&quot;: { # The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). # Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
1720+
&quot;activeMetricRestrictions&quot;: [ # All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user&#x27;s custom role disallows access to `REVENUE_DATA`.
1721+
{ # A metric actively restricted in creating the report.
1722+
&quot;metricName&quot;: &quot;A String&quot;, # The name of the restricted metric.
1723+
&quot;restrictedMetricTypes&quot;: [ # The reason for this metric&#x27;s restriction.
1724+
&quot;A String&quot;,
1725+
],
1726+
},
1727+
],
1728+
},
16791729
&quot;timeZone&quot;: &quot;A String&quot;, # The property&#x27;s current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example &quot;America/New_York&quot; or &quot;Asia/Tokyo&quot;.
16801730
},
16811731
&quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.

googleapiclient/discovery_cache/documents/analyticsdata.v1beta.json

+68-1
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,37 @@
313313
}
314314
}
315315
},
316-
"revision": "20211015",
316+
"revision": "20211022",
317317
"rootUrl": "https://analyticsdata.googleapis.com/",
318318
"schemas": {
319+
"ActiveMetricRestriction": {
320+
"description": "A metric actively restricted in creating the report.",
321+
"id": "ActiveMetricRestriction",
322+
"properties": {
323+
"metricName": {
324+
"description": "The name of the restricted metric.",
325+
"type": "string"
326+
},
327+
"restrictedMetricTypes": {
328+
"description": "The reason for this metric's restriction.",
329+
"items": {
330+
"enum": [
331+
"RESTRICTED_METRIC_TYPE_UNSPECIFIED",
332+
"COST_DATA",
333+
"REVENUE_DATA"
334+
],
335+
"enumDescriptions": [
336+
"Unspecified type.",
337+
"Cost metrics such as `adCost`.",
338+
"Revenue metrics such as `purchaseRevenue`."
339+
],
340+
"type": "string"
341+
},
342+
"type": "array"
343+
}
344+
},
345+
"type": "object"
346+
},
319347
"BatchRunPivotReportsRequest": {
320348
"description": "The batch request containing multiple pivot report requests.",
321349
"id": "BatchRunPivotReportsRequest",
@@ -938,6 +966,23 @@
938966
"description": "A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.",
939967
"type": "string"
940968
},
969+
"blockedReasons": {
970+
"description": "If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).",
971+
"items": {
972+
"enum": [
973+
"BLOCKED_REASON_UNSPECIFIED",
974+
"NO_REVENUE_METRICS",
975+
"NO_COST_METRICS"
976+
],
977+
"enumDescriptions": [
978+
"Will never be specified in API response.",
979+
"If present, your access is blocked to revenue related metrics for this property, and this metric is revenue related.",
980+
"If present, your access is blocked to cost related metrics for this property, and this metric is cost related."
981+
],
982+
"type": "string"
983+
},
984+
"type": "array"
985+
},
941986
"category": {
942987
"description": "The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.",
943988
"type": "string"
@@ -1290,6 +1335,14 @@
12901335
"description": "If true, indicates some buckets of dimension combinations are rolled into \"(other)\" row. This can happen for high cardinality reports.",
12911336
"type": "boolean"
12921337
},
1338+
"emptyReason": {
1339+
"description": "If empty reason is specified, the report is empty for this reason.",
1340+
"type": "string"
1341+
},
1342+
"schemaRestrictionResponse": {
1343+
"$ref": "SchemaRestrictionResponse",
1344+
"description": "Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388)."
1345+
},
12931346
"timeZone": {
12941347
"description": "The property's current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example \"America/New_York\" or \"Asia/Tokyo\".",
12951348
"type": "string"
@@ -1730,6 +1783,20 @@
17301783
},
17311784
"type": "object"
17321785
},
1786+
"SchemaRestrictionResponse": {
1787+
"description": "The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).",
1788+
"id": "SchemaRestrictionResponse",
1789+
"properties": {
1790+
"activeMetricRestrictions": {
1791+
"description": "All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user's custom role disallows access to `REVENUE_DATA`.",
1792+
"items": {
1793+
"$ref": "ActiveMetricRestriction"
1794+
},
1795+
"type": "array"
1796+
}
1797+
},
1798+
"type": "object"
1799+
},
17331800
"StringFilter": {
17341801
"description": "The filter for string",
17351802
"id": "StringFilter",

0 commit comments

Comments
 (0)