@google-analytics/data 4.0.1 → 4.2.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.
@@ -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/{propertyId}"
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) = {
@@ -129,12 +201,206 @@ service AlphaAnalyticsData {
129
201
  };
130
202
  option (google.api.method_signature) = "parent";
131
203
  }
204
+
205
+ // Creates a recurring audience list. Recurring audience lists produces new
206
+ // audience lists each day. Audience lists are users in an audience at the
207
+ // time of the list's creation.
208
+ //
209
+ // A recurring audience list ensures that you have audience list based on the
210
+ // most recent data available for use each day. If you manually create
211
+ // audience list, you don't know when an audience list based on an additional
212
+ // day's data is available. This recurring audience list automates the
213
+ // creation of an audience list when an additional day's data is available.
214
+ // You will consume fewer quota tokens by using recurring audience list versus
215
+ // manually creating audience list at various times of day trying to guess
216
+ // when an additional day's data is ready.
217
+ //
218
+ // This method is introduced at alpha stability with the intention of
219
+ // gathering feedback on syntax and capabilities before entering beta. To give
220
+ // your feedback on this API, complete the
221
+ // [Google Analytics Audience Export API
222
+ // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
223
+ rpc CreateRecurringAudienceList(CreateRecurringAudienceListRequest)
224
+ returns (RecurringAudienceList) {
225
+ option (google.api.http) = {
226
+ post: "/v1alpha/{parent=properties/*}/recurringAudienceLists"
227
+ body: "recurring_audience_list"
228
+ };
229
+ option (google.api.method_signature) = "parent,recurring_audience_list";
230
+ }
231
+
232
+ // Gets configuration metadata about a specific recurring audience list. This
233
+ // method can be used to understand a recurring audience list's state after it
234
+ // has been created. For example, a recurring audience list resource will
235
+ // generate audience list instances for each day, and this method can be used
236
+ // to get the resource name of the most recent audience list instance.
237
+ //
238
+ // This method is introduced at alpha stability with the intention of
239
+ // gathering feedback on syntax and capabilities before entering beta. To give
240
+ // your feedback on this API, complete the
241
+ // [Google Analytics Audience Export API
242
+ // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
243
+ rpc GetRecurringAudienceList(GetRecurringAudienceListRequest)
244
+ returns (RecurringAudienceList) {
245
+ option (google.api.http) = {
246
+ get: "/v1alpha/{name=properties/*/recurringAudienceLists/*}"
247
+ };
248
+ option (google.api.method_signature) = "name";
249
+ }
250
+
251
+ // Lists all recurring audience lists for a property. This method can be used
252
+ // for you to find and reuse existing recurring audience lists rather than
253
+ // creating unnecessary new recurring audience lists. The same audience can
254
+ // have multiple recurring audience lists that represent different dimension
255
+ // combinations; for example, just the dimension `deviceId` or both the
256
+ // dimensions `deviceId` and `userId`.
257
+ //
258
+ // This method is introduced at alpha stability with the intention of
259
+ // gathering feedback on syntax and capabilities before entering beta. To give
260
+ // your feedback on this API, complete the
261
+ // [Google Analytics Audience Export API
262
+ // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
263
+ rpc ListRecurringAudienceLists(ListRecurringAudienceListsRequest)
264
+ returns (ListRecurringAudienceListsResponse) {
265
+ option (google.api.http) = {
266
+ get: "/v1alpha/{parent=properties/*}/recurringAudienceLists"
267
+ };
268
+ option (google.api.method_signature) = "parent";
269
+ }
270
+ }
271
+
272
+ // A request to create a new recurring audience list.
273
+ message CreateRecurringAudienceListRequest {
274
+ // Required. The parent resource where this recurring audience list will be
275
+ // created. Format: `properties/{property}`
276
+ string parent = 1 [
277
+ (google.api.field_behavior) = REQUIRED,
278
+ (google.api.resource_reference) = {
279
+ child_type: "analyticsdata.googleapis.com/RecurringAudienceList"
280
+ }
281
+ ];
282
+
283
+ // Required. The recurring audience list to create.
284
+ RecurringAudienceList recurring_audience_list = 2
285
+ [(google.api.field_behavior) = REQUIRED];
286
+ }
287
+
288
+ // A recurring audience list produces new audience lists each day. Audience
289
+ // lists are users in an audience at the time of the list's creation. A
290
+ // recurring audience list ensures that you have audience list based on the most
291
+ // recent data available for use each day.
292
+ message RecurringAudienceList {
293
+ option (google.api.resource) = {
294
+ type: "analyticsdata.googleapis.com/RecurringAudienceList"
295
+ pattern: "properties/{property}/recurringAudienceLists/{recurring_audience_list}"
296
+ plural: "recurringAudienceLists"
297
+ singular: "recurringAudienceList"
298
+ };
299
+
300
+ // Output only. Identifier. The recurring audience list resource name assigned
301
+ // during creation. This resource name identifies this
302
+ // `RecurringAudienceList`.
303
+ //
304
+ // Format:
305
+ // `properties/{property}/recurringAudienceLists/{recurring_audience_list}`
306
+ string name = 1 [
307
+ (google.api.field_behavior) = IDENTIFIER,
308
+ (google.api.field_behavior) = OUTPUT_ONLY
309
+ ];
310
+
311
+ // Required. The audience resource name. This resource name identifies the
312
+ // audience being listed and is shared between the Analytics Data & Admin
313
+ // APIs.
314
+ //
315
+ // Format: `properties/{property}/audiences/{audience}`
316
+ string audience = 2 [(google.api.field_behavior) = REQUIRED];
317
+
318
+ // Output only. The descriptive display name for this audience. For example,
319
+ // "Purchasers".
320
+ string audience_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
321
+
322
+ // Required. The dimensions requested and displayed in the audience list
323
+ // response.
324
+ repeated AudienceDimension dimensions = 4
325
+ [(google.api.field_behavior) = REQUIRED];
326
+
327
+ // Optional. The number of remaining days that a recurring audience export
328
+ // will produce an audience list instance. This counter decreases by one each
329
+ // day, and when it reaches zero, no new audience lists will be created.
330
+ //
331
+ // Recurring audience list request for Analytics 360 properties default to 180
332
+ // days and have a maximum of 365 days. Requests for standard Analytics
333
+ // properties default to 14 days and have a maximum of 30 days.
334
+ //
335
+ // The minimum value allowed during creation is 1. Requests above their
336
+ // respective maximum will be coerced to their maximum.
337
+ optional int32 active_days_remaining = 5
338
+ [(google.api.field_behavior) = OPTIONAL];
339
+
340
+ // Output only. Audience list resource names for audience list instances
341
+ // created for this recurring audience list. One audience list is created for
342
+ // each day, and the audience list will be listed here.
343
+ //
344
+ // This list is ordered with the most recently created audience list first.
345
+ repeated string audience_lists = 6
346
+ [(google.api.field_behavior) = OUTPUT_ONLY];
347
+ }
348
+
349
+ // A request to retrieve configuration metadata about a specific recurring
350
+ // audience list.
351
+ message GetRecurringAudienceListRequest {
352
+ // Required. The recurring audience list resource name.
353
+ // Format:
354
+ // `properties/{property}/recurringAudienceLists/{recurring_audience_list}`
355
+ string name = 1 [
356
+ (google.api.field_behavior) = REQUIRED,
357
+ (google.api.resource_reference) = {
358
+ type: "analyticsdata.googleapis.com/RecurringAudienceList"
359
+ }
360
+ ];
361
+ }
362
+
363
+ // A request to list all recurring audience lists for a property.
364
+ message ListRecurringAudienceListsRequest {
365
+ // Required. All recurring audience lists for this property will be listed in
366
+ // the response. Format: `properties/{property}`
367
+ string parent = 1 [
368
+ (google.api.field_behavior) = REQUIRED,
369
+ (google.api.resource_reference) = {
370
+ child_type: "analyticsdata.googleapis.com/RecurringAudienceList"
371
+ }
372
+ ];
373
+
374
+ // Optional. The maximum number of recurring audience lists to return. The
375
+ // service may return fewer than this value. If unspecified, at most 200
376
+ // recurring audience lists will be returned. The maximum value is 1000
377
+ // (higher values will be coerced to the maximum).
378
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
379
+
380
+ // Optional. A page token, received from a previous
381
+ // `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent
382
+ // page.
383
+ //
384
+ // When paginating, all other parameters provided to
385
+ // `ListRecurringAudienceLists` must match the call that provided the page
386
+ // token.
387
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
388
+ }
389
+
390
+ // A list of all recurring audience lists for a property.
391
+ message ListRecurringAudienceListsResponse {
392
+ // Each recurring audience list for a property.
393
+ repeated RecurringAudienceList recurring_audience_lists = 1;
394
+
395
+ // A token, which can be sent as `page_token` to retrieve the next page.
396
+ // If this field is omitted, there are no subsequent pages.
397
+ optional string next_page_token = 2;
132
398
  }
133
399
 
134
400
  // A request to retrieve configuration metadata about a specific audience list.
135
401
  message GetAudienceListRequest {
136
402
  // Required. The audience list resource name.
137
- // Format: `properties/{propertyId}/audienceLists/{audienceListId}`
403
+ // Format: `properties/{property}/audienceLists/{audience_list}`
138
404
  string name = 1 [
139
405
  (google.api.field_behavior) = REQUIRED,
140
406
  (google.api.resource_reference) = {
@@ -146,7 +412,7 @@ message GetAudienceListRequest {
146
412
  // A request to list all audience lists for a property.
147
413
  message ListAudienceListsRequest {
148
414
  // Required. All audience lists for this property will be listed in the
149
- // response. Format: `properties/{propertyId}`
415
+ // response. Format: `properties/{property}`
150
416
  string parent = 1 [
151
417
  (google.api.field_behavior) = REQUIRED,
152
418
  (google.api.resource_reference) = {
@@ -154,18 +420,18 @@ message ListAudienceListsRequest {
154
420
  }
155
421
  ];
156
422
 
157
- // The maximum number of audience lists to return. The service may return
158
- // fewer than this value. If unspecified, at most 200 audience lists will be
159
- // returned. The maximum value is 1000 (higher values will be coerced to the
160
- // maximum).
161
- int32 page_size = 2;
423
+ // Optional. The maximum number of audience lists to return. The service may
424
+ // return fewer than this value. If unspecified, at most 200 audience lists
425
+ // will be returned. The maximum value is 1000 (higher values will be coerced
426
+ // to the maximum).
427
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
162
428
 
163
- // A page token, received from a previous `ListAudienceLists` call. Provide
164
- // this to retrieve the subsequent page.
429
+ // Optional. A page token, received from a previous `ListAudienceLists` call.
430
+ // Provide this to retrieve the subsequent page.
165
431
  //
166
432
  // When paginating, all other parameters provided to `ListAudienceLists` must
167
433
  // match the call that provided the page token.
168
- string page_token = 3;
434
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
169
435
  }
170
436
 
171
437
  // A list of all audience lists for a property.
@@ -181,7 +447,7 @@ message ListAudienceListsResponse {
181
447
  // A request to create a new audience list.
182
448
  message CreateAudienceListRequest {
183
449
  // Required. The parent resource where this audience list will be created.
184
- // Format: `properties/{propertyId}`
450
+ // Format: `properties/{property}`
185
451
  string parent = 1 [
186
452
  (google.api.field_behavior) = REQUIRED,
187
453
  (google.api.resource_reference) = {
@@ -199,7 +465,9 @@ message CreateAudienceListRequest {
199
465
  message AudienceList {
200
466
  option (google.api.resource) = {
201
467
  type: "analyticsdata.googleapis.com/AudienceList"
202
- pattern: "properties/{propertyId}/audienceLists/{audienceListId}"
468
+ pattern: "properties/{property}/audienceLists/{audience_list}"
469
+ plural: "audienceLists"
470
+ singular: "audienceList"
203
471
  };
204
472
 
205
473
  // The AudienceList currently exists in this state.
@@ -221,24 +489,27 @@ message AudienceList {
221
489
  FAILED = 3;
222
490
  }
223
491
 
224
- // Output only. The audience list resource name assigned during creation. This
225
- // resource name identifies this `AudienceList`.
492
+ // Output only. Identifier. The audience list resource name assigned during
493
+ // creation. This resource name identifies this `AudienceList`.
226
494
  //
227
- // Format: `properties/{propertyId}/audienceLists/{audienceListId}`
228
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
495
+ // Format: `properties/{property}/audienceLists/{audience_list}`
496
+ string name = 1 [
497
+ (google.api.field_behavior) = IDENTIFIER,
498
+ (google.api.field_behavior) = OUTPUT_ONLY
499
+ ];
229
500
 
230
501
  // Required. The audience resource name. This resource name identifies the
231
502
  // audience being listed and is shared between the Analytics Data & Admin
232
503
  // APIs.
233
504
  //
234
- // Format: `properties/{propertyId}/audiences/{audienceId}`
505
+ // Format: `properties/{property}/audiences/{audience}`
235
506
  string audience = 2 [(google.api.field_behavior) = REQUIRED];
236
507
 
237
508
  // Output only. The descriptive display name for this audience. For example,
238
509
  // "Purchasers".
239
510
  string audience_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
240
511
 
241
- // Required. The dimensions requested and displayed in the report response.
512
+ // Required. The dimensions requested and displayed in the query response.
242
513
  repeated AudienceDimension dimensions = 4
243
514
  [(google.api.field_behavior) = REQUIRED];
244
515
 
@@ -249,6 +520,33 @@ message AudienceList {
249
520
  // AudienceList began the `CREATING` state.
250
521
  optional google.protobuf.Timestamp begin_creating_time = 6
251
522
  [(google.api.field_behavior) = OUTPUT_ONLY];
523
+
524
+ // Output only. The total quota tokens charged during creation of the
525
+ // AudienceList. Because this token count is based on activity from the
526
+ // `CREATING` state, this tokens charged will be fixed once an AudienceList
527
+ // enters the `ACTIVE` or `FAILED` states.
528
+ int32 creation_quota_tokens_charged = 7
529
+ [(google.api.field_behavior) = OUTPUT_ONLY];
530
+
531
+ // Output only. The total number of rows in the AudienceList result.
532
+ optional int32 row_count = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
533
+
534
+ // Output only. Error message is populated when an audience list fails during
535
+ // creation. A common reason for such a failure is quota exhaustion.
536
+ optional string error_message = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
537
+
538
+ // Output only. The percentage completed for this audience export ranging
539
+ // between 0 to 100.
540
+ optional double percentage_completed = 11
541
+ [(google.api.field_behavior) = OUTPUT_ONLY];
542
+
543
+ // Output only. The recurring audience list that created this audience list.
544
+ // Recurring audience lists create audience lists daily.
545
+ //
546
+ // If audience lists are created directly, they will have no associated
547
+ // recurring audience list, and this field will be blank.
548
+ optional string recurring_audience_list = 12
549
+ [(google.api.field_behavior) = OUTPUT_ONLY];
252
550
  }
253
551
 
254
552
  // This metadata is currently blank.
@@ -256,11 +554,12 @@ message AudienceListMetadata {}
256
554
 
257
555
  // A request to list users in an audience list.
258
556
  message QueryAudienceListRequest {
259
- // The name of the audience list to retrieve users from.
260
- // Format: `properties/{propertyId}/audienceLists/{audienceListId}`
261
- string name = 1;
557
+ // Required. The name of the audience list to retrieve users from.
558
+ // Format: `properties/{property}/audienceLists/{audience_list}`
559
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
262
560
 
263
- // The row count of the start row. The first row is counted as row 0.
561
+ // Optional. The row count of the start row. The first row is counted as row
562
+ // 0.
264
563
  //
265
564
  // When paging, the first request does not specify offset; or equivalently,
266
565
  // sets offset to 0; the first request returns the first `limit` of rows. The
@@ -269,18 +568,18 @@ message QueryAudienceListRequest {
269
568
  //
270
569
  // To learn more about this pagination parameter, see
271
570
  // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
272
- int64 offset = 2;
571
+ int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
273
572
 
274
- // The number of rows to return. If unspecified, 10,000 rows are returned. The
275
- // API returns a maximum of 250,000 rows per request, no matter how many you
276
- // ask for. `limit` must be positive.
573
+ // Optional. The number of rows to return. If unspecified, 10,000 rows are
574
+ // returned. The API returns a maximum of 250,000 rows per request, no matter
575
+ // how many you ask for. `limit` must be positive.
277
576
  //
278
577
  // The API can also return fewer rows than the requested `limit`, if there
279
578
  // aren't as many dimension values as the `limit`.
280
579
  //
281
580
  // To learn more about this pagination parameter, see
282
581
  // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
283
- int64 limit = 3;
582
+ int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
284
583
  }
285
584
 
286
585
  // A list of users in an audience list.
@@ -294,15 +593,78 @@ message QueryAudienceListResponse {
294
593
  // response will be less than or equal to request's page size.
295
594
  repeated AudienceRow audience_rows = 2;
296
595
 
297
- // The total number of rows in the query result. `rowCount` is independent of
298
- // the number of rows returned in the response, the `limit` request
299
- // parameter, and the `offset` request parameter. For example if a query
300
- // returns 175 rows and includes `limit` of 50 in the API request, the
596
+ // The total number of rows in the AudienceList result. `rowCount` is
597
+ // independent of the number of rows returned in the response, the `limit`
598
+ // request parameter, and the `offset` request parameter. For example if a
599
+ // query returns 175 rows and includes `limit` of 50 in the API request, the
600
+ // response will contain `rowCount` of 175 but only 50 rows.
601
+ //
602
+ // To learn more about this pagination parameter, see
603
+ // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
604
+ optional int32 row_count = 3;
605
+ }
606
+
607
+ // A request to export users in an audience list to a Google Sheet.
608
+ message SheetExportAudienceListRequest {
609
+ // Required. The name of the audience list to retrieve users from.
610
+ // Format: `properties/{property}/audienceLists/{audience_list}`
611
+ string name = 1 [
612
+ (google.api.field_behavior) = REQUIRED,
613
+ (google.api.resource_reference) = {
614
+ type: "analyticsdata.googleapis.com/AudienceList"
615
+ }
616
+ ];
617
+
618
+ // Optional. The row count of the start row. The first row is counted as row
619
+ // 0.
620
+ //
621
+ // When paging, the first request does not specify offset; or equivalently,
622
+ // sets offset to 0; the first request returns the first `limit` of rows. The
623
+ // second request sets offset to the `limit` of the first request; the second
624
+ // request returns the second `limit` of rows.
625
+ //
626
+ // To learn more about this pagination parameter, see
627
+ // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
628
+ int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
629
+
630
+ // Optional. The number of rows to return. If unspecified, 10,000 rows are
631
+ // returned. The API returns a maximum of 250,000 rows per request, no matter
632
+ // how many you ask for. `limit` must be positive.
633
+ //
634
+ // The API can also return fewer rows than the requested `limit`, if there
635
+ // aren't as many dimension values as the `limit`.
636
+ //
637
+ // To learn more about this pagination parameter, see
638
+ // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
639
+ int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
640
+ }
641
+
642
+ // The created Google Sheet with the list of users in an audience list.
643
+ message SheetExportAudienceListResponse {
644
+ // A uri for you to visit in your browser to view the Google Sheet.
645
+ optional string spreadsheet_uri = 1;
646
+
647
+ // An ID that identifies the created Google Sheet resource.
648
+ optional string spreadsheet_id = 2;
649
+
650
+ // The total number of rows in the AudienceList result. `rowCount` is
651
+ // independent of the number of rows returned in the response, the `limit`
652
+ // request parameter, and the `offset` request parameter. For example if a
653
+ // query returns 175 rows and includes `limit` of 50 in the API request, the
301
654
  // response will contain `rowCount` of 175 but only 50 rows.
302
655
  //
303
656
  // To learn more about this pagination parameter, see
304
657
  // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
305
658
  optional int32 row_count = 3;
659
+
660
+ // Configuration data about AudienceList being exported. Returned to help
661
+ // interpret the AudienceList in the Google Sheet of this response.
662
+ //
663
+ // For example, the AudienceList may have more rows than are present in the
664
+ // Google Sheet, and in that case, you may want to send an additional sheet
665
+ // export request with a different `offset` value to retrieve the next page of
666
+ // rows in an additional Google Sheet.
667
+ optional AudienceList audience_list = 4;
306
668
  }
307
669
 
308
670
  // Dimension value attributes for the audience user row.
@@ -315,10 +677,10 @@ message AudienceRow {
315
677
  // An audience dimension is a user attribute. Specific user attributed are
316
678
  // requested and then later returned in the `QueryAudienceListResponse`.
317
679
  message AudienceDimension {
318
- // The API name of the dimension. See the [API
680
+ // Optional. The API name of the dimension. See the [API
319
681
  // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions)
320
682
  // for the list of dimension names.
321
- string dimension_name = 1;
683
+ string dimension_name = 1 [(google.api.field_behavior) = OPTIONAL];
322
684
  }
323
685
 
324
686
  // The value of a dimension.
@@ -347,75 +709,79 @@ message RunFunnelReportRequest {
347
709
  TRENDED_FUNNEL = 2;
348
710
  }
349
711
 
350
- // A Google Analytics GA4 property identifier whose events are tracked.
351
- // Specified in the URL path and not the body. To learn more, see [where to
352
- // find your Property
712
+ // Optional. A Google Analytics GA4 property identifier whose events are
713
+ // tracked. Specified in the URL path and not the body. To learn more, see
714
+ // [where to find your Property
353
715
  // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
354
716
  // Within a batch request, this property should either be unspecified or
355
717
  // consistent with the batch-level property.
356
718
  //
357
719
  // Example: properties/1234
358
- string property = 1;
359
-
360
- // Date ranges of data to read. If multiple date ranges are requested, each
361
- // response row will contain a zero based date range index. If two date
362
- // ranges overlap, the event data for the overlapping days is included in the
363
- // response rows for both date ranges.
364
- repeated DateRange date_ranges = 2;
365
-
366
- // The configuration of this request's funnel. This funnel configuration is
367
- // required.
368
- Funnel funnel = 3;
369
-
370
- // If specified, this breakdown adds a dimension to the funnel table sub
371
- // report response. This breakdown dimension expands each funnel step to the
372
- // unique values of the breakdown dimension. For example, a breakdown by the
373
- // `deviceCategory` dimension will create rows for `mobile`, `tablet`,
720
+ string property = 1 [(google.api.field_behavior) = OPTIONAL];
721
+
722
+ // Optional. Date ranges of data to read. If multiple date ranges are
723
+ // requested, each response row will contain a zero based date range index. If
724
+ // two date ranges overlap, the event data for the overlapping days is
725
+ // included in the response rows for both date ranges.
726
+ repeated DateRange date_ranges = 2 [(google.api.field_behavior) = OPTIONAL];
727
+
728
+ // Optional. The configuration of this request's funnel. This funnel
729
+ // configuration is required.
730
+ Funnel funnel = 3 [(google.api.field_behavior) = OPTIONAL];
731
+
732
+ // Optional. If specified, this breakdown adds a dimension to the funnel table
733
+ // sub report response. This breakdown dimension expands each funnel step to
734
+ // the unique values of the breakdown dimension. For example, a breakdown by
735
+ // the `deviceCategory` dimension will create rows for `mobile`, `tablet`,
374
736
  // `desktop`, and the total.
375
- FunnelBreakdown funnel_breakdown = 4;
737
+ FunnelBreakdown funnel_breakdown = 4 [(google.api.field_behavior) = OPTIONAL];
376
738
 
377
- // If specified, next action adds a dimension to the funnel visualization sub
378
- // report response. This next action dimension expands each funnel step to the
379
- // unique values of the next action. For example a next action of the
380
- // `eventName` dimension will create rows for several events (for example
381
- // `session_start` & `click`) and the total.
739
+ // Optional. If specified, next action adds a dimension to the funnel
740
+ // visualization sub report response. This next action dimension expands each
741
+ // funnel step to the unique values of the next action. For example a next
742
+ // action of the `eventName` dimension will create rows for several events
743
+ // (for example `session_start` & `click`) and the total.
382
744
  //
383
745
  // Next action only supports `eventName` and most Page / Screen dimensions
384
746
  // like `pageTitle` and `pagePath`.
385
- FunnelNextAction funnel_next_action = 5;
386
-
387
- // The funnel visualization type controls the dimensions present in the funnel
388
- // visualization sub report response. If not specified, `STANDARD_FUNNEL` is
389
- // used.
390
- FunnelVisualizationType funnel_visualization_type = 6;
391
-
392
- // The configurations of segments. Segments are subsets of a property's data.
393
- // In a funnel report with segments, the funnel is evaluated in each segment.
747
+ FunnelNextAction funnel_next_action = 5
748
+ [(google.api.field_behavior) = OPTIONAL];
749
+
750
+ // Optional. The funnel visualization type controls the dimensions present in
751
+ // the funnel visualization sub report response. If not specified,
752
+ // `STANDARD_FUNNEL` is used.
753
+ FunnelVisualizationType funnel_visualization_type = 6
754
+ [(google.api.field_behavior) = OPTIONAL];
755
+
756
+ // Optional. The configurations of segments. Segments are subsets of a
757
+ // property's data. In a funnel report with segments, the funnel is evaluated
758
+ // in each segment.
394
759
  //
395
760
  // Each segment specified in this request
396
761
  // produces a separate row in the response; in the response, each segment
397
762
  // identified by its name.
398
763
  //
399
764
  // The segments parameter is optional. Requests are limited to 4 segments.
400
- repeated Segment segments = 7;
765
+ repeated Segment segments = 7 [(google.api.field_behavior) = OPTIONAL];
401
766
 
402
- // The number of rows to return. If unspecified, 10,000 rows are returned. The
403
- // API returns a maximum of 250,000 rows per request, no matter how many you
404
- // ask for. `limit` must be positive.
767
+ // Optional. The number of rows to return. If unspecified, 10,000 rows are
768
+ // returned. The API returns a maximum of 250,000 rows per request, no matter
769
+ // how many you ask for. `limit` must be positive.
405
770
  //
406
771
  // The API can also return fewer rows than the requested `limit`, if there
407
772
  // aren't as many dimension values as the `limit`.
408
- int64 limit = 9;
773
+ int64 limit = 9 [(google.api.field_behavior) = OPTIONAL];
409
774
 
410
- // Dimension filters allow you to ask for only specific dimension values in
411
- // the report. To learn more, see [Creating a Report: Dimension
775
+ // Optional. Dimension filters allow you to ask for only specific dimension
776
+ // values in the report. To learn more, see [Creating a Report: Dimension
412
777
  // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
413
778
  // for examples. Metrics cannot be used in this filter.
414
- FilterExpression dimension_filter = 10;
779
+ FilterExpression dimension_filter = 10
780
+ [(google.api.field_behavior) = OPTIONAL];
415
781
 
416
- // Toggles whether to return the current state of this Analytics Property's
417
- // quota. Quota is returned in [PropertyQuota](#PropertyQuota).
418
- bool return_property_quota = 12;
782
+ // Optional. Toggles whether to return the current state of this Analytics
783
+ // Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
784
+ bool return_property_quota = 12 [(google.api.field_behavior) = OPTIONAL];
419
785
  }
420
786
 
421
787
  // The funnel report response contains two sub reports. The two sub reports are