@google-analytics/data 4.2.0 → 4.3.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 +4 -0
- package/build/protos/google/analytics/data/v1beta/analytics_data_api.proto +341 -1
- package/build/protos/google/analytics/data/v1beta/data.proto +54 -7
- package/build/protos/protos.d.ts +1511 -111
- package/build/protos/protos.js +3630 -239
- package/build/protos/protos.json +425 -3
- package/build/src/v1beta/beta_analytics_data_client.d.ts +440 -1
- package/build/src/v1beta/beta_analytics_data_client.js +410 -1
- package/build/src/v1beta/beta_analytics_data_client_config.json +32 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.3.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.2.0...data-v4.3.0) (2023-12-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [analytics-data] add `CreateAudienceExport`, `QueryAudienceExport`, `GetAudienceExport`, `ListAudienceExports` methods to the Data API v1 beta ([#4878](https://github.com/googleapis/google-cloud-node/issues/4878)) ([1f9dc5a](https://github.com/googleapis/google-cloud-node/commit/1f9dc5ae6faf68324ab358b3f4f40328f62e7b64))
|
|
9
|
+
|
|
3
10
|
## [4.2.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.1.0...data-v4.2.0) (2023-11-30)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -121,7 +121,11 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
|
|
|
121
121
|
| 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) |
|
|
122
122
|
| 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) |
|
|
123
123
|
| 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) |
|
|
124
|
+
| Beta_analytics_data.create_audience_export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.create_audience_export.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.create_audience_export.js,packages/google-analytics-data/samples/README.md) |
|
|
125
|
+
| Beta_analytics_data.get_audience_export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.get_audience_export.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.get_audience_export.js,packages/google-analytics-data/samples/README.md) |
|
|
124
126
|
| Beta_analytics_data.get_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.get_metadata.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.get_metadata.js,packages/google-analytics-data/samples/README.md) |
|
|
127
|
+
| Beta_analytics_data.list_audience_exports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.list_audience_exports.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.list_audience_exports.js,packages/google-analytics-data/samples/README.md) |
|
|
128
|
+
| Beta_analytics_data.query_audience_export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.query_audience_export.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.query_audience_export.js,packages/google-analytics-data/samples/README.md) |
|
|
125
129
|
| Beta_analytics_data.run_pivot_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.run_pivot_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/v1beta/beta_analytics_data.run_pivot_report.js,packages/google-analytics-data/samples/README.md) |
|
|
126
130
|
| Beta_analytics_data.run_realtime_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.run_realtime_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/v1beta/beta_analytics_data.run_realtime_report.js,packages/google-analytics-data/samples/README.md) |
|
|
127
131
|
| Beta_analytics_data.run_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.run_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/v1beta/beta_analytics_data.run_report.js,packages/google-analytics-data/samples/README.md) |
|
|
@@ -21,11 +21,17 @@ import "google/api/annotations.proto";
|
|
|
21
21
|
import "google/api/client.proto";
|
|
22
22
|
import "google/api/field_behavior.proto";
|
|
23
23
|
import "google/api/resource.proto";
|
|
24
|
+
import "google/longrunning/operations.proto";
|
|
25
|
+
import "google/protobuf/timestamp.proto";
|
|
24
26
|
|
|
25
27
|
option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1beta;data";
|
|
26
28
|
option java_multiple_files = true;
|
|
27
29
|
option java_outer_classname = "AnalyticsDataApiProto";
|
|
28
30
|
option java_package = "com.google.analytics.data.v1beta";
|
|
31
|
+
option (google.api.resource_definition) = {
|
|
32
|
+
type: "analyticsadmin.googleapis.com/Property"
|
|
33
|
+
pattern: "properties/{property}"
|
|
34
|
+
};
|
|
29
35
|
|
|
30
36
|
// Google Analytics reporting data service.
|
|
31
37
|
service BetaAnalyticsData {
|
|
@@ -135,6 +141,114 @@ service BetaAnalyticsData {
|
|
|
135
141
|
body: "*"
|
|
136
142
|
};
|
|
137
143
|
}
|
|
144
|
+
|
|
145
|
+
// Creates an audience export for later retrieval. This method quickly returns
|
|
146
|
+
// the audience export's resource name and initiates a long running
|
|
147
|
+
// asynchronous request to form an audience export. To export the users in an
|
|
148
|
+
// audience export, first create the audience export through this method and
|
|
149
|
+
// then send the audience resource name to the `QueryAudienceExport` method.
|
|
150
|
+
//
|
|
151
|
+
// See [Creating an Audience
|
|
152
|
+
// Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
153
|
+
// for an introduction to Audience Exports with examples.
|
|
154
|
+
//
|
|
155
|
+
// An audience export is a snapshot of the users currently in the audience at
|
|
156
|
+
// the time of audience export creation. Creating audience exports for one
|
|
157
|
+
// audience on different days will return different results as users enter and
|
|
158
|
+
// exit the audience.
|
|
159
|
+
//
|
|
160
|
+
// Audiences in Google Analytics 4 allow you to segment your users in the ways
|
|
161
|
+
// that are important to your business. To learn more, see
|
|
162
|
+
// https://support.google.com/analytics/answer/9267572. Audience exports
|
|
163
|
+
// contain the users in each audience.
|
|
164
|
+
//
|
|
165
|
+
// Audience Export APIs have some methods at alpha and other methods at beta
|
|
166
|
+
// stability. The intention is to advance methods to beta stability after some
|
|
167
|
+
// feedback and adoption. To give your feedback on this API, complete the
|
|
168
|
+
// [Google Analytics Audience Export API
|
|
169
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
170
|
+
rpc CreateAudienceExport(CreateAudienceExportRequest)
|
|
171
|
+
returns (google.longrunning.Operation) {
|
|
172
|
+
option (google.api.http) = {
|
|
173
|
+
post: "/v1beta/{parent=properties/*}/audienceExports"
|
|
174
|
+
body: "audience_export"
|
|
175
|
+
};
|
|
176
|
+
option (google.api.method_signature) = "parent,audience_export";
|
|
177
|
+
option (google.longrunning.operation_info) = {
|
|
178
|
+
response_type: "AudienceExport"
|
|
179
|
+
metadata_type: "AudienceExportMetadata"
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Retrieves an audience export of users. After creating an audience, the
|
|
184
|
+
// users are not immediately available for exporting. First, a request to
|
|
185
|
+
// `CreateAudienceExport` is necessary to create an audience export of users,
|
|
186
|
+
// and then second, this method is used to retrieve the users in the audience
|
|
187
|
+
// export.
|
|
188
|
+
//
|
|
189
|
+
// See [Creating an Audience
|
|
190
|
+
// Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
191
|
+
// for an introduction to Audience Exports with examples.
|
|
192
|
+
//
|
|
193
|
+
// Audiences in Google Analytics 4 allow you to segment your users in the ways
|
|
194
|
+
// that are important to your business. To learn more, see
|
|
195
|
+
// https://support.google.com/analytics/answer/9267572.
|
|
196
|
+
//
|
|
197
|
+
// Audience Export APIs have some methods at alpha and other methods at beta
|
|
198
|
+
// stability. The intention is to advance methods to beta stability after some
|
|
199
|
+
// feedback and adoption. To give your feedback on this API, complete the
|
|
200
|
+
// [Google Analytics Audience Export API
|
|
201
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
202
|
+
rpc QueryAudienceExport(QueryAudienceExportRequest)
|
|
203
|
+
returns (QueryAudienceExportResponse) {
|
|
204
|
+
option (google.api.http) = {
|
|
205
|
+
post: "/v1beta/{name=properties/*/audienceExports/*}:query"
|
|
206
|
+
body: "*"
|
|
207
|
+
};
|
|
208
|
+
option (google.api.method_signature) = "name";
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Gets configuration metadata about a specific audience export. This method
|
|
212
|
+
// can be used to understand an audience export after it has been created.
|
|
213
|
+
//
|
|
214
|
+
// See [Creating an Audience
|
|
215
|
+
// Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
216
|
+
// for an introduction to Audience Exports with examples.
|
|
217
|
+
//
|
|
218
|
+
// Audience Export APIs have some methods at alpha and other methods at beta
|
|
219
|
+
// stability. The intention is to advance methods to beta stability after some
|
|
220
|
+
// feedback and adoption. To give your feedback on this API, complete the
|
|
221
|
+
// [Google Analytics Audience Export API
|
|
222
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
223
|
+
rpc GetAudienceExport(GetAudienceExportRequest) returns (AudienceExport) {
|
|
224
|
+
option (google.api.http) = {
|
|
225
|
+
get: "/v1beta/{name=properties/*/audienceExports/*}"
|
|
226
|
+
};
|
|
227
|
+
option (google.api.method_signature) = "name";
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Lists all audience exports for a property. This method can be used for you
|
|
231
|
+
// to find and reuse existing audience exports rather than creating
|
|
232
|
+
// unnecessary new audience exports. The same audience can have multiple
|
|
233
|
+
// audience exports that represent the export of users that were in an
|
|
234
|
+
// audience on different days.
|
|
235
|
+
//
|
|
236
|
+
// See [Creating an Audience
|
|
237
|
+
// Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
238
|
+
// for an introduction to Audience Exports with examples.
|
|
239
|
+
//
|
|
240
|
+
// Audience Export APIs have some methods at alpha and other methods at beta
|
|
241
|
+
// stability. The intention is to advance methods to beta stability after some
|
|
242
|
+
// feedback and adoption. To give your feedback on this API, complete the
|
|
243
|
+
// [Google Analytics Audience Export API
|
|
244
|
+
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
245
|
+
rpc ListAudienceExports(ListAudienceExportsRequest)
|
|
246
|
+
returns (ListAudienceExportsResponse) {
|
|
247
|
+
option (google.api.http) = {
|
|
248
|
+
get: "/v1beta/{parent=properties/*}/audienceExports"
|
|
249
|
+
};
|
|
250
|
+
option (google.api.method_signature) = "parent";
|
|
251
|
+
}
|
|
138
252
|
}
|
|
139
253
|
|
|
140
254
|
// The request for compatibility information for a report's dimensions and
|
|
@@ -181,7 +295,8 @@ message CheckCompatibilityResponse {
|
|
|
181
295
|
repeated MetricCompatibility metric_compatibilities = 2;
|
|
182
296
|
}
|
|
183
297
|
|
|
184
|
-
// The dimensions and
|
|
298
|
+
// The dimensions, metrics and comparisons currently accepted in reporting
|
|
299
|
+
// methods.
|
|
185
300
|
message Metadata {
|
|
186
301
|
option (google.api.resource) = {
|
|
187
302
|
type: "analyticsdata.googleapis.com/Metadata"
|
|
@@ -640,3 +755,228 @@ message RunRealtimeReportResponse {
|
|
|
640
755
|
// between response types in JSON.
|
|
641
756
|
string kind = 9;
|
|
642
757
|
}
|
|
758
|
+
|
|
759
|
+
// A request to retrieve configuration metadata about a specific audience
|
|
760
|
+
// export.
|
|
761
|
+
message GetAudienceExportRequest {
|
|
762
|
+
// Required. The audience export resource name.
|
|
763
|
+
// Format: `properties/{property}/audienceExports/{audience_export}`
|
|
764
|
+
string name = 1 [
|
|
765
|
+
(google.api.field_behavior) = REQUIRED,
|
|
766
|
+
(google.api.resource_reference) = {
|
|
767
|
+
type: "analyticsdata.googleapis.com/AudienceExport"
|
|
768
|
+
}
|
|
769
|
+
];
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// A request to list all audience exports for a property.
|
|
773
|
+
message ListAudienceExportsRequest {
|
|
774
|
+
// Required. All audience exports for this property will be listed in the
|
|
775
|
+
// response. Format: `properties/{property}`
|
|
776
|
+
string parent = 1 [
|
|
777
|
+
(google.api.field_behavior) = REQUIRED,
|
|
778
|
+
(google.api.resource_reference) = {
|
|
779
|
+
child_type: "analyticsdata.googleapis.com/AudienceExport"
|
|
780
|
+
}
|
|
781
|
+
];
|
|
782
|
+
|
|
783
|
+
// Optional. The maximum number of audience exports to return. The service may
|
|
784
|
+
// return fewer than this value. If unspecified, at most 200 audience exports
|
|
785
|
+
// will be returned. The maximum value is 1000 (higher values will be coerced
|
|
786
|
+
// to the maximum).
|
|
787
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
788
|
+
|
|
789
|
+
// Optional. A page token, received from a previous `ListAudienceExports`
|
|
790
|
+
// call. Provide this to retrieve the subsequent page.
|
|
791
|
+
//
|
|
792
|
+
// When paginating, all other parameters provided to `ListAudienceExports`
|
|
793
|
+
// must match the call that provided the page token.
|
|
794
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// A list of all audience exports for a property.
|
|
798
|
+
message ListAudienceExportsResponse {
|
|
799
|
+
// Each audience export for a property.
|
|
800
|
+
repeated AudienceExport audience_exports = 1;
|
|
801
|
+
|
|
802
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
803
|
+
// If this field is omitted, there are no subsequent pages.
|
|
804
|
+
optional string next_page_token = 2;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// A request to create a new audience export.
|
|
808
|
+
message CreateAudienceExportRequest {
|
|
809
|
+
// Required. The parent resource where this audience export will be created.
|
|
810
|
+
// Format: `properties/{property}`
|
|
811
|
+
string parent = 1 [
|
|
812
|
+
(google.api.field_behavior) = REQUIRED,
|
|
813
|
+
(google.api.resource_reference) = {
|
|
814
|
+
child_type: "analyticsdata.googleapis.com/AudienceExport"
|
|
815
|
+
}
|
|
816
|
+
];
|
|
817
|
+
|
|
818
|
+
// Required. The audience export to create.
|
|
819
|
+
AudienceExport audience_export = 2 [(google.api.field_behavior) = REQUIRED];
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
// An audience export is a list of users in an audience at the time of the
|
|
823
|
+
// list's creation. One audience may have multiple audience exports created for
|
|
824
|
+
// different days.
|
|
825
|
+
message AudienceExport {
|
|
826
|
+
option (google.api.resource) = {
|
|
827
|
+
type: "analyticsdata.googleapis.com/AudienceExport"
|
|
828
|
+
pattern: "properties/{property}/audienceExports/{audience_export}"
|
|
829
|
+
plural: "audienceExports"
|
|
830
|
+
singular: "audienceExport"
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
// The AudienceExport currently exists in this state.
|
|
834
|
+
enum State {
|
|
835
|
+
// Unspecified state will never be used.
|
|
836
|
+
STATE_UNSPECIFIED = 0;
|
|
837
|
+
|
|
838
|
+
// The AudienceExport is currently creating and will be available in the
|
|
839
|
+
// future. Creating occurs immediately after the CreateAudienceExport call.
|
|
840
|
+
CREATING = 1;
|
|
841
|
+
|
|
842
|
+
// The AudienceExport is fully created and ready for querying. An
|
|
843
|
+
// AudienceExport is updated to active asynchronously from a request; this
|
|
844
|
+
// occurs some time (for example 15 minutes) after the initial create call.
|
|
845
|
+
ACTIVE = 2;
|
|
846
|
+
|
|
847
|
+
// The AudienceExport failed to be created. It is possible that
|
|
848
|
+
// re-requesting this audience export will succeed.
|
|
849
|
+
FAILED = 3;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
// Output only. Identifier. The audience export resource name assigned during
|
|
853
|
+
// creation. This resource name identifies this `AudienceExport`.
|
|
854
|
+
//
|
|
855
|
+
// Format: `properties/{property}/audienceExports/{audience_export}`
|
|
856
|
+
string name = 1 [
|
|
857
|
+
(google.api.field_behavior) = IDENTIFIER,
|
|
858
|
+
(google.api.field_behavior) = OUTPUT_ONLY
|
|
859
|
+
];
|
|
860
|
+
|
|
861
|
+
// Required. The audience resource name. This resource name identifies the
|
|
862
|
+
// audience being listed and is shared between the Analytics Data & Admin
|
|
863
|
+
// APIs.
|
|
864
|
+
//
|
|
865
|
+
// Format: `properties/{property}/audiences/{audience}`
|
|
866
|
+
string audience = 2 [(google.api.field_behavior) = REQUIRED];
|
|
867
|
+
|
|
868
|
+
// Output only. The descriptive display name for this audience. For example,
|
|
869
|
+
// "Purchasers".
|
|
870
|
+
string audience_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
871
|
+
|
|
872
|
+
// Required. The dimensions requested and displayed in the query response.
|
|
873
|
+
repeated AudienceDimension dimensions = 4
|
|
874
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
875
|
+
|
|
876
|
+
// Output only. The current state for this AudienceExport.
|
|
877
|
+
optional State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
878
|
+
|
|
879
|
+
// Output only. The time when CreateAudienceExport was called and the
|
|
880
|
+
// AudienceExport began the `CREATING` state.
|
|
881
|
+
optional google.protobuf.Timestamp begin_creating_time = 6
|
|
882
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
883
|
+
|
|
884
|
+
// Output only. The total quota tokens charged during creation of the
|
|
885
|
+
// AudienceExport. Because this token count is based on activity from the
|
|
886
|
+
// `CREATING` state, this tokens charged will be fixed once an AudienceExport
|
|
887
|
+
// enters the `ACTIVE` or `FAILED` states.
|
|
888
|
+
int32 creation_quota_tokens_charged = 7
|
|
889
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
890
|
+
|
|
891
|
+
// Output only. The total number of rows in the AudienceExport result.
|
|
892
|
+
optional int32 row_count = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
893
|
+
|
|
894
|
+
// Output only. Error message is populated when an audience export fails
|
|
895
|
+
// during creation. A common reason for such a failure is quota exhaustion.
|
|
896
|
+
optional string error_message = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
897
|
+
|
|
898
|
+
// Output only. The percentage completed for this audience export ranging
|
|
899
|
+
// between 0 to 100.
|
|
900
|
+
optional double percentage_completed = 10
|
|
901
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// This metadata is currently blank.
|
|
905
|
+
message AudienceExportMetadata {}
|
|
906
|
+
|
|
907
|
+
// A request to list users in an audience export.
|
|
908
|
+
message QueryAudienceExportRequest {
|
|
909
|
+
// Required. The name of the audience export to retrieve users from.
|
|
910
|
+
// Format: `properties/{property}/audienceExports/{audience_export}`
|
|
911
|
+
string name = 1 [(google.api.field_behavior) = REQUIRED];
|
|
912
|
+
|
|
913
|
+
// Optional. The row count of the start row. The first row is counted as row
|
|
914
|
+
// 0.
|
|
915
|
+
//
|
|
916
|
+
// When paging, the first request does not specify offset; or equivalently,
|
|
917
|
+
// sets offset to 0; the first request returns the first `limit` of rows. The
|
|
918
|
+
// second request sets offset to the `limit` of the first request; the second
|
|
919
|
+
// request returns the second `limit` of rows.
|
|
920
|
+
//
|
|
921
|
+
// To learn more about this pagination parameter, see
|
|
922
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
923
|
+
int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
924
|
+
|
|
925
|
+
// Optional. The number of rows to return. If unspecified, 10,000 rows are
|
|
926
|
+
// returned. The API returns a maximum of 250,000 rows per request, no matter
|
|
927
|
+
// how many you ask for. `limit` must be positive.
|
|
928
|
+
//
|
|
929
|
+
// The API can also return fewer rows than the requested `limit`, if there
|
|
930
|
+
// aren't as many dimension values as the `limit`.
|
|
931
|
+
//
|
|
932
|
+
// To learn more about this pagination parameter, see
|
|
933
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
934
|
+
int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
// A list of users in an audience export.
|
|
938
|
+
message QueryAudienceExportResponse {
|
|
939
|
+
// Configuration data about AudienceExport being queried. Returned to help
|
|
940
|
+
// interpret the audience rows in this response. For example, the dimensions
|
|
941
|
+
// in this AudienceExport correspond to the columns in the AudienceRows.
|
|
942
|
+
optional AudienceExport audience_export = 1;
|
|
943
|
+
|
|
944
|
+
// Rows for each user in an audience export. The number of rows in this
|
|
945
|
+
// response will be less than or equal to request's page size.
|
|
946
|
+
repeated AudienceRow audience_rows = 2;
|
|
947
|
+
|
|
948
|
+
// The total number of rows in the AudienceExport result. `rowCount` is
|
|
949
|
+
// independent of the number of rows returned in the response, the `limit`
|
|
950
|
+
// request parameter, and the `offset` request parameter. For example if a
|
|
951
|
+
// query returns 175 rows and includes `limit` of 50 in the API request, the
|
|
952
|
+
// response will contain `rowCount` of 175 but only 50 rows.
|
|
953
|
+
//
|
|
954
|
+
// To learn more about this pagination parameter, see
|
|
955
|
+
// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
|
956
|
+
optional int32 row_count = 3;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
// Dimension value attributes for the audience user row.
|
|
960
|
+
message AudienceRow {
|
|
961
|
+
// Each dimension value attribute for an audience user. One dimension value
|
|
962
|
+
// will be added for each dimension column requested.
|
|
963
|
+
repeated AudienceDimensionValue dimension_values = 1;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
// An audience dimension is a user attribute. Specific user attributed are
|
|
967
|
+
// requested and then later returned in the `QueryAudienceExportResponse`.
|
|
968
|
+
message AudienceDimension {
|
|
969
|
+
// Optional. The API name of the dimension. See the [API
|
|
970
|
+
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions)
|
|
971
|
+
// for the list of dimension names.
|
|
972
|
+
string dimension_name = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
// The value of a dimension.
|
|
976
|
+
message AudienceDimensionValue {
|
|
977
|
+
// One kind of dimension value.
|
|
978
|
+
oneof one_value {
|
|
979
|
+
// Value as a string if the dimension type is a string.
|
|
980
|
+
string value = 1;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
@@ -81,7 +81,16 @@ message MinuteRange {
|
|
|
81
81
|
message Dimension {
|
|
82
82
|
// The name of the dimension. See the [API
|
|
83
83
|
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
|
|
84
|
-
// for the list of dimension names
|
|
84
|
+
// for the list of dimension names supported by core reporting methods such
|
|
85
|
+
// as `runReport` and `batchRunReports`. See
|
|
86
|
+
// [Realtime
|
|
87
|
+
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
|
|
88
|
+
// for the list of dimension names supported by the `runRealtimeReport`
|
|
89
|
+
// method. See
|
|
90
|
+
// [Funnel
|
|
91
|
+
// Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
|
|
92
|
+
// for the list of dimension names supported by the `runFunnelReport`
|
|
93
|
+
// method.
|
|
85
94
|
//
|
|
86
95
|
// If `dimensionExpression` is specified, `name` can be any string that you
|
|
87
96
|
// would like within the allowed character set. For example if a
|
|
@@ -146,7 +155,16 @@ message DimensionExpression {
|
|
|
146
155
|
message Metric {
|
|
147
156
|
// The name of the metric. See the [API
|
|
148
157
|
// Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
|
|
149
|
-
// for the list of metric names
|
|
158
|
+
// for the list of metric names supported by core reporting methods such
|
|
159
|
+
// as `runReport` and `batchRunReports`. See
|
|
160
|
+
// [Realtime
|
|
161
|
+
// Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics)
|
|
162
|
+
// for the list of metric names supported by the `runRealtimeReport`
|
|
163
|
+
// method. See
|
|
164
|
+
// [Funnel
|
|
165
|
+
// Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics)
|
|
166
|
+
// for the list of metric names supported by the `runFunnelReport`
|
|
167
|
+
// method.
|
|
150
168
|
//
|
|
151
169
|
// If `expression` is specified, `name` can be any string that you would like
|
|
152
170
|
// within the allowed character set. For example if `expression` is
|
|
@@ -626,10 +644,39 @@ message ResponseMetaData {
|
|
|
626
644
|
// possible for a request to be subject to thresholding thresholding and no
|
|
627
645
|
// data is absent from the report, and this happens when all data is above the
|
|
628
646
|
// thresholds. To learn more, see [Data
|
|
629
|
-
// thresholds](https://support.google.com/analytics/answer/9383630)
|
|
630
|
-
// Demographics and
|
|
631
|
-
// Interests](https://support.google.com/analytics/answer/2799357).
|
|
647
|
+
// thresholds](https://support.google.com/analytics/answer/9383630).
|
|
632
648
|
optional bool subject_to_thresholding = 8;
|
|
649
|
+
|
|
650
|
+
// If this report results is
|
|
651
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
652
|
+
// describes the percentage of events used in this report. One
|
|
653
|
+
// `samplingMetadatas` is populated for each date range. Each
|
|
654
|
+
// `samplingMetadatas` corresponds to a date range in order that date ranges
|
|
655
|
+
// were specified in the request.
|
|
656
|
+
//
|
|
657
|
+
// However if the results are not sampled, this field will not be defined.
|
|
658
|
+
repeated SamplingMetadata sampling_metadatas = 9;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
// If this report results is
|
|
662
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
663
|
+
// describes the percentage of events used in this report. Sampling is the
|
|
664
|
+
// practice of analyzing a subset of all data in order to uncover the meaningful
|
|
665
|
+
// information in the larger data set.
|
|
666
|
+
message SamplingMetadata {
|
|
667
|
+
// The total number of events read in this sampled report for a date range.
|
|
668
|
+
// This is the size of the subset this property's data that was analyzed in
|
|
669
|
+
// this report.
|
|
670
|
+
int64 samples_read_count = 1;
|
|
671
|
+
|
|
672
|
+
// The total number of events present in this property's data that could
|
|
673
|
+
// have been analyzed in this report for a date range. Sampling
|
|
674
|
+
// uncovers the meaningful information about the larger data set, and this
|
|
675
|
+
// is the size of the larger data set.
|
|
676
|
+
//
|
|
677
|
+
// To calculate the percentage of available data that was used in this
|
|
678
|
+
// report, compute `samplesReadCount/samplingSpaceSize`.
|
|
679
|
+
int64 sampling_space_size = 2;
|
|
633
680
|
}
|
|
634
681
|
|
|
635
682
|
// Describes a dimension column in the report. Dimensions requested in a report
|
|
@@ -789,10 +836,10 @@ message PropertyQuota {
|
|
|
789
836
|
// Current state for a particular quota group.
|
|
790
837
|
message QuotaStatus {
|
|
791
838
|
// Quota consumed by this request.
|
|
792
|
-
int32 consumed = 1;
|
|
839
|
+
optional int32 consumed = 1;
|
|
793
840
|
|
|
794
841
|
// Quota remaining after this request.
|
|
795
|
-
int32 remaining = 2;
|
|
842
|
+
optional int32 remaining = 2;
|
|
796
843
|
}
|
|
797
844
|
|
|
798
845
|
// Explains a dimension.
|