@google-analytics/data 4.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +239 -80
- package/build/protos/google/analytics/data/v1alpha/data.proto +14 -5
- package/build/protos/protos.d.ts +816 -5
- package/build/protos/protos.js +2803 -203
- package/build/protos/protos.json +491 -24
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +198 -92
- package/build/src/v1alpha/alpha_analytics_data_client.js +65 -41
- package/build/src/v1alpha/alpha_analytics_data_client_config.json +5 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.1.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.0.1...data-v4.1.0) (2023-11-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [analytics-data] add the `SheetExportAudienceList` method to the Data API v1 alpha ([#4804](https://github.com/googleapis/google-cloud-node/issues/4804)) ([279e77c](https://github.com/googleapis/google-cloud-node/commit/279e77c39982c98fb2f9f6b9305ee9097ae10352))
|
|
9
|
+
|
|
3
10
|
## [4.0.1](https://github.com/googleapis/google-cloud-node/compare/data-v4.0.0...data-v4.0.1) (2023-09-06)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
|
|
|
114
114
|
| Alpha_analytics_data.list_audience_lists | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_audience_lists.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_audience_lists.js,packages/google-analytics-data/samples/README.md) |
|
|
115
115
|
| Alpha_analytics_data.query_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_audience_list.js,packages/google-analytics-data/samples/README.md) |
|
|
116
116
|
| Alpha_analytics_data.run_funnel_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.run_funnel_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.run_funnel_report.js,packages/google-analytics-data/samples/README.md) |
|
|
117
|
+
| Alpha_analytics_data.sheet_export_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.sheet_export_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.sheet_export_audience_list.js,packages/google-analytics-data/samples/README.md) |
|
|
117
118
|
| Beta_analytics_data.batch_run_pivot_reports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_pivot_reports.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_pivot_reports.js,packages/google-analytics-data/samples/README.md) |
|
|
118
119
|
| Beta_analytics_data.batch_run_reports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_reports.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_reports.js,packages/google-analytics-data/samples/README.md) |
|
|
119
120
|
| Beta_analytics_data.check_compatibility | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.check_compatibility.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.check_compatibility.js,packages/google-analytics-data/samples/README.md) |
|
|
@@ -30,7 +30,7 @@ option java_outer_classname = "AnalyticsDataApiProto";
|
|
|
30
30
|
option java_package = "com.google.analytics.data.v1alpha";
|
|
31
31
|
option (google.api.resource_definition) = {
|
|
32
32
|
type: "analyticsadmin.googleapis.com/Property"
|
|
33
|
-
pattern: "properties/{
|
|
33
|
+
pattern: "properties/{property}"
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// Google Analytics reporting data service.
|
|
@@ -38,7 +38,10 @@ service AlphaAnalyticsData {
|
|
|
38
38
|
option (google.api.default_host) = "analyticsdata.googleapis.com";
|
|
39
39
|
option (google.api.oauth_scopes) =
|
|
40
40
|
"https://www.googleapis.com/auth/analytics,"
|
|
41
|
-
"https://www.googleapis.com/auth/analytics.readonly"
|
|
41
|
+
"https://www.googleapis.com/auth/analytics.readonly,"
|
|
42
|
+
"https://www.googleapis.com/auth/drive,"
|
|
43
|
+
"https://www.googleapis.com/auth/drive.file,"
|
|
44
|
+
"https://www.googleapis.com/auth/spreadsheets";
|
|
42
45
|
|
|
43
46
|
// Returns a customized funnel report of your Google Analytics event data. The
|
|
44
47
|
// data returned from the API is as a table with columns for the requested
|
|
@@ -70,6 +73,10 @@ service AlphaAnalyticsData {
|
|
|
70
73
|
// first create the audience list through this method and then send the
|
|
71
74
|
// audience resource name to the `QueryAudienceList` method.
|
|
72
75
|
//
|
|
76
|
+
// See [Creating an Audience
|
|
77
|
+
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
78
|
+
// for an introduction to Audience Lists with examples.
|
|
79
|
+
//
|
|
73
80
|
// An audience list is a snapshot of the users currently in the audience at
|
|
74
81
|
// the time of audience list creation. Creating audience lists for one
|
|
75
82
|
// audience on different days will return different results as users enter and
|
|
@@ -79,6 +86,12 @@ service AlphaAnalyticsData {
|
|
|
79
86
|
// that are important to your business. To learn more, see
|
|
80
87
|
// https://support.google.com/analytics/answer/9267572. Audience lists contain
|
|
81
88
|
// the users in each audience.
|
|
89
|
+
//
|
|
90
|
+
// This method is introduced at alpha stability with the intention of
|
|
91
|
+
// gathering feedback on syntax and capabilities before entering beta. To give
|
|
92
|
+
// your feedback on this API, complete the
|
|
93
|
+
// [Google Analytics Audience Export API
|
|
94
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
82
95
|
rpc CreateAudienceList(CreateAudienceListRequest)
|
|
83
96
|
returns (google.longrunning.Operation) {
|
|
84
97
|
option (google.api.http) = {
|
|
@@ -95,11 +108,22 @@ service AlphaAnalyticsData {
|
|
|
95
108
|
// Retrieves an audience list of users. After creating an audience, the users
|
|
96
109
|
// are not immediately available for listing. First, a request to
|
|
97
110
|
// `CreateAudienceList` is necessary to create an audience list of users, and
|
|
98
|
-
// then second, this method is used to retrieve the users in the audience
|
|
111
|
+
// then second, this method is used to retrieve the users in the audience
|
|
112
|
+
// list.
|
|
113
|
+
//
|
|
114
|
+
// See [Creating an Audience
|
|
115
|
+
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
116
|
+
// for an introduction to Audience Lists with examples.
|
|
99
117
|
//
|
|
100
118
|
// Audiences in Google Analytics 4 allow you to segment your users in the ways
|
|
101
119
|
// that are important to your business. To learn more, see
|
|
102
120
|
// https://support.google.com/analytics/answer/9267572.
|
|
121
|
+
//
|
|
122
|
+
// This method is introduced at alpha stability with the intention of
|
|
123
|
+
// gathering feedback on syntax and capabilities before entering beta. To give
|
|
124
|
+
// your feedback on this API, complete the
|
|
125
|
+
// [Google Analytics Audience Export API
|
|
126
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
103
127
|
rpc QueryAudienceList(QueryAudienceListRequest)
|
|
104
128
|
returns (QueryAudienceListResponse) {
|
|
105
129
|
option (google.api.http) = {
|
|
@@ -109,8 +133,46 @@ service AlphaAnalyticsData {
|
|
|
109
133
|
option (google.api.method_signature) = "name";
|
|
110
134
|
}
|
|
111
135
|
|
|
136
|
+
// Exports an audience list of users to a Google Sheet. After creating an
|
|
137
|
+
// audience, the users are not immediately available for listing. First, a
|
|
138
|
+
// request to `CreateAudienceList` is necessary to create an audience list of
|
|
139
|
+
// users, and then second, this method is used to export those users in the
|
|
140
|
+
// audience list to a Google Sheet.
|
|
141
|
+
//
|
|
142
|
+
// See [Creating an Audience
|
|
143
|
+
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
144
|
+
// for an introduction to Audience Lists with examples.
|
|
145
|
+
//
|
|
146
|
+
// Audiences in Google Analytics 4 allow you to segment your users in the ways
|
|
147
|
+
// that are important to your business. To learn more, see
|
|
148
|
+
// https://support.google.com/analytics/answer/9267572.
|
|
149
|
+
//
|
|
150
|
+
// This method is introduced at alpha stability with the intention of
|
|
151
|
+
// gathering feedback on syntax and capabilities before entering beta. To give
|
|
152
|
+
// your feedback on this API, complete the
|
|
153
|
+
// [Google Analytics Audience Export API
|
|
154
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
155
|
+
rpc SheetExportAudienceList(SheetExportAudienceListRequest)
|
|
156
|
+
returns (SheetExportAudienceListResponse) {
|
|
157
|
+
option (google.api.http) = {
|
|
158
|
+
post: "/v1alpha/{name=properties/*/audienceLists/*}:exportSheet"
|
|
159
|
+
body: "*"
|
|
160
|
+
};
|
|
161
|
+
option (google.api.method_signature) = "name";
|
|
162
|
+
}
|
|
163
|
+
|
|
112
164
|
// Gets configuration metadata about a specific audience list. This method
|
|
113
165
|
// can be used to understand an audience list after it has been created.
|
|
166
|
+
//
|
|
167
|
+
// See [Creating an Audience
|
|
168
|
+
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
169
|
+
// for an introduction to Audience Lists with examples.
|
|
170
|
+
//
|
|
171
|
+
// This method is introduced at alpha stability with the intention of
|
|
172
|
+
// gathering feedback on syntax and capabilities before entering beta. To give
|
|
173
|
+
// your feedback on this API, complete the
|
|
174
|
+
// [Google Analytics Audience Export API
|
|
175
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
114
176
|
rpc GetAudienceList(GetAudienceListRequest) returns (AudienceList) {
|
|
115
177
|
option (google.api.http) = {
|
|
116
178
|
get: "/v1alpha/{name=properties/*/audienceLists/*}"
|
|
@@ -122,6 +184,16 @@ service AlphaAnalyticsData {
|
|
|
122
184
|
// find and reuse existing audience lists rather than creating unnecessary new
|
|
123
185
|
// audience lists. The same audience can have multiple audience lists that
|
|
124
186
|
// represent the list of users that were in an audience on different days.
|
|
187
|
+
//
|
|
188
|
+
// See [Creating an Audience
|
|
189
|
+
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
190
|
+
// for an introduction to Audience Lists with examples.
|
|
191
|
+
//
|
|
192
|
+
// This method is introduced at alpha stability with the intention of
|
|
193
|
+
// gathering feedback on syntax and capabilities before entering beta. To give
|
|
194
|
+
// your feedback on this API, complete the
|
|
195
|
+
// [Google Analytics Audience Export API
|
|
196
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
125
197
|
rpc ListAudienceLists(ListAudienceListsRequest)
|
|
126
198
|
returns (ListAudienceListsResponse) {
|
|
127
199
|
option (google.api.http) = {
|
|
@@ -134,7 +206,7 @@ service AlphaAnalyticsData {
|
|
|
134
206
|
// A request to retrieve configuration metadata about a specific audience list.
|
|
135
207
|
message GetAudienceListRequest {
|
|
136
208
|
// Required. The audience list resource name.
|
|
137
|
-
// Format: `properties/{
|
|
209
|
+
// Format: `properties/{property}/audienceLists/{audience_list}`
|
|
138
210
|
string name = 1 [
|
|
139
211
|
(google.api.field_behavior) = REQUIRED,
|
|
140
212
|
(google.api.resource_reference) = {
|
|
@@ -146,7 +218,7 @@ message GetAudienceListRequest {
|
|
|
146
218
|
// A request to list all audience lists for a property.
|
|
147
219
|
message ListAudienceListsRequest {
|
|
148
220
|
// Required. All audience lists for this property will be listed in the
|
|
149
|
-
// response. Format: `properties/{
|
|
221
|
+
// response. Format: `properties/{property}`
|
|
150
222
|
string parent = 1 [
|
|
151
223
|
(google.api.field_behavior) = REQUIRED,
|
|
152
224
|
(google.api.resource_reference) = {
|
|
@@ -154,18 +226,18 @@ message ListAudienceListsRequest {
|
|
|
154
226
|
}
|
|
155
227
|
];
|
|
156
228
|
|
|
157
|
-
// The maximum number of audience lists to return. The service may
|
|
158
|
-
// fewer than this value. If unspecified, at most 200 audience lists
|
|
159
|
-
// returned. The maximum value is 1000 (higher values will be coerced
|
|
160
|
-
// maximum).
|
|
161
|
-
int32 page_size = 2;
|
|
229
|
+
// Optional. The maximum number of audience lists to return. The service may
|
|
230
|
+
// return fewer than this value. If unspecified, at most 200 audience lists
|
|
231
|
+
// will be returned. The maximum value is 1000 (higher values will be coerced
|
|
232
|
+
// to the maximum).
|
|
233
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
162
234
|
|
|
163
|
-
// A page token, received from a previous `ListAudienceLists` call.
|
|
164
|
-
// this to retrieve the subsequent page.
|
|
235
|
+
// Optional. A page token, received from a previous `ListAudienceLists` call.
|
|
236
|
+
// Provide this to retrieve the subsequent page.
|
|
165
237
|
//
|
|
166
238
|
// When paginating, all other parameters provided to `ListAudienceLists` must
|
|
167
239
|
// match the call that provided the page token.
|
|
168
|
-
string page_token = 3;
|
|
240
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
169
241
|
}
|
|
170
242
|
|
|
171
243
|
// A list of all audience lists for a property.
|
|
@@ -181,7 +253,7 @@ message ListAudienceListsResponse {
|
|
|
181
253
|
// A request to create a new audience list.
|
|
182
254
|
message CreateAudienceListRequest {
|
|
183
255
|
// Required. The parent resource where this audience list will be created.
|
|
184
|
-
// Format: `properties/{
|
|
256
|
+
// Format: `properties/{property}`
|
|
185
257
|
string parent = 1 [
|
|
186
258
|
(google.api.field_behavior) = REQUIRED,
|
|
187
259
|
(google.api.resource_reference) = {
|
|
@@ -199,7 +271,9 @@ message CreateAudienceListRequest {
|
|
|
199
271
|
message AudienceList {
|
|
200
272
|
option (google.api.resource) = {
|
|
201
273
|
type: "analyticsdata.googleapis.com/AudienceList"
|
|
202
|
-
pattern: "properties/{
|
|
274
|
+
pattern: "properties/{property}/audienceLists/{audience_list}"
|
|
275
|
+
plural: "audienceLists"
|
|
276
|
+
singular: "audienceList"
|
|
203
277
|
};
|
|
204
278
|
|
|
205
279
|
// The AudienceList currently exists in this state.
|
|
@@ -221,17 +295,20 @@ message AudienceList {
|
|
|
221
295
|
FAILED = 3;
|
|
222
296
|
}
|
|
223
297
|
|
|
224
|
-
// Output only. The audience list resource name assigned during
|
|
225
|
-
// resource name identifies this `AudienceList`.
|
|
298
|
+
// Output only. Identifier. The audience list resource name assigned during
|
|
299
|
+
// creation. This resource name identifies this `AudienceList`.
|
|
226
300
|
//
|
|
227
|
-
// Format: `properties/{
|
|
228
|
-
string name = 1 [
|
|
301
|
+
// Format: `properties/{property}/audienceLists/{audience_list}`
|
|
302
|
+
string name = 1 [
|
|
303
|
+
(google.api.field_behavior) = IDENTIFIER,
|
|
304
|
+
(google.api.field_behavior) = OUTPUT_ONLY
|
|
305
|
+
];
|
|
229
306
|
|
|
230
307
|
// Required. The audience resource name. This resource name identifies the
|
|
231
308
|
// audience being listed and is shared between the Analytics Data & Admin
|
|
232
309
|
// APIs.
|
|
233
310
|
//
|
|
234
|
-
// Format: `properties/{
|
|
311
|
+
// Format: `properties/{property}/audiences/{audience}`
|
|
235
312
|
string audience = 2 [(google.api.field_behavior) = REQUIRED];
|
|
236
313
|
|
|
237
314
|
// Output only. The descriptive display name for this audience. For example,
|
|
@@ -249,6 +326,20 @@ message AudienceList {
|
|
|
249
326
|
// AudienceList began the `CREATING` state.
|
|
250
327
|
optional google.protobuf.Timestamp begin_creating_time = 6
|
|
251
328
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
329
|
+
|
|
330
|
+
// Output only. The total quota tokens charged during creation of the
|
|
331
|
+
// AudienceList. Because this token count is based on activity from the
|
|
332
|
+
// `CREATING` state, this tokens charged will be fixed once an AudienceList
|
|
333
|
+
// enters the `ACTIVE` or `FAILED` states.
|
|
334
|
+
int32 creation_quota_tokens_charged = 7
|
|
335
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
336
|
+
|
|
337
|
+
// Output only. The total number of rows in the AudienceList result.
|
|
338
|
+
optional int32 row_count = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
339
|
+
|
|
340
|
+
// Output only. Error message is populated when an audience list fails during
|
|
341
|
+
// creation. A common reason for such a failure is quota exhaustion.
|
|
342
|
+
optional string error_message = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
252
343
|
}
|
|
253
344
|
|
|
254
345
|
// This metadata is currently blank.
|
|
@@ -256,11 +347,12 @@ message AudienceListMetadata {}
|
|
|
256
347
|
|
|
257
348
|
// A request to list users in an audience list.
|
|
258
349
|
message QueryAudienceListRequest {
|
|
259
|
-
// The name of the audience list to retrieve users from.
|
|
260
|
-
// Format: `properties/{
|
|
261
|
-
string name = 1;
|
|
350
|
+
// Required. The name of the audience list to retrieve users from.
|
|
351
|
+
// Format: `properties/{property}/audienceLists/{audience_list}`
|
|
352
|
+
string name = 1 [(google.api.field_behavior) = REQUIRED];
|
|
262
353
|
|
|
263
|
-
// The row count of the start row. The first row is counted as row
|
|
354
|
+
// Optional. The row count of the start row. The first row is counted as row
|
|
355
|
+
// 0.
|
|
264
356
|
//
|
|
265
357
|
// When paging, the first request does not specify offset; or equivalently,
|
|
266
358
|
// sets offset to 0; the first request returns the first `limit` of rows. The
|
|
@@ -269,18 +361,18 @@ message QueryAudienceListRequest {
|
|
|
269
361
|
//
|
|
270
362
|
// To learn more about this pagination parameter, see
|
|
271
363
|
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
272
|
-
int64 offset = 2;
|
|
364
|
+
int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
273
365
|
|
|
274
|
-
// The number of rows to return. If unspecified, 10,000 rows are
|
|
275
|
-
// API returns a maximum of 250,000 rows per request, no matter
|
|
276
|
-
// ask for. `limit` must be positive.
|
|
366
|
+
// Optional. The number of rows to return. If unspecified, 10,000 rows are
|
|
367
|
+
// returned. The API returns a maximum of 250,000 rows per request, no matter
|
|
368
|
+
// how many you ask for. `limit` must be positive.
|
|
277
369
|
//
|
|
278
370
|
// The API can also return fewer rows than the requested `limit`, if there
|
|
279
371
|
// aren't as many dimension values as the `limit`.
|
|
280
372
|
//
|
|
281
373
|
// To learn more about this pagination parameter, see
|
|
282
374
|
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
283
|
-
int64 limit = 3;
|
|
375
|
+
int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
284
376
|
}
|
|
285
377
|
|
|
286
378
|
// A list of users in an audience list.
|
|
@@ -294,10 +386,10 @@ message QueryAudienceListResponse {
|
|
|
294
386
|
// response will be less than or equal to request's page size.
|
|
295
387
|
repeated AudienceRow audience_rows = 2;
|
|
296
388
|
|
|
297
|
-
// The total number of rows in the
|
|
298
|
-
// the number of rows returned in the response, the `limit`
|
|
299
|
-
// parameter, and the `offset` request parameter. For example if a
|
|
300
|
-
// returns 175 rows and includes `limit` of 50 in the API request, the
|
|
389
|
+
// The total number of rows in the AudienceList result. `rowCount` is
|
|
390
|
+
// independent of the number of rows returned in the response, the `limit`
|
|
391
|
+
// request parameter, and the `offset` request parameter. For example if a
|
|
392
|
+
// query returns 175 rows and includes `limit` of 50 in the API request, the
|
|
301
393
|
// response will contain `rowCount` of 175 but only 50 rows.
|
|
302
394
|
//
|
|
303
395
|
// To learn more about this pagination parameter, see
|
|
@@ -305,6 +397,69 @@ message QueryAudienceListResponse {
|
|
|
305
397
|
optional int32 row_count = 3;
|
|
306
398
|
}
|
|
307
399
|
|
|
400
|
+
// A request to export users in an audience list to a Google Sheet.
|
|
401
|
+
message SheetExportAudienceListRequest {
|
|
402
|
+
// Required. The name of the audience list to retrieve users from.
|
|
403
|
+
// Format: `properties/{property}/audienceLists/{audience_list}`
|
|
404
|
+
string name = 1 [
|
|
405
|
+
(google.api.field_behavior) = REQUIRED,
|
|
406
|
+
(google.api.resource_reference) = {
|
|
407
|
+
type: "analyticsdata.googleapis.com/AudienceList"
|
|
408
|
+
}
|
|
409
|
+
];
|
|
410
|
+
|
|
411
|
+
// Optional. The row count of the start row. The first row is counted as row
|
|
412
|
+
// 0.
|
|
413
|
+
//
|
|
414
|
+
// When paging, the first request does not specify offset; or equivalently,
|
|
415
|
+
// sets offset to 0; the first request returns the first `limit` of rows. The
|
|
416
|
+
// second request sets offset to the `limit` of the first request; the second
|
|
417
|
+
// request returns the second `limit` of rows.
|
|
418
|
+
//
|
|
419
|
+
// To learn more about this pagination parameter, see
|
|
420
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
421
|
+
int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
422
|
+
|
|
423
|
+
// Optional. The number of rows to return. If unspecified, 10,000 rows are
|
|
424
|
+
// returned. The API returns a maximum of 250,000 rows per request, no matter
|
|
425
|
+
// how many you ask for. `limit` must be positive.
|
|
426
|
+
//
|
|
427
|
+
// The API can also return fewer rows than the requested `limit`, if there
|
|
428
|
+
// aren't as many dimension values as the `limit`.
|
|
429
|
+
//
|
|
430
|
+
// To learn more about this pagination parameter, see
|
|
431
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
432
|
+
int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// The created Google Sheet with the list of users in an audience list.
|
|
436
|
+
message SheetExportAudienceListResponse {
|
|
437
|
+
// A uri for you to visit in your browser to view the Google Sheet.
|
|
438
|
+
optional string spreadsheet_uri = 1;
|
|
439
|
+
|
|
440
|
+
// An ID that identifies the created Google Sheet resource.
|
|
441
|
+
optional string spreadsheet_id = 2;
|
|
442
|
+
|
|
443
|
+
// The total number of rows in the AudienceList result. `rowCount` is
|
|
444
|
+
// independent of the number of rows returned in the response, the `limit`
|
|
445
|
+
// request parameter, and the `offset` request parameter. For example if a
|
|
446
|
+
// query returns 175 rows and includes `limit` of 50 in the API request, the
|
|
447
|
+
// response will contain `rowCount` of 175 but only 50 rows.
|
|
448
|
+
//
|
|
449
|
+
// To learn more about this pagination parameter, see
|
|
450
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
451
|
+
optional int32 row_count = 3;
|
|
452
|
+
|
|
453
|
+
// Configuration data about AudienceList being exported. Returned to help
|
|
454
|
+
// interpret the AudienceList in the Google Sheet of this response.
|
|
455
|
+
//
|
|
456
|
+
// For example, the AudienceList may have more rows than are present in the
|
|
457
|
+
// Google Sheet, and in that case, you may want to send an additional sheet
|
|
458
|
+
// export request with a different `offset` value to retrieve the next page of
|
|
459
|
+
// rows in an additional Google Sheet.
|
|
460
|
+
optional AudienceList audience_list = 4;
|
|
461
|
+
}
|
|
462
|
+
|
|
308
463
|
// Dimension value attributes for the audience user row.
|
|
309
464
|
message AudienceRow {
|
|
310
465
|
// Each dimension value attribute for an audience user. One dimension value
|
|
@@ -315,10 +470,10 @@ message AudienceRow {
|
|
|
315
470
|
// An audience dimension is a user attribute. Specific user attributed are
|
|
316
471
|
// requested and then later returned in the `QueryAudienceListResponse`.
|
|
317
472
|
message AudienceDimension {
|
|
318
|
-
// The API name of the dimension. See the [API
|
|
473
|
+
// Optional. The API name of the dimension. See the [API
|
|
319
474
|
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions)
|
|
320
475
|
// for the list of dimension names.
|
|
321
|
-
string dimension_name = 1;
|
|
476
|
+
string dimension_name = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
322
477
|
}
|
|
323
478
|
|
|
324
479
|
// The value of a dimension.
|
|
@@ -347,75 +502,79 @@ message RunFunnelReportRequest {
|
|
|
347
502
|
TRENDED_FUNNEL = 2;
|
|
348
503
|
}
|
|
349
504
|
|
|
350
|
-
// A Google Analytics GA4 property identifier whose events are
|
|
351
|
-
// Specified in the URL path and not the body. To learn more, see
|
|
352
|
-
// find your Property
|
|
505
|
+
// Optional. A Google Analytics GA4 property identifier whose events are
|
|
506
|
+
// tracked. Specified in the URL path and not the body. To learn more, see
|
|
507
|
+
// [where to find your Property
|
|
353
508
|
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
|
|
354
509
|
// Within a batch request, this property should either be unspecified or
|
|
355
510
|
// consistent with the batch-level property.
|
|
356
511
|
//
|
|
357
512
|
// Example: properties/1234
|
|
358
|
-
string property = 1;
|
|
359
|
-
|
|
360
|
-
// Date ranges of data to read. If multiple date ranges are
|
|
361
|
-
// response row will contain a zero based date range index. If
|
|
362
|
-
// ranges overlap, the event data for the overlapping days is
|
|
363
|
-
// response rows for both date ranges.
|
|
364
|
-
repeated DateRange date_ranges = 2;
|
|
365
|
-
|
|
366
|
-
// The configuration of this request's funnel. This funnel
|
|
367
|
-
// required.
|
|
368
|
-
Funnel funnel = 3;
|
|
369
|
-
|
|
370
|
-
// If specified, this breakdown adds a dimension to the funnel table
|
|
371
|
-
// report response. This breakdown dimension expands each funnel step to
|
|
372
|
-
// unique values of the breakdown dimension. For example, a breakdown by
|
|
373
|
-
// `deviceCategory` dimension will create rows for `mobile`, `tablet`,
|
|
513
|
+
string property = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
514
|
+
|
|
515
|
+
// Optional. Date ranges of data to read. If multiple date ranges are
|
|
516
|
+
// requested, each response row will contain a zero based date range index. If
|
|
517
|
+
// two date ranges overlap, the event data for the overlapping days is
|
|
518
|
+
// included in the response rows for both date ranges.
|
|
519
|
+
repeated DateRange date_ranges = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
520
|
+
|
|
521
|
+
// Optional. The configuration of this request's funnel. This funnel
|
|
522
|
+
// configuration is required.
|
|
523
|
+
Funnel funnel = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
524
|
+
|
|
525
|
+
// Optional. If specified, this breakdown adds a dimension to the funnel table
|
|
526
|
+
// sub report response. This breakdown dimension expands each funnel step to
|
|
527
|
+
// the unique values of the breakdown dimension. For example, a breakdown by
|
|
528
|
+
// the `deviceCategory` dimension will create rows for `mobile`, `tablet`,
|
|
374
529
|
// `desktop`, and the total.
|
|
375
|
-
FunnelBreakdown funnel_breakdown = 4;
|
|
530
|
+
FunnelBreakdown funnel_breakdown = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
376
531
|
|
|
377
|
-
// If specified, next action adds a dimension to the funnel
|
|
378
|
-
// report response. This next action dimension expands each
|
|
379
|
-
// unique values of the next action. For example a next
|
|
380
|
-
// `eventName` dimension will create rows for several events
|
|
381
|
-
// `session_start` & `click`) and the total.
|
|
532
|
+
// Optional. If specified, next action adds a dimension to the funnel
|
|
533
|
+
// visualization sub report response. This next action dimension expands each
|
|
534
|
+
// funnel step to the unique values of the next action. For example a next
|
|
535
|
+
// action of the `eventName` dimension will create rows for several events
|
|
536
|
+
// (for example `session_start` & `click`) and the total.
|
|
382
537
|
//
|
|
383
538
|
// Next action only supports `eventName` and most Page / Screen dimensions
|
|
384
539
|
// like `pageTitle` and `pagePath`.
|
|
385
|
-
FunnelNextAction funnel_next_action = 5
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
//
|
|
389
|
-
//
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
540
|
+
FunnelNextAction funnel_next_action = 5
|
|
541
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
542
|
+
|
|
543
|
+
// Optional. The funnel visualization type controls the dimensions present in
|
|
544
|
+
// the funnel visualization sub report response. If not specified,
|
|
545
|
+
// `STANDARD_FUNNEL` is used.
|
|
546
|
+
FunnelVisualizationType funnel_visualization_type = 6
|
|
547
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
548
|
+
|
|
549
|
+
// Optional. The configurations of segments. Segments are subsets of a
|
|
550
|
+
// property's data. In a funnel report with segments, the funnel is evaluated
|
|
551
|
+
// in each segment.
|
|
394
552
|
//
|
|
395
553
|
// Each segment specified in this request
|
|
396
554
|
// produces a separate row in the response; in the response, each segment
|
|
397
555
|
// identified by its name.
|
|
398
556
|
//
|
|
399
557
|
// The segments parameter is optional. Requests are limited to 4 segments.
|
|
400
|
-
repeated Segment segments = 7;
|
|
558
|
+
repeated Segment segments = 7 [(google.api.field_behavior) = OPTIONAL];
|
|
401
559
|
|
|
402
|
-
// The number of rows to return. If unspecified, 10,000 rows are
|
|
403
|
-
// API returns a maximum of 250,000 rows per request, no matter
|
|
404
|
-
// ask for. `limit` must be positive.
|
|
560
|
+
// Optional. The number of rows to return. If unspecified, 10,000 rows are
|
|
561
|
+
// returned. The API returns a maximum of 250,000 rows per request, no matter
|
|
562
|
+
// how many you ask for. `limit` must be positive.
|
|
405
563
|
//
|
|
406
564
|
// The API can also return fewer rows than the requested `limit`, if there
|
|
407
565
|
// aren't as many dimension values as the `limit`.
|
|
408
|
-
int64 limit = 9;
|
|
566
|
+
int64 limit = 9 [(google.api.field_behavior) = OPTIONAL];
|
|
409
567
|
|
|
410
|
-
// Dimension filters allow you to ask for only specific dimension
|
|
411
|
-
// the report. To learn more, see [Creating a Report: Dimension
|
|
568
|
+
// Optional. Dimension filters allow you to ask for only specific dimension
|
|
569
|
+
// values in the report. To learn more, see [Creating a Report: Dimension
|
|
412
570
|
// Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
|
|
413
571
|
// for examples. Metrics cannot be used in this filter.
|
|
414
|
-
FilterExpression dimension_filter = 10
|
|
572
|
+
FilterExpression dimension_filter = 10
|
|
573
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
415
574
|
|
|
416
|
-
// Toggles whether to return the current state of this Analytics
|
|
417
|
-
// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
|
418
|
-
bool return_property_quota = 12;
|
|
575
|
+
// Optional. Toggles whether to return the current state of this Analytics
|
|
576
|
+
// Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
|
577
|
+
bool return_property_quota = 12 [(google.api.field_behavior) = OPTIONAL];
|
|
419
578
|
}
|
|
420
579
|
|
|
421
580
|
// The funnel report response contains two sub reports. The two sub reports are
|
|
@@ -23,8 +23,8 @@ option java_multiple_files = true;
|
|
|
23
23
|
option java_outer_classname = "ReportingApiProto";
|
|
24
24
|
option java_package = "com.google.analytics.data.v1alpha";
|
|
25
25
|
|
|
26
|
-
// A contiguous set of days: startDate
|
|
27
|
-
// are allowed up to 4 date ranges.
|
|
26
|
+
// A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`.
|
|
27
|
+
// Requests are allowed up to 4 date ranges.
|
|
28
28
|
message DateRange {
|
|
29
29
|
// The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
|
|
30
30
|
// be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
|
|
@@ -51,7 +51,16 @@ message DateRange {
|
|
|
51
51
|
message Dimension {
|
|
52
52
|
// The name of the dimension. See the [API
|
|
53
53
|
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
|
|
54
|
-
// for the list of dimension names
|
|
54
|
+
// for the list of dimension names supported by core reporting methods such
|
|
55
|
+
// as `runReport` and `batchRunReports`. See
|
|
56
|
+
// [Realtime
|
|
57
|
+
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
|
|
58
|
+
// for the list of dimension names supported by the `runRealtimeReport`
|
|
59
|
+
// method. See
|
|
60
|
+
// [Funnel
|
|
61
|
+
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
|
|
62
|
+
// for the list of dimension names supported by the `runFunnelReport`
|
|
63
|
+
// method.
|
|
55
64
|
//
|
|
56
65
|
// If `dimensionExpression` is specified, `name` can be any string that you
|
|
57
66
|
// would like within the allowed character set. For example if a
|
|
@@ -1168,7 +1177,7 @@ message FunnelParameterFilter {
|
|
|
1168
1177
|
// the funnel report.
|
|
1169
1178
|
message FunnelResponseMetadata {
|
|
1170
1179
|
// If funnel report results are
|
|
1171
|
-
// [sampled](https://support.google.com/analytics/answer/
|
|
1180
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
1172
1181
|
// describes what percentage of events were used in this funnel report. One
|
|
1173
1182
|
// `samplingMetadatas` is populated for each date range. Each
|
|
1174
1183
|
// `samplingMetadatas` corresponds to a date range in order that date ranges
|
|
@@ -1179,7 +1188,7 @@ message FunnelResponseMetadata {
|
|
|
1179
1188
|
}
|
|
1180
1189
|
|
|
1181
1190
|
// If funnel report results are
|
|
1182
|
-
// [sampled](https://support.google.com/analytics/answer/
|
|
1191
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
1183
1192
|
// metadata describes what percentage of events were used in this funnel
|
|
1184
1193
|
// report for a date range. Sampling is the practice of analyzing a subset of
|
|
1185
1194
|
// all data in order to uncover the meaningful information in the larger data
|