@maxim_mazurok/gapi.client.analyticsadmin-v1beta 0.0.20230105

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/index.d.ts ADDED
@@ -0,0 +1,2504 @@
1
+ /* Type definitions for non-npm package Google Analytics Admin API v1beta 0.0 */
2
+ // Project: http://code.google.com/apis/analytics/docs/mgmt/home.html
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta
12
+ // Revision: 20230105
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Google Analytics Admin API v1beta */
18
+ function load(urlOrObject: "https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta"): Promise<void>;
19
+ /** @deprecated Please load APIs with discovery documents. */
20
+ function load(name: "analyticsadmin", version: "v1beta"): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: "analyticsadmin", version: "v1beta", callback: () => any): void;
23
+
24
+ namespace analyticsadmin {
25
+ interface GoogleAnalyticsAdminV1betaAccount {
26
+ /** Output only. Time when this account was originally created. */
27
+ createTime?: string;
28
+ /** Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested. */
29
+ deleted?: boolean;
30
+ /** Required. Human-readable display name for this account. */
31
+ displayName?: string;
32
+ /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
33
+ name?: string;
34
+ /** Country of business. Must be a Unicode CLDR region code. */
35
+ regionCode?: string;
36
+ /** Output only. Time when account payload fields were last updated. */
37
+ updateTime?: string;
38
+ }
39
+ interface GoogleAnalyticsAdminV1betaAccountSummary {
40
+ /** Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000" */
41
+ account?: string;
42
+ /** Display name for the account referred to in this account summary. */
43
+ displayName?: string;
44
+ /** Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000" */
45
+ name?: string;
46
+ /** List of summaries for child accounts of this account. */
47
+ propertySummaries?: GoogleAnalyticsAdminV1betaPropertySummary[];
48
+ }
49
+ interface GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest {
50
+ /**
51
+ * Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: "I acknowledge that I have the
52
+ * necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information
53
+ * Google Analytics collects from my site and/or app property."
54
+ */
55
+ acknowledgement?: string;
56
+ }
57
+ // tslint:disable-next-line:no-empty-interface
58
+ interface GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse {
59
+ }
60
+ // tslint:disable-next-line:no-empty-interface
61
+ interface GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest {
62
+ }
63
+ // tslint:disable-next-line:no-empty-interface
64
+ interface GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest {
65
+ }
66
+ interface GoogleAnalyticsAdminV1betaChangeHistoryChange {
67
+ /** The type of action that changed this resource. */
68
+ action?: string;
69
+ /** Resource name of the resource whose changes are described by this entry. */
70
+ resource?: string;
71
+ /** Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing. */
72
+ resourceAfterChange?: GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource;
73
+ /** Resource contents from before the change was made. If this resource was created in this change, this field will be missing. */
74
+ resourceBeforeChange?: GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource;
75
+ }
76
+ interface GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource {
77
+ /** A snapshot of an Account resource in change history. */
78
+ account?: GoogleAnalyticsAdminV1betaAccount;
79
+ /** A snapshot of a ConversionEvent resource in change history. */
80
+ conversionEvent?: GoogleAnalyticsAdminV1betaConversionEvent;
81
+ /** A snapshot of a data retention settings resource in change history. */
82
+ dataRetentionSettings?: GoogleAnalyticsAdminV1betaDataRetentionSettings;
83
+ /** A snapshot of a DataStream resource in change history. */
84
+ dataStream?: GoogleAnalyticsAdminV1betaDataStream;
85
+ /** A snapshot of a FirebaseLink resource in change history. */
86
+ firebaseLink?: GoogleAnalyticsAdminV1betaFirebaseLink;
87
+ /** A snapshot of a GoogleAdsLink resource in change history. */
88
+ googleAdsLink?: GoogleAnalyticsAdminV1betaGoogleAdsLink;
89
+ /** A snapshot of a MeasurementProtocolSecret resource in change history. */
90
+ measurementProtocolSecret?: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret;
91
+ /** A snapshot of a Property resource in change history. */
92
+ property?: GoogleAnalyticsAdminV1betaProperty;
93
+ }
94
+ interface GoogleAnalyticsAdminV1betaChangeHistoryEvent {
95
+ /** The type of actor that made this change. */
96
+ actorType?: string;
97
+ /** A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest. */
98
+ changes?: GoogleAnalyticsAdminV1betaChangeHistoryChange[];
99
+ /** If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event. */
100
+ changesFiltered?: boolean;
101
+ /** Time when change was made. */
102
+ changeTime?: string;
103
+ /** ID of this change history event. This ID is unique across Google Analytics. */
104
+ id?: string;
105
+ /**
106
+ * Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been
107
+ * deleted will cause an error.
108
+ */
109
+ userActorEmail?: string;
110
+ }
111
+ interface GoogleAnalyticsAdminV1betaConversionEvent {
112
+ /** Output only. Time when this conversion event was created in the property. */
113
+ createTime?: string;
114
+ /**
115
+ * Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have
116
+ * special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum
117
+ * number of custom conversion events that may be created per property.
118
+ */
119
+ custom?: boolean;
120
+ /** Output only. If set, this event can currently be deleted via DeleteConversionEvent. */
121
+ deletable?: boolean;
122
+ /** Immutable. The event name for this conversion event. Examples: 'click', 'purchase' */
123
+ eventName?: string;
124
+ /** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
125
+ name?: string;
126
+ }
127
+ interface GoogleAnalyticsAdminV1betaCustomDimension {
128
+ /** Optional. Description for this custom dimension. Max length of 150 characters. */
129
+ description?: string;
130
+ /** Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions. */
131
+ disallowAdsPersonalization?: boolean;
132
+ /**
133
+ * Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy
134
+ * system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
135
+ */
136
+ displayName?: string;
137
+ /** Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension} */
138
+ name?: string;
139
+ /**
140
+ * Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension,
141
+ * then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40
142
+ * characters for event-scoped dimensions.
143
+ */
144
+ parameterName?: string;
145
+ /** Required. Immutable. The scope of this dimension. */
146
+ scope?: string;
147
+ }
148
+ interface GoogleAnalyticsAdminV1betaCustomMetric {
149
+ /** Optional. Description for this custom dimension. Max length of 150 characters. */
150
+ description?: string;
151
+ /**
152
+ * Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy
153
+ * system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
154
+ */
155
+ displayName?: string;
156
+ /** Required. The type for the custom metric's value. */
157
+ measurementUnit?: string;
158
+ /** Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} */
159
+ name?: string;
160
+ /**
161
+ * Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore
162
+ * charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
163
+ */
164
+ parameterName?: string;
165
+ /** Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit. */
166
+ restrictedMetricType?: string[];
167
+ /** Required. Immutable. The scope of this custom metric. */
168
+ scope?: string;
169
+ }
170
+ interface GoogleAnalyticsAdminV1betaDataRetentionSettings {
171
+ /** The length of time that event-level data is retained. */
172
+ eventDataRetention?: string;
173
+ /** Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings */
174
+ name?: string;
175
+ /** If true, reset the retention period for the user identifier with every event from that user. */
176
+ resetUserDataOnNewActivity?: boolean;
177
+ }
178
+ interface GoogleAnalyticsAdminV1betaDataSharingSettings {
179
+ /** Output only. Resource name. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" */
180
+ name?: string;
181
+ /** Allows any of Google sales to access the data in order to suggest configuration changes to improve results. */
182
+ sharingWithGoogleAnySalesEnabled?: boolean;
183
+ /**
184
+ * Allows Google sales teams that are assigned to the customer to access the data in order to suggest configuration changes to improve results. Sales team restrictions still apply when
185
+ * enabled.
186
+ */
187
+ sharingWithGoogleAssignedSalesEnabled?: boolean;
188
+ /** Allows Google to use the data to improve other Google products or services. */
189
+ sharingWithGoogleProductsEnabled?: boolean;
190
+ /** Allows Google support to access the data in order to help troubleshoot issues. */
191
+ sharingWithGoogleSupportEnabled?: boolean;
192
+ /** Allows Google to share the data anonymously in aggregate form with others. */
193
+ sharingWithOthersEnabled?: boolean;
194
+ }
195
+ interface GoogleAnalyticsAdminV1betaDataStream {
196
+ /** Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM. */
197
+ androidAppStreamData?: GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData;
198
+ /** Output only. Time when this stream was originally created. */
199
+ createTime?: string;
200
+ /** Human-readable display name for the Data Stream. Required for web data streams. The max allowed display name length is 255 UTF-16 code units. */
201
+ displayName?: string;
202
+ /** Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM. */
203
+ iosAppStreamData?: GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData;
204
+ /** Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" */
205
+ name?: string;
206
+ /** Required. Immutable. The type of this DataStream resource. */
207
+ type?: string;
208
+ /** Output only. Time when stream payload fields were last updated. */
209
+ updateTime?: string;
210
+ /** Data specific to web streams. Must be populated if type is WEB_DATA_STREAM. */
211
+ webStreamData?: GoogleAnalyticsAdminV1betaDataStreamWebStreamData;
212
+ }
213
+ interface GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData {
214
+ /** Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app is deleted and recreated. */
215
+ firebaseAppId?: string;
216
+ /** Immutable. The package name for the app being measured. Example: "com.example.myandroidapp" */
217
+ packageName?: string;
218
+ }
219
+ interface GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData {
220
+ /** Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp" */
221
+ bundleId?: string;
222
+ /** Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated. */
223
+ firebaseAppId?: string;
224
+ }
225
+ interface GoogleAnalyticsAdminV1betaDataStreamWebStreamData {
226
+ /** Immutable. Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com" */
227
+ defaultUri?: string;
228
+ /** Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated. */
229
+ firebaseAppId?: string;
230
+ /** Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-1A2BCD345E" would just be "1A2BCD345E" */
231
+ measurementId?: string;
232
+ }
233
+ interface GoogleAnalyticsAdminV1betaFirebaseLink {
234
+ /** Output only. Time when this FirebaseLink was originally created. */
235
+ createTime?: string;
236
+ /** Output only. Example format: properties/1234/firebaseLinks/5678 */
237
+ name?: string;
238
+ /**
239
+ * Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name using either a project number or project ID. Once this resource has been
240
+ * created, returned FirebaseLinks will always have a project_name that contains a project number. Format: 'projects/{project number}' Example: 'projects/1234'
241
+ */
242
+ project?: string;
243
+ }
244
+ interface GoogleAnalyticsAdminV1betaGoogleAdsLink {
245
+ /**
246
+ * Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the
247
+ * linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
248
+ */
249
+ adsPersonalizationEnabled?: boolean;
250
+ /** Output only. If true, this link is for a Google Ads manager account. */
251
+ canManageClients?: boolean;
252
+ /** Output only. Time when this link was originally created. */
253
+ createTime?: string;
254
+ /** Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved. */
255
+ creatorEmailAddress?: string;
256
+ /** Immutable. Google Ads customer ID. */
257
+ customerId?: string;
258
+ /** Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. */
259
+ name?: string;
260
+ /** Output only. Time when this link was last updated. */
261
+ updateTime?: string;
262
+ }
263
+ interface GoogleAnalyticsAdminV1betaListAccountsResponse {
264
+ /** Results that were accessible to the caller. */
265
+ accounts?: GoogleAnalyticsAdminV1betaAccount[];
266
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
267
+ nextPageToken?: string;
268
+ }
269
+ interface GoogleAnalyticsAdminV1betaListAccountSummariesResponse {
270
+ /** Account summaries of all accounts the caller has access to. */
271
+ accountSummaries?: GoogleAnalyticsAdminV1betaAccountSummary[];
272
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
273
+ nextPageToken?: string;
274
+ }
275
+ interface GoogleAnalyticsAdminV1betaListConversionEventsResponse {
276
+ /** The requested conversion events */
277
+ conversionEvents?: GoogleAnalyticsAdminV1betaConversionEvent[];
278
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
279
+ nextPageToken?: string;
280
+ }
281
+ interface GoogleAnalyticsAdminV1betaListCustomDimensionsResponse {
282
+ /** List of CustomDimensions. */
283
+ customDimensions?: GoogleAnalyticsAdminV1betaCustomDimension[];
284
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
285
+ nextPageToken?: string;
286
+ }
287
+ interface GoogleAnalyticsAdminV1betaListCustomMetricsResponse {
288
+ /** List of CustomMetrics. */
289
+ customMetrics?: GoogleAnalyticsAdminV1betaCustomMetric[];
290
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
291
+ nextPageToken?: string;
292
+ }
293
+ interface GoogleAnalyticsAdminV1betaListDataStreamsResponse {
294
+ /** List of DataStreams. */
295
+ dataStreams?: GoogleAnalyticsAdminV1betaDataStream[];
296
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
297
+ nextPageToken?: string;
298
+ }
299
+ interface GoogleAnalyticsAdminV1betaListFirebaseLinksResponse {
300
+ /** List of FirebaseLinks. This will have at most one value. */
301
+ firebaseLinks?: GoogleAnalyticsAdminV1betaFirebaseLink[];
302
+ /**
303
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. Currently, Google Analytics supports only one
304
+ * FirebaseLink per property, so this will never be populated.
305
+ */
306
+ nextPageToken?: string;
307
+ }
308
+ interface GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse {
309
+ /** List of GoogleAdsLinks. */
310
+ googleAdsLinks?: GoogleAnalyticsAdminV1betaGoogleAdsLink[];
311
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
312
+ nextPageToken?: string;
313
+ }
314
+ interface GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse {
315
+ /** A list of secrets for the parent stream specified in the request. */
316
+ measurementProtocolSecrets?: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret[];
317
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
318
+ nextPageToken?: string;
319
+ }
320
+ interface GoogleAnalyticsAdminV1betaListPropertiesResponse {
321
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
322
+ nextPageToken?: string;
323
+ /** Results that matched the filter criteria and were accessible to the caller. */
324
+ properties?: GoogleAnalyticsAdminV1betaProperty[];
325
+ }
326
+ interface GoogleAnalyticsAdminV1betaMeasurementProtocolSecret {
327
+ /** Required. Human-readable display name for this secret. */
328
+ displayName?: string;
329
+ /**
330
+ * Output only. Resource name of this secret. This secret may be a child of any type of stream. Format:
331
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
332
+ */
333
+ name?: string;
334
+ /** Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property. */
335
+ secretValue?: string;
336
+ }
337
+ interface GoogleAnalyticsAdminV1betaProperty {
338
+ /** Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" */
339
+ account?: string;
340
+ /** Output only. Time when the entity was originally created. */
341
+ createTime?: string;
342
+ /** The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" */
343
+ currencyCode?: string;
344
+ /** Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. */
345
+ deleteTime?: string;
346
+ /** Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. */
347
+ displayName?: string;
348
+ /**
349
+ * Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be
350
+ * deleted.
351
+ */
352
+ expireTime?: string;
353
+ /** Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK */
354
+ industryCategory?: string;
355
+ /** Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" */
356
+ name?: string;
357
+ /**
358
+ * Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example:
359
+ * "accounts/100", "properties/101"
360
+ */
361
+ parent?: string;
362
+ /**
363
+ * Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied.
364
+ * "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created via Google Analytics Admin API.
365
+ */
366
+ propertyType?: string;
367
+ /** Output only. The Google Analytics service level that applies to this property. */
368
+ serviceLevel?: string;
369
+ /**
370
+ * Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for
371
+ * the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"
372
+ */
373
+ timeZone?: string;
374
+ /** Output only. Time when entity payload fields were last updated. */
375
+ updateTime?: string;
376
+ }
377
+ interface GoogleAnalyticsAdminV1betaPropertySummary {
378
+ /** Display name for the property referred to in this property summary. */
379
+ displayName?: string;
380
+ /**
381
+ * Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example:
382
+ * "accounts/100", "properties/200"
383
+ */
384
+ parent?: string;
385
+ /** Resource name of property referred to by this property summary Format: properties/{property_id} Example: "properties/1000" */
386
+ property?: string;
387
+ /** The property's property type. */
388
+ propertyType?: string;
389
+ }
390
+ interface GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest {
391
+ /** The account to create. */
392
+ account?: GoogleAnalyticsAdminV1betaAccount;
393
+ /** Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in Developers Console as a Redirect URI */
394
+ redirectUri?: string;
395
+ }
396
+ interface GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse {
397
+ /** The param to be passed in the ToS link. */
398
+ accountTicketId?: string;
399
+ }
400
+ interface GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest {
401
+ /** Optional. If set, only return changes that match one or more of these types of actions. */
402
+ action?: string[];
403
+ /** Optional. If set, only return changes if they are made by a user in this list. */
404
+ actorEmail?: string[];
405
+ /** Optional. If set, only return changes made after this time (inclusive). */
406
+ earliestChangeTime?: string;
407
+ /** Optional. If set, only return changes made before this time (inclusive). */
408
+ latestChangeTime?: string;
409
+ /**
410
+ * Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50
411
+ * items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
412
+ */
413
+ pageSize?: number;
414
+ /**
415
+ * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
416
+ * `SearchChangeHistoryEvents` must match the call that provided the page token.
417
+ */
418
+ pageToken?: string;
419
+ /** Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. */
420
+ property?: string;
421
+ /** Optional. If set, only return changes if they are for a resource that matches at least one of these types. */
422
+ resourceType?: string[];
423
+ }
424
+ interface GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse {
425
+ /** Results that were accessible to the caller. */
426
+ changeHistoryEvents?: GoogleAnalyticsAdminV1betaChangeHistoryEvent[];
427
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
428
+ nextPageToken?: string;
429
+ }
430
+ // tslint:disable-next-line:no-empty-interface
431
+ interface GoogleProtobufEmpty {
432
+ }
433
+ interface AccountsResource {
434
+ /**
435
+ * Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash
436
+ * Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently
437
+ * purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
438
+ */
439
+ delete(request?: {
440
+ /** V1 error format. */
441
+ "$.xgafv"?: string;
442
+ /** OAuth access token. */
443
+ access_token?: string;
444
+ /** Data format for response. */
445
+ alt?: string;
446
+ /** JSONP */
447
+ callback?: string;
448
+ /** Selector specifying which fields to include in a partial response. */
449
+ fields?: string;
450
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
451
+ key?: string;
452
+ /** Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" */
453
+ name: string;
454
+ /** OAuth 2.0 token for the current user. */
455
+ oauth_token?: string;
456
+ /** Returns response with indentations and line breaks. */
457
+ prettyPrint?: boolean;
458
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
459
+ quotaUser?: string;
460
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
461
+ upload_protocol?: string;
462
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
463
+ uploadType?: string;
464
+ }): Request<{}>;
465
+ /** Lookup for a single Account. */
466
+ get(request?: {
467
+ /** V1 error format. */
468
+ "$.xgafv"?: string;
469
+ /** OAuth access token. */
470
+ access_token?: string;
471
+ /** Data format for response. */
472
+ alt?: string;
473
+ /** JSONP */
474
+ callback?: string;
475
+ /** Selector specifying which fields to include in a partial response. */
476
+ fields?: string;
477
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
478
+ key?: string;
479
+ /** Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" */
480
+ name: string;
481
+ /** OAuth 2.0 token for the current user. */
482
+ oauth_token?: string;
483
+ /** Returns response with indentations and line breaks. */
484
+ prettyPrint?: boolean;
485
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
486
+ quotaUser?: string;
487
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
488
+ upload_protocol?: string;
489
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
490
+ uploadType?: string;
491
+ }): Request<GoogleAnalyticsAdminV1betaAccount>;
492
+ /** Get data sharing settings on an account. Data sharing settings are singletons. */
493
+ getDataSharingSettings(request?: {
494
+ /** V1 error format. */
495
+ "$.xgafv"?: string;
496
+ /** OAuth access token. */
497
+ access_token?: string;
498
+ /** Data format for response. */
499
+ alt?: string;
500
+ /** JSONP */
501
+ callback?: string;
502
+ /** Selector specifying which fields to include in a partial response. */
503
+ fields?: string;
504
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
505
+ key?: string;
506
+ /** Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" */
507
+ name: string;
508
+ /** OAuth 2.0 token for the current user. */
509
+ oauth_token?: string;
510
+ /** Returns response with indentations and line breaks. */
511
+ prettyPrint?: boolean;
512
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
513
+ quotaUser?: string;
514
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
515
+ upload_protocol?: string;
516
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
517
+ uploadType?: string;
518
+ }): Request<GoogleAnalyticsAdminV1betaDataSharingSettings>;
519
+ /**
520
+ * Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default.
521
+ * Returns an empty list if no relevant accounts are found.
522
+ */
523
+ list(request?: {
524
+ /** V1 error format. */
525
+ "$.xgafv"?: string;
526
+ /** OAuth access token. */
527
+ access_token?: string;
528
+ /** Data format for response. */
529
+ alt?: string;
530
+ /** JSONP */
531
+ callback?: string;
532
+ /** Selector specifying which fields to include in a partial response. */
533
+ fields?: string;
534
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
535
+ key?: string;
536
+ /** OAuth 2.0 token for the current user. */
537
+ oauth_token?: string;
538
+ /**
539
+ * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
540
+ * returned. The maximum value is 200; (higher values will be coerced to the maximum)
541
+ */
542
+ pageSize?: number;
543
+ /**
544
+ * A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must
545
+ * match the call that provided the page token.
546
+ */
547
+ pageToken?: string;
548
+ /** Returns response with indentations and line breaks. */
549
+ prettyPrint?: boolean;
550
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
551
+ quotaUser?: string;
552
+ /** Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not. */
553
+ showDeleted?: boolean;
554
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
555
+ upload_protocol?: string;
556
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
557
+ uploadType?: string;
558
+ }): Request<GoogleAnalyticsAdminV1betaListAccountsResponse>;
559
+ /** Updates an account. */
560
+ patch(request: {
561
+ /** V1 error format. */
562
+ "$.xgafv"?: string;
563
+ /** OAuth access token. */
564
+ access_token?: string;
565
+ /** Data format for response. */
566
+ alt?: string;
567
+ /** JSONP */
568
+ callback?: string;
569
+ /** Selector specifying which fields to include in a partial response. */
570
+ fields?: string;
571
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
572
+ key?: string;
573
+ /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
574
+ name: string;
575
+ /** OAuth 2.0 token for the current user. */
576
+ oauth_token?: string;
577
+ /** Returns response with indentations and line breaks. */
578
+ prettyPrint?: boolean;
579
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
580
+ quotaUser?: string;
581
+ /**
582
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
583
+ * one path with the string "*" to match all fields.
584
+ */
585
+ updateMask?: string;
586
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
587
+ upload_protocol?: string;
588
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
589
+ uploadType?: string;
590
+ /** Request body */
591
+ resource: GoogleAnalyticsAdminV1betaAccount;
592
+ }): Request<GoogleAnalyticsAdminV1betaAccount>;
593
+ patch(request: {
594
+ /** V1 error format. */
595
+ "$.xgafv"?: string;
596
+ /** OAuth access token. */
597
+ access_token?: string;
598
+ /** Data format for response. */
599
+ alt?: string;
600
+ /** JSONP */
601
+ callback?: string;
602
+ /** Selector specifying which fields to include in a partial response. */
603
+ fields?: string;
604
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
605
+ key?: string;
606
+ /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
607
+ name: string;
608
+ /** OAuth 2.0 token for the current user. */
609
+ oauth_token?: string;
610
+ /** Returns response with indentations and line breaks. */
611
+ prettyPrint?: boolean;
612
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
613
+ quotaUser?: string;
614
+ /**
615
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
616
+ * one path with the string "*" to match all fields.
617
+ */
618
+ updateMask?: string;
619
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
620
+ upload_protocol?: string;
621
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
622
+ uploadType?: string;
623
+ },
624
+ body: GoogleAnalyticsAdminV1betaAccount): Request<GoogleAnalyticsAdminV1betaAccount>;
625
+ /** Requests a ticket for creating an account. */
626
+ provisionAccountTicket(request: {
627
+ /** V1 error format. */
628
+ "$.xgafv"?: string;
629
+ /** OAuth access token. */
630
+ access_token?: string;
631
+ /** Data format for response. */
632
+ alt?: string;
633
+ /** JSONP */
634
+ callback?: string;
635
+ /** Selector specifying which fields to include in a partial response. */
636
+ fields?: string;
637
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
638
+ key?: string;
639
+ /** OAuth 2.0 token for the current user. */
640
+ oauth_token?: string;
641
+ /** Returns response with indentations and line breaks. */
642
+ prettyPrint?: boolean;
643
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
644
+ quotaUser?: string;
645
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
646
+ upload_protocol?: string;
647
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
648
+ uploadType?: string;
649
+ /** Request body */
650
+ resource: GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest;
651
+ }): Request<GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse>;
652
+ provisionAccountTicket(request: {
653
+ /** V1 error format. */
654
+ "$.xgafv"?: string;
655
+ /** OAuth access token. */
656
+ access_token?: string;
657
+ /** Data format for response. */
658
+ alt?: string;
659
+ /** JSONP */
660
+ callback?: string;
661
+ /** Selector specifying which fields to include in a partial response. */
662
+ fields?: string;
663
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
664
+ key?: string;
665
+ /** OAuth 2.0 token for the current user. */
666
+ oauth_token?: string;
667
+ /** Returns response with indentations and line breaks. */
668
+ prettyPrint?: boolean;
669
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
670
+ quotaUser?: string;
671
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
672
+ upload_protocol?: string;
673
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
674
+ uploadType?: string;
675
+ },
676
+ body: GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest): Request<GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse>;
677
+ /** Searches through all changes to an account or its children given the specified set of filters. */
678
+ searchChangeHistoryEvents(request: {
679
+ /** V1 error format. */
680
+ "$.xgafv"?: string;
681
+ /** OAuth access token. */
682
+ access_token?: string;
683
+ /** Required. The account resource for which to return change history resources. */
684
+ account: string;
685
+ /** Data format for response. */
686
+ alt?: string;
687
+ /** JSONP */
688
+ callback?: string;
689
+ /** Selector specifying which fields to include in a partial response. */
690
+ fields?: string;
691
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
692
+ key?: string;
693
+ /** OAuth 2.0 token for the current user. */
694
+ oauth_token?: string;
695
+ /** Returns response with indentations and line breaks. */
696
+ prettyPrint?: boolean;
697
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
698
+ quotaUser?: string;
699
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
700
+ upload_protocol?: string;
701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
702
+ uploadType?: string;
703
+ /** Request body */
704
+ resource: GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest;
705
+ }): Request<GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse>;
706
+ searchChangeHistoryEvents(request: {
707
+ /** V1 error format. */
708
+ "$.xgafv"?: string;
709
+ /** OAuth access token. */
710
+ access_token?: string;
711
+ /** Required. The account resource for which to return change history resources. */
712
+ account: string;
713
+ /** Data format for response. */
714
+ alt?: string;
715
+ /** JSONP */
716
+ callback?: string;
717
+ /** Selector specifying which fields to include in a partial response. */
718
+ fields?: string;
719
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
720
+ key?: string;
721
+ /** OAuth 2.0 token for the current user. */
722
+ oauth_token?: string;
723
+ /** Returns response with indentations and line breaks. */
724
+ prettyPrint?: boolean;
725
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
726
+ quotaUser?: string;
727
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
728
+ upload_protocol?: string;
729
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
730
+ uploadType?: string;
731
+ },
732
+ body: GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest): Request<GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse>;
733
+ }
734
+ interface AccountSummariesResource {
735
+ /** Returns summaries of all accounts accessible by the caller. */
736
+ list(request?: {
737
+ /** V1 error format. */
738
+ "$.xgafv"?: string;
739
+ /** OAuth access token. */
740
+ access_token?: string;
741
+ /** Data format for response. */
742
+ alt?: string;
743
+ /** JSONP */
744
+ callback?: string;
745
+ /** Selector specifying which fields to include in a partial response. */
746
+ fields?: string;
747
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
748
+ key?: string;
749
+ /** OAuth 2.0 token for the current user. */
750
+ oauth_token?: string;
751
+ /**
752
+ * The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources
753
+ * will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
754
+ */
755
+ pageSize?: number;
756
+ /**
757
+ * A page token, received from a previous `ListAccountSummaries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
758
+ * `ListAccountSummaries` must match the call that provided the page token.
759
+ */
760
+ pageToken?: string;
761
+ /** Returns response with indentations and line breaks. */
762
+ prettyPrint?: boolean;
763
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
764
+ quotaUser?: string;
765
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
766
+ upload_protocol?: string;
767
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
768
+ uploadType?: string;
769
+ }): Request<GoogleAnalyticsAdminV1betaListAccountSummariesResponse>;
770
+ }
771
+ interface ConversionEventsResource {
772
+ /** Creates a conversion event with the specified attributes. */
773
+ create(request: {
774
+ /** V1 error format. */
775
+ "$.xgafv"?: string;
776
+ /** OAuth access token. */
777
+ access_token?: string;
778
+ /** Data format for response. */
779
+ alt?: string;
780
+ /** JSONP */
781
+ callback?: string;
782
+ /** Selector specifying which fields to include in a partial response. */
783
+ fields?: string;
784
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
785
+ key?: string;
786
+ /** OAuth 2.0 token for the current user. */
787
+ oauth_token?: string;
788
+ /** Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 */
789
+ parent: string;
790
+ /** Returns response with indentations and line breaks. */
791
+ prettyPrint?: boolean;
792
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
793
+ quotaUser?: string;
794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
795
+ upload_protocol?: string;
796
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
797
+ uploadType?: string;
798
+ /** Request body */
799
+ resource: GoogleAnalyticsAdminV1betaConversionEvent;
800
+ }): Request<GoogleAnalyticsAdminV1betaConversionEvent>;
801
+ create(request: {
802
+ /** V1 error format. */
803
+ "$.xgafv"?: string;
804
+ /** OAuth access token. */
805
+ access_token?: string;
806
+ /** Data format for response. */
807
+ alt?: string;
808
+ /** JSONP */
809
+ callback?: string;
810
+ /** Selector specifying which fields to include in a partial response. */
811
+ fields?: string;
812
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
813
+ key?: string;
814
+ /** OAuth 2.0 token for the current user. */
815
+ oauth_token?: string;
816
+ /** Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 */
817
+ parent: string;
818
+ /** Returns response with indentations and line breaks. */
819
+ prettyPrint?: boolean;
820
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
821
+ quotaUser?: string;
822
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
823
+ upload_protocol?: string;
824
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
825
+ uploadType?: string;
826
+ },
827
+ body: GoogleAnalyticsAdminV1betaConversionEvent): Request<GoogleAnalyticsAdminV1betaConversionEvent>;
828
+ /** Deletes a conversion event in a property. */
829
+ delete(request?: {
830
+ /** V1 error format. */
831
+ "$.xgafv"?: string;
832
+ /** OAuth access token. */
833
+ access_token?: string;
834
+ /** Data format for response. */
835
+ alt?: string;
836
+ /** JSONP */
837
+ callback?: string;
838
+ /** Selector specifying which fields to include in a partial response. */
839
+ fields?: string;
840
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
841
+ key?: string;
842
+ /** Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" */
843
+ name: string;
844
+ /** OAuth 2.0 token for the current user. */
845
+ oauth_token?: string;
846
+ /** Returns response with indentations and line breaks. */
847
+ prettyPrint?: boolean;
848
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
849
+ quotaUser?: string;
850
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
851
+ upload_protocol?: string;
852
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
853
+ uploadType?: string;
854
+ }): Request<{}>;
855
+ /** Retrieve a single conversion event. */
856
+ get(request?: {
857
+ /** V1 error format. */
858
+ "$.xgafv"?: string;
859
+ /** OAuth access token. */
860
+ access_token?: string;
861
+ /** Data format for response. */
862
+ alt?: string;
863
+ /** JSONP */
864
+ callback?: string;
865
+ /** Selector specifying which fields to include in a partial response. */
866
+ fields?: string;
867
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
868
+ key?: string;
869
+ /** Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" */
870
+ name: string;
871
+ /** OAuth 2.0 token for the current user. */
872
+ oauth_token?: string;
873
+ /** Returns response with indentations and line breaks. */
874
+ prettyPrint?: boolean;
875
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
876
+ quotaUser?: string;
877
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
878
+ upload_protocol?: string;
879
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
880
+ uploadType?: string;
881
+ }): Request<GoogleAnalyticsAdminV1betaConversionEvent>;
882
+ /** Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found. */
883
+ list(request?: {
884
+ /** V1 error format. */
885
+ "$.xgafv"?: string;
886
+ /** OAuth access token. */
887
+ access_token?: string;
888
+ /** Data format for response. */
889
+ alt?: string;
890
+ /** JSONP */
891
+ callback?: string;
892
+ /** Selector specifying which fields to include in a partial response. */
893
+ fields?: string;
894
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
895
+ key?: string;
896
+ /** OAuth 2.0 token for the current user. */
897
+ oauth_token?: string;
898
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum) */
899
+ pageSize?: number;
900
+ /**
901
+ * A page token, received from a previous `ListConversionEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
902
+ * `ListConversionEvents` must match the call that provided the page token.
903
+ */
904
+ pageToken?: string;
905
+ /** Required. The resource name of the parent property. Example: 'properties/123' */
906
+ parent: string;
907
+ /** Returns response with indentations and line breaks. */
908
+ prettyPrint?: boolean;
909
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
910
+ quotaUser?: string;
911
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
912
+ upload_protocol?: string;
913
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
914
+ uploadType?: string;
915
+ }): Request<GoogleAnalyticsAdminV1betaListConversionEventsResponse>;
916
+ }
917
+ interface CustomDimensionsResource {
918
+ /** Archives a CustomDimension on a property. */
919
+ archive(request: {
920
+ /** V1 error format. */
921
+ "$.xgafv"?: string;
922
+ /** OAuth access token. */
923
+ access_token?: string;
924
+ /** Data format for response. */
925
+ alt?: string;
926
+ /** JSONP */
927
+ callback?: string;
928
+ /** Selector specifying which fields to include in a partial response. */
929
+ fields?: string;
930
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
931
+ key?: string;
932
+ /** Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 */
933
+ name: string;
934
+ /** OAuth 2.0 token for the current user. */
935
+ oauth_token?: string;
936
+ /** Returns response with indentations and line breaks. */
937
+ prettyPrint?: boolean;
938
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
939
+ quotaUser?: string;
940
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
941
+ upload_protocol?: string;
942
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
943
+ uploadType?: string;
944
+ /** Request body */
945
+ resource: GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest;
946
+ }): Request<{}>;
947
+ archive(request: {
948
+ /** V1 error format. */
949
+ "$.xgafv"?: string;
950
+ /** OAuth access token. */
951
+ access_token?: string;
952
+ /** Data format for response. */
953
+ alt?: string;
954
+ /** JSONP */
955
+ callback?: string;
956
+ /** Selector specifying which fields to include in a partial response. */
957
+ fields?: string;
958
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
959
+ key?: string;
960
+ /** Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 */
961
+ name: string;
962
+ /** OAuth 2.0 token for the current user. */
963
+ oauth_token?: string;
964
+ /** Returns response with indentations and line breaks. */
965
+ prettyPrint?: boolean;
966
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
967
+ quotaUser?: string;
968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
969
+ upload_protocol?: string;
970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
971
+ uploadType?: string;
972
+ },
973
+ body: GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest): Request<{}>;
974
+ /** Creates a CustomDimension. */
975
+ create(request: {
976
+ /** V1 error format. */
977
+ "$.xgafv"?: string;
978
+ /** OAuth access token. */
979
+ access_token?: string;
980
+ /** Data format for response. */
981
+ alt?: string;
982
+ /** JSONP */
983
+ callback?: string;
984
+ /** Selector specifying which fields to include in a partial response. */
985
+ fields?: string;
986
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
987
+ key?: string;
988
+ /** OAuth 2.0 token for the current user. */
989
+ oauth_token?: string;
990
+ /** Required. Example format: properties/1234 */
991
+ parent: string;
992
+ /** Returns response with indentations and line breaks. */
993
+ prettyPrint?: boolean;
994
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
995
+ quotaUser?: string;
996
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
997
+ upload_protocol?: string;
998
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
999
+ uploadType?: string;
1000
+ /** Request body */
1001
+ resource: GoogleAnalyticsAdminV1betaCustomDimension;
1002
+ }): Request<GoogleAnalyticsAdminV1betaCustomDimension>;
1003
+ create(request: {
1004
+ /** V1 error format. */
1005
+ "$.xgafv"?: string;
1006
+ /** OAuth access token. */
1007
+ access_token?: string;
1008
+ /** Data format for response. */
1009
+ alt?: string;
1010
+ /** JSONP */
1011
+ callback?: string;
1012
+ /** Selector specifying which fields to include in a partial response. */
1013
+ fields?: string;
1014
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1015
+ key?: string;
1016
+ /** OAuth 2.0 token for the current user. */
1017
+ oauth_token?: string;
1018
+ /** Required. Example format: properties/1234 */
1019
+ parent: string;
1020
+ /** Returns response with indentations and line breaks. */
1021
+ prettyPrint?: boolean;
1022
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1023
+ quotaUser?: string;
1024
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1025
+ upload_protocol?: string;
1026
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1027
+ uploadType?: string;
1028
+ },
1029
+ body: GoogleAnalyticsAdminV1betaCustomDimension): Request<GoogleAnalyticsAdminV1betaCustomDimension>;
1030
+ /** Lookup for a single CustomDimension. */
1031
+ get(request?: {
1032
+ /** V1 error format. */
1033
+ "$.xgafv"?: string;
1034
+ /** OAuth access token. */
1035
+ access_token?: string;
1036
+ /** Data format for response. */
1037
+ alt?: string;
1038
+ /** JSONP */
1039
+ callback?: string;
1040
+ /** Selector specifying which fields to include in a partial response. */
1041
+ fields?: string;
1042
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1043
+ key?: string;
1044
+ /** Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 */
1045
+ name: string;
1046
+ /** OAuth 2.0 token for the current user. */
1047
+ oauth_token?: string;
1048
+ /** Returns response with indentations and line breaks. */
1049
+ prettyPrint?: boolean;
1050
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1051
+ quotaUser?: string;
1052
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1053
+ upload_protocol?: string;
1054
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1055
+ uploadType?: string;
1056
+ }): Request<GoogleAnalyticsAdminV1betaCustomDimension>;
1057
+ /** Lists CustomDimensions on a property. */
1058
+ list(request?: {
1059
+ /** V1 error format. */
1060
+ "$.xgafv"?: string;
1061
+ /** OAuth access token. */
1062
+ access_token?: string;
1063
+ /** Data format for response. */
1064
+ alt?: string;
1065
+ /** JSONP */
1066
+ callback?: string;
1067
+ /** Selector specifying which fields to include in a partial response. */
1068
+ fields?: string;
1069
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1070
+ key?: string;
1071
+ /** OAuth 2.0 token for the current user. */
1072
+ oauth_token?: string;
1073
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
1074
+ pageSize?: number;
1075
+ /**
1076
+ * A page token, received from a previous `ListCustomDimensions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1077
+ * `ListCustomDimensions` must match the call that provided the page token.
1078
+ */
1079
+ pageToken?: string;
1080
+ /** Required. Example format: properties/1234 */
1081
+ parent: string;
1082
+ /** Returns response with indentations and line breaks. */
1083
+ prettyPrint?: boolean;
1084
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1085
+ quotaUser?: string;
1086
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1087
+ upload_protocol?: string;
1088
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1089
+ uploadType?: string;
1090
+ }): Request<GoogleAnalyticsAdminV1betaListCustomDimensionsResponse>;
1091
+ /** Updates a CustomDimension on a property. */
1092
+ patch(request: {
1093
+ /** V1 error format. */
1094
+ "$.xgafv"?: string;
1095
+ /** OAuth access token. */
1096
+ access_token?: string;
1097
+ /** Data format for response. */
1098
+ alt?: string;
1099
+ /** JSONP */
1100
+ callback?: string;
1101
+ /** Selector specifying which fields to include in a partial response. */
1102
+ fields?: string;
1103
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1104
+ key?: string;
1105
+ /** Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension} */
1106
+ name: string;
1107
+ /** OAuth 2.0 token for the current user. */
1108
+ oauth_token?: string;
1109
+ /** Returns response with indentations and line breaks. */
1110
+ prettyPrint?: boolean;
1111
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1112
+ quotaUser?: string;
1113
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1114
+ updateMask?: string;
1115
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1116
+ upload_protocol?: string;
1117
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1118
+ uploadType?: string;
1119
+ /** Request body */
1120
+ resource: GoogleAnalyticsAdminV1betaCustomDimension;
1121
+ }): Request<GoogleAnalyticsAdminV1betaCustomDimension>;
1122
+ patch(request: {
1123
+ /** V1 error format. */
1124
+ "$.xgafv"?: string;
1125
+ /** OAuth access token. */
1126
+ access_token?: string;
1127
+ /** Data format for response. */
1128
+ alt?: string;
1129
+ /** JSONP */
1130
+ callback?: string;
1131
+ /** Selector specifying which fields to include in a partial response. */
1132
+ fields?: string;
1133
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1134
+ key?: string;
1135
+ /** Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension} */
1136
+ name: string;
1137
+ /** OAuth 2.0 token for the current user. */
1138
+ oauth_token?: string;
1139
+ /** Returns response with indentations and line breaks. */
1140
+ prettyPrint?: boolean;
1141
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1142
+ quotaUser?: string;
1143
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1144
+ updateMask?: string;
1145
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1146
+ upload_protocol?: string;
1147
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1148
+ uploadType?: string;
1149
+ },
1150
+ body: GoogleAnalyticsAdminV1betaCustomDimension): Request<GoogleAnalyticsAdminV1betaCustomDimension>;
1151
+ }
1152
+ interface CustomMetricsResource {
1153
+ /** Archives a CustomMetric on a property. */
1154
+ archive(request: {
1155
+ /** V1 error format. */
1156
+ "$.xgafv"?: string;
1157
+ /** OAuth access token. */
1158
+ access_token?: string;
1159
+ /** Data format for response. */
1160
+ alt?: string;
1161
+ /** JSONP */
1162
+ callback?: string;
1163
+ /** Selector specifying which fields to include in a partial response. */
1164
+ fields?: string;
1165
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1166
+ key?: string;
1167
+ /** Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 */
1168
+ name: string;
1169
+ /** OAuth 2.0 token for the current user. */
1170
+ oauth_token?: string;
1171
+ /** Returns response with indentations and line breaks. */
1172
+ prettyPrint?: boolean;
1173
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1174
+ quotaUser?: string;
1175
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1176
+ upload_protocol?: string;
1177
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1178
+ uploadType?: string;
1179
+ /** Request body */
1180
+ resource: GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest;
1181
+ }): Request<{}>;
1182
+ archive(request: {
1183
+ /** V1 error format. */
1184
+ "$.xgafv"?: string;
1185
+ /** OAuth access token. */
1186
+ access_token?: string;
1187
+ /** Data format for response. */
1188
+ alt?: string;
1189
+ /** JSONP */
1190
+ callback?: string;
1191
+ /** Selector specifying which fields to include in a partial response. */
1192
+ fields?: string;
1193
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1194
+ key?: string;
1195
+ /** Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 */
1196
+ name: string;
1197
+ /** OAuth 2.0 token for the current user. */
1198
+ oauth_token?: string;
1199
+ /** Returns response with indentations and line breaks. */
1200
+ prettyPrint?: boolean;
1201
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1202
+ quotaUser?: string;
1203
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1204
+ upload_protocol?: string;
1205
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1206
+ uploadType?: string;
1207
+ },
1208
+ body: GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest): Request<{}>;
1209
+ /** Creates a CustomMetric. */
1210
+ create(request: {
1211
+ /** V1 error format. */
1212
+ "$.xgafv"?: string;
1213
+ /** OAuth access token. */
1214
+ access_token?: string;
1215
+ /** Data format for response. */
1216
+ alt?: string;
1217
+ /** JSONP */
1218
+ callback?: string;
1219
+ /** Selector specifying which fields to include in a partial response. */
1220
+ fields?: string;
1221
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1222
+ key?: string;
1223
+ /** OAuth 2.0 token for the current user. */
1224
+ oauth_token?: string;
1225
+ /** Required. Example format: properties/1234 */
1226
+ parent: string;
1227
+ /** Returns response with indentations and line breaks. */
1228
+ prettyPrint?: boolean;
1229
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1230
+ quotaUser?: string;
1231
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1232
+ upload_protocol?: string;
1233
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1234
+ uploadType?: string;
1235
+ /** Request body */
1236
+ resource: GoogleAnalyticsAdminV1betaCustomMetric;
1237
+ }): Request<GoogleAnalyticsAdminV1betaCustomMetric>;
1238
+ create(request: {
1239
+ /** V1 error format. */
1240
+ "$.xgafv"?: string;
1241
+ /** OAuth access token. */
1242
+ access_token?: string;
1243
+ /** Data format for response. */
1244
+ alt?: string;
1245
+ /** JSONP */
1246
+ callback?: string;
1247
+ /** Selector specifying which fields to include in a partial response. */
1248
+ fields?: string;
1249
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1250
+ key?: string;
1251
+ /** OAuth 2.0 token for the current user. */
1252
+ oauth_token?: string;
1253
+ /** Required. Example format: properties/1234 */
1254
+ parent: string;
1255
+ /** Returns response with indentations and line breaks. */
1256
+ prettyPrint?: boolean;
1257
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1258
+ quotaUser?: string;
1259
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1260
+ upload_protocol?: string;
1261
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1262
+ uploadType?: string;
1263
+ },
1264
+ body: GoogleAnalyticsAdminV1betaCustomMetric): Request<GoogleAnalyticsAdminV1betaCustomMetric>;
1265
+ /** Lookup for a single CustomMetric. */
1266
+ get(request?: {
1267
+ /** V1 error format. */
1268
+ "$.xgafv"?: string;
1269
+ /** OAuth access token. */
1270
+ access_token?: string;
1271
+ /** Data format for response. */
1272
+ alt?: string;
1273
+ /** JSONP */
1274
+ callback?: string;
1275
+ /** Selector specifying which fields to include in a partial response. */
1276
+ fields?: string;
1277
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1278
+ key?: string;
1279
+ /** Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 */
1280
+ name: string;
1281
+ /** OAuth 2.0 token for the current user. */
1282
+ oauth_token?: string;
1283
+ /** Returns response with indentations and line breaks. */
1284
+ prettyPrint?: boolean;
1285
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1286
+ quotaUser?: string;
1287
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1288
+ upload_protocol?: string;
1289
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1290
+ uploadType?: string;
1291
+ }): Request<GoogleAnalyticsAdminV1betaCustomMetric>;
1292
+ /** Lists CustomMetrics on a property. */
1293
+ list(request?: {
1294
+ /** V1 error format. */
1295
+ "$.xgafv"?: string;
1296
+ /** OAuth access token. */
1297
+ access_token?: string;
1298
+ /** Data format for response. */
1299
+ alt?: string;
1300
+ /** JSONP */
1301
+ callback?: string;
1302
+ /** Selector specifying which fields to include in a partial response. */
1303
+ fields?: string;
1304
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1305
+ key?: string;
1306
+ /** OAuth 2.0 token for the current user. */
1307
+ oauth_token?: string;
1308
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
1309
+ pageSize?: number;
1310
+ /**
1311
+ * A page token, received from a previous `ListCustomMetrics` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1312
+ * `ListCustomMetrics` must match the call that provided the page token.
1313
+ */
1314
+ pageToken?: string;
1315
+ /** Required. Example format: properties/1234 */
1316
+ parent: string;
1317
+ /** Returns response with indentations and line breaks. */
1318
+ prettyPrint?: boolean;
1319
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1320
+ quotaUser?: string;
1321
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1322
+ upload_protocol?: string;
1323
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1324
+ uploadType?: string;
1325
+ }): Request<GoogleAnalyticsAdminV1betaListCustomMetricsResponse>;
1326
+ /** Updates a CustomMetric on a property. */
1327
+ patch(request: {
1328
+ /** V1 error format. */
1329
+ "$.xgafv"?: string;
1330
+ /** OAuth access token. */
1331
+ access_token?: string;
1332
+ /** Data format for response. */
1333
+ alt?: string;
1334
+ /** JSONP */
1335
+ callback?: string;
1336
+ /** Selector specifying which fields to include in a partial response. */
1337
+ fields?: string;
1338
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1339
+ key?: string;
1340
+ /** Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} */
1341
+ name: string;
1342
+ /** OAuth 2.0 token for the current user. */
1343
+ oauth_token?: string;
1344
+ /** Returns response with indentations and line breaks. */
1345
+ prettyPrint?: boolean;
1346
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1347
+ quotaUser?: string;
1348
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1349
+ updateMask?: string;
1350
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1351
+ upload_protocol?: string;
1352
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1353
+ uploadType?: string;
1354
+ /** Request body */
1355
+ resource: GoogleAnalyticsAdminV1betaCustomMetric;
1356
+ }): Request<GoogleAnalyticsAdminV1betaCustomMetric>;
1357
+ patch(request: {
1358
+ /** V1 error format. */
1359
+ "$.xgafv"?: string;
1360
+ /** OAuth access token. */
1361
+ access_token?: string;
1362
+ /** Data format for response. */
1363
+ alt?: string;
1364
+ /** JSONP */
1365
+ callback?: string;
1366
+ /** Selector specifying which fields to include in a partial response. */
1367
+ fields?: string;
1368
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1369
+ key?: string;
1370
+ /** Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} */
1371
+ name: string;
1372
+ /** OAuth 2.0 token for the current user. */
1373
+ oauth_token?: string;
1374
+ /** Returns response with indentations and line breaks. */
1375
+ prettyPrint?: boolean;
1376
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1377
+ quotaUser?: string;
1378
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1379
+ updateMask?: string;
1380
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1381
+ upload_protocol?: string;
1382
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1383
+ uploadType?: string;
1384
+ },
1385
+ body: GoogleAnalyticsAdminV1betaCustomMetric): Request<GoogleAnalyticsAdminV1betaCustomMetric>;
1386
+ }
1387
+ interface MeasurementProtocolSecretsResource {
1388
+ /** Creates a measurement protocol secret. */
1389
+ create(request: {
1390
+ /** V1 error format. */
1391
+ "$.xgafv"?: string;
1392
+ /** OAuth access token. */
1393
+ access_token?: string;
1394
+ /** Data format for response. */
1395
+ alt?: string;
1396
+ /** JSONP */
1397
+ callback?: string;
1398
+ /** Selector specifying which fields to include in a partial response. */
1399
+ fields?: string;
1400
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1401
+ key?: string;
1402
+ /** OAuth 2.0 token for the current user. */
1403
+ oauth_token?: string;
1404
+ /** Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} */
1405
+ parent: string;
1406
+ /** Returns response with indentations and line breaks. */
1407
+ prettyPrint?: boolean;
1408
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1409
+ quotaUser?: string;
1410
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1411
+ upload_protocol?: string;
1412
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1413
+ uploadType?: string;
1414
+ /** Request body */
1415
+ resource: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret;
1416
+ }): Request<GoogleAnalyticsAdminV1betaMeasurementProtocolSecret>;
1417
+ create(request: {
1418
+ /** V1 error format. */
1419
+ "$.xgafv"?: string;
1420
+ /** OAuth access token. */
1421
+ access_token?: string;
1422
+ /** Data format for response. */
1423
+ alt?: string;
1424
+ /** JSONP */
1425
+ callback?: string;
1426
+ /** Selector specifying which fields to include in a partial response. */
1427
+ fields?: string;
1428
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1429
+ key?: string;
1430
+ /** OAuth 2.0 token for the current user. */
1431
+ oauth_token?: string;
1432
+ /** Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} */
1433
+ parent: string;
1434
+ /** Returns response with indentations and line breaks. */
1435
+ prettyPrint?: boolean;
1436
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1437
+ quotaUser?: string;
1438
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1439
+ upload_protocol?: string;
1440
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1441
+ uploadType?: string;
1442
+ },
1443
+ body: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret): Request<GoogleAnalyticsAdminV1betaMeasurementProtocolSecret>;
1444
+ /** Deletes target MeasurementProtocolSecret. */
1445
+ delete(request?: {
1446
+ /** V1 error format. */
1447
+ "$.xgafv"?: string;
1448
+ /** OAuth access token. */
1449
+ access_token?: string;
1450
+ /** Data format for response. */
1451
+ alt?: string;
1452
+ /** JSONP */
1453
+ callback?: string;
1454
+ /** Selector specifying which fields to include in a partial response. */
1455
+ fields?: string;
1456
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1457
+ key?: string;
1458
+ /** Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} */
1459
+ name: string;
1460
+ /** OAuth 2.0 token for the current user. */
1461
+ oauth_token?: string;
1462
+ /** Returns response with indentations and line breaks. */
1463
+ prettyPrint?: boolean;
1464
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1465
+ quotaUser?: string;
1466
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1467
+ upload_protocol?: string;
1468
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1469
+ uploadType?: string;
1470
+ }): Request<{}>;
1471
+ /** Lookup for a single "GA4" MeasurementProtocolSecret. */
1472
+ get(request?: {
1473
+ /** V1 error format. */
1474
+ "$.xgafv"?: string;
1475
+ /** OAuth access token. */
1476
+ access_token?: string;
1477
+ /** Data format for response. */
1478
+ alt?: string;
1479
+ /** JSONP */
1480
+ callback?: string;
1481
+ /** Selector specifying which fields to include in a partial response. */
1482
+ fields?: string;
1483
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1484
+ key?: string;
1485
+ /** Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} */
1486
+ name: string;
1487
+ /** OAuth 2.0 token for the current user. */
1488
+ oauth_token?: string;
1489
+ /** Returns response with indentations and line breaks. */
1490
+ prettyPrint?: boolean;
1491
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1492
+ quotaUser?: string;
1493
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1494
+ upload_protocol?: string;
1495
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1496
+ uploadType?: string;
1497
+ }): Request<GoogleAnalyticsAdminV1betaMeasurementProtocolSecret>;
1498
+ /** Returns child MeasurementProtocolSecrets under the specified parent Property. */
1499
+ list(request?: {
1500
+ /** V1 error format. */
1501
+ "$.xgafv"?: string;
1502
+ /** OAuth access token. */
1503
+ access_token?: string;
1504
+ /** Data format for response. */
1505
+ alt?: string;
1506
+ /** JSONP */
1507
+ callback?: string;
1508
+ /** Selector specifying which fields to include in a partial response. */
1509
+ fields?: string;
1510
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1511
+ key?: string;
1512
+ /** OAuth 2.0 token for the current user. */
1513
+ oauth_token?: string;
1514
+ /** The maximum number of resources to return. If unspecified, at most 10 resources will be returned. The maximum value is 10. Higher values will be coerced to the maximum. */
1515
+ pageSize?: number;
1516
+ /**
1517
+ * A page token, received from a previous `ListMeasurementProtocolSecrets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1518
+ * `ListMeasurementProtocolSecrets` must match the call that provided the page token.
1519
+ */
1520
+ pageToken?: string;
1521
+ /** Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets */
1522
+ parent: string;
1523
+ /** Returns response with indentations and line breaks. */
1524
+ prettyPrint?: boolean;
1525
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1526
+ quotaUser?: string;
1527
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1528
+ upload_protocol?: string;
1529
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1530
+ uploadType?: string;
1531
+ }): Request<GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse>;
1532
+ /** Updates a measurement protocol secret. */
1533
+ patch(request: {
1534
+ /** V1 error format. */
1535
+ "$.xgafv"?: string;
1536
+ /** OAuth access token. */
1537
+ access_token?: string;
1538
+ /** Data format for response. */
1539
+ alt?: string;
1540
+ /** JSONP */
1541
+ callback?: string;
1542
+ /** Selector specifying which fields to include in a partial response. */
1543
+ fields?: string;
1544
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1545
+ key?: string;
1546
+ /**
1547
+ * Output only. Resource name of this secret. This secret may be a child of any type of stream. Format:
1548
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
1549
+ */
1550
+ name: string;
1551
+ /** OAuth 2.0 token for the current user. */
1552
+ oauth_token?: string;
1553
+ /** Returns response with indentations and line breaks. */
1554
+ prettyPrint?: boolean;
1555
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1556
+ quotaUser?: string;
1557
+ /** The list of fields to be updated. Omitted fields will not be updated. */
1558
+ updateMask?: string;
1559
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1560
+ upload_protocol?: string;
1561
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1562
+ uploadType?: string;
1563
+ /** Request body */
1564
+ resource: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret;
1565
+ }): Request<GoogleAnalyticsAdminV1betaMeasurementProtocolSecret>;
1566
+ patch(request: {
1567
+ /** V1 error format. */
1568
+ "$.xgafv"?: string;
1569
+ /** OAuth access token. */
1570
+ access_token?: string;
1571
+ /** Data format for response. */
1572
+ alt?: string;
1573
+ /** JSONP */
1574
+ callback?: string;
1575
+ /** Selector specifying which fields to include in a partial response. */
1576
+ fields?: string;
1577
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1578
+ key?: string;
1579
+ /**
1580
+ * Output only. Resource name of this secret. This secret may be a child of any type of stream. Format:
1581
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
1582
+ */
1583
+ name: string;
1584
+ /** OAuth 2.0 token for the current user. */
1585
+ oauth_token?: string;
1586
+ /** Returns response with indentations and line breaks. */
1587
+ prettyPrint?: boolean;
1588
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1589
+ quotaUser?: string;
1590
+ /** The list of fields to be updated. Omitted fields will not be updated. */
1591
+ updateMask?: string;
1592
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1593
+ upload_protocol?: string;
1594
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1595
+ uploadType?: string;
1596
+ },
1597
+ body: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret): Request<GoogleAnalyticsAdminV1betaMeasurementProtocolSecret>;
1598
+ }
1599
+ interface DataStreamsResource {
1600
+ /** Creates a DataStream. */
1601
+ create(request: {
1602
+ /** V1 error format. */
1603
+ "$.xgafv"?: string;
1604
+ /** OAuth access token. */
1605
+ access_token?: string;
1606
+ /** Data format for response. */
1607
+ alt?: string;
1608
+ /** JSONP */
1609
+ callback?: string;
1610
+ /** Selector specifying which fields to include in a partial response. */
1611
+ fields?: string;
1612
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1613
+ key?: string;
1614
+ /** OAuth 2.0 token for the current user. */
1615
+ oauth_token?: string;
1616
+ /** Required. Example format: properties/1234 */
1617
+ parent: string;
1618
+ /** Returns response with indentations and line breaks. */
1619
+ prettyPrint?: boolean;
1620
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1621
+ quotaUser?: string;
1622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1623
+ upload_protocol?: string;
1624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1625
+ uploadType?: string;
1626
+ /** Request body */
1627
+ resource: GoogleAnalyticsAdminV1betaDataStream;
1628
+ }): Request<GoogleAnalyticsAdminV1betaDataStream>;
1629
+ create(request: {
1630
+ /** V1 error format. */
1631
+ "$.xgafv"?: string;
1632
+ /** OAuth access token. */
1633
+ access_token?: string;
1634
+ /** Data format for response. */
1635
+ alt?: string;
1636
+ /** JSONP */
1637
+ callback?: string;
1638
+ /** Selector specifying which fields to include in a partial response. */
1639
+ fields?: string;
1640
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1641
+ key?: string;
1642
+ /** OAuth 2.0 token for the current user. */
1643
+ oauth_token?: string;
1644
+ /** Required. Example format: properties/1234 */
1645
+ parent: string;
1646
+ /** Returns response with indentations and line breaks. */
1647
+ prettyPrint?: boolean;
1648
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1649
+ quotaUser?: string;
1650
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1651
+ upload_protocol?: string;
1652
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1653
+ uploadType?: string;
1654
+ },
1655
+ body: GoogleAnalyticsAdminV1betaDataStream): Request<GoogleAnalyticsAdminV1betaDataStream>;
1656
+ /** Deletes a DataStream on a property. */
1657
+ delete(request?: {
1658
+ /** V1 error format. */
1659
+ "$.xgafv"?: string;
1660
+ /** OAuth access token. */
1661
+ access_token?: string;
1662
+ /** Data format for response. */
1663
+ alt?: string;
1664
+ /** JSONP */
1665
+ callback?: string;
1666
+ /** Selector specifying which fields to include in a partial response. */
1667
+ fields?: string;
1668
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1669
+ key?: string;
1670
+ /** Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 */
1671
+ name: string;
1672
+ /** OAuth 2.0 token for the current user. */
1673
+ oauth_token?: string;
1674
+ /** Returns response with indentations and line breaks. */
1675
+ prettyPrint?: boolean;
1676
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1677
+ quotaUser?: string;
1678
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1679
+ upload_protocol?: string;
1680
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1681
+ uploadType?: string;
1682
+ }): Request<{}>;
1683
+ /** Lookup for a single DataStream. */
1684
+ get(request?: {
1685
+ /** V1 error format. */
1686
+ "$.xgafv"?: string;
1687
+ /** OAuth access token. */
1688
+ access_token?: string;
1689
+ /** Data format for response. */
1690
+ alt?: string;
1691
+ /** JSONP */
1692
+ callback?: string;
1693
+ /** Selector specifying which fields to include in a partial response. */
1694
+ fields?: string;
1695
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1696
+ key?: string;
1697
+ /** Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 */
1698
+ name: string;
1699
+ /** OAuth 2.0 token for the current user. */
1700
+ oauth_token?: string;
1701
+ /** Returns response with indentations and line breaks. */
1702
+ prettyPrint?: boolean;
1703
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1704
+ quotaUser?: string;
1705
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1706
+ upload_protocol?: string;
1707
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1708
+ uploadType?: string;
1709
+ }): Request<GoogleAnalyticsAdminV1betaDataStream>;
1710
+ /** Lists DataStreams on a property. */
1711
+ list(request?: {
1712
+ /** V1 error format. */
1713
+ "$.xgafv"?: string;
1714
+ /** OAuth access token. */
1715
+ access_token?: string;
1716
+ /** Data format for response. */
1717
+ alt?: string;
1718
+ /** JSONP */
1719
+ callback?: string;
1720
+ /** Selector specifying which fields to include in a partial response. */
1721
+ fields?: string;
1722
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1723
+ key?: string;
1724
+ /** OAuth 2.0 token for the current user. */
1725
+ oauth_token?: string;
1726
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
1727
+ pageSize?: number;
1728
+ /**
1729
+ * A page token, received from a previous `ListDataStreams` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDataStreams`
1730
+ * must match the call that provided the page token.
1731
+ */
1732
+ pageToken?: string;
1733
+ /** Required. Example format: properties/1234 */
1734
+ parent: string;
1735
+ /** Returns response with indentations and line breaks. */
1736
+ prettyPrint?: boolean;
1737
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1738
+ quotaUser?: string;
1739
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1740
+ upload_protocol?: string;
1741
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1742
+ uploadType?: string;
1743
+ }): Request<GoogleAnalyticsAdminV1betaListDataStreamsResponse>;
1744
+ /** Updates a DataStream on a property. */
1745
+ patch(request: {
1746
+ /** V1 error format. */
1747
+ "$.xgafv"?: string;
1748
+ /** OAuth access token. */
1749
+ access_token?: string;
1750
+ /** Data format for response. */
1751
+ alt?: string;
1752
+ /** JSONP */
1753
+ callback?: string;
1754
+ /** Selector specifying which fields to include in a partial response. */
1755
+ fields?: string;
1756
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1757
+ key?: string;
1758
+ /** Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" */
1759
+ name: string;
1760
+ /** OAuth 2.0 token for the current user. */
1761
+ oauth_token?: string;
1762
+ /** Returns response with indentations and line breaks. */
1763
+ prettyPrint?: boolean;
1764
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1765
+ quotaUser?: string;
1766
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1767
+ updateMask?: string;
1768
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1769
+ upload_protocol?: string;
1770
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1771
+ uploadType?: string;
1772
+ /** Request body */
1773
+ resource: GoogleAnalyticsAdminV1betaDataStream;
1774
+ }): Request<GoogleAnalyticsAdminV1betaDataStream>;
1775
+ patch(request: {
1776
+ /** V1 error format. */
1777
+ "$.xgafv"?: string;
1778
+ /** OAuth access token. */
1779
+ access_token?: string;
1780
+ /** Data format for response. */
1781
+ alt?: string;
1782
+ /** JSONP */
1783
+ callback?: string;
1784
+ /** Selector specifying which fields to include in a partial response. */
1785
+ fields?: string;
1786
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1787
+ key?: string;
1788
+ /** Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" */
1789
+ name: string;
1790
+ /** OAuth 2.0 token for the current user. */
1791
+ oauth_token?: string;
1792
+ /** Returns response with indentations and line breaks. */
1793
+ prettyPrint?: boolean;
1794
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1795
+ quotaUser?: string;
1796
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
1797
+ updateMask?: string;
1798
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1799
+ upload_protocol?: string;
1800
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1801
+ uploadType?: string;
1802
+ },
1803
+ body: GoogleAnalyticsAdminV1betaDataStream): Request<GoogleAnalyticsAdminV1betaDataStream>;
1804
+ measurementProtocolSecrets: MeasurementProtocolSecretsResource;
1805
+ }
1806
+ interface FirebaseLinksResource {
1807
+ /** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
1808
+ create(request: {
1809
+ /** V1 error format. */
1810
+ "$.xgafv"?: string;
1811
+ /** OAuth access token. */
1812
+ access_token?: string;
1813
+ /** Data format for response. */
1814
+ alt?: string;
1815
+ /** JSONP */
1816
+ callback?: string;
1817
+ /** Selector specifying which fields to include in a partial response. */
1818
+ fields?: string;
1819
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1820
+ key?: string;
1821
+ /** OAuth 2.0 token for the current user. */
1822
+ oauth_token?: string;
1823
+ /** Required. Format: properties/{property_id} Example: properties/1234 */
1824
+ parent: string;
1825
+ /** Returns response with indentations and line breaks. */
1826
+ prettyPrint?: boolean;
1827
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1828
+ quotaUser?: string;
1829
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1830
+ upload_protocol?: string;
1831
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1832
+ uploadType?: string;
1833
+ /** Request body */
1834
+ resource: GoogleAnalyticsAdminV1betaFirebaseLink;
1835
+ }): Request<GoogleAnalyticsAdminV1betaFirebaseLink>;
1836
+ create(request: {
1837
+ /** V1 error format. */
1838
+ "$.xgafv"?: string;
1839
+ /** OAuth access token. */
1840
+ access_token?: string;
1841
+ /** Data format for response. */
1842
+ alt?: string;
1843
+ /** JSONP */
1844
+ callback?: string;
1845
+ /** Selector specifying which fields to include in a partial response. */
1846
+ fields?: string;
1847
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1848
+ key?: string;
1849
+ /** OAuth 2.0 token for the current user. */
1850
+ oauth_token?: string;
1851
+ /** Required. Format: properties/{property_id} Example: properties/1234 */
1852
+ parent: string;
1853
+ /** Returns response with indentations and line breaks. */
1854
+ prettyPrint?: boolean;
1855
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1856
+ quotaUser?: string;
1857
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1858
+ upload_protocol?: string;
1859
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1860
+ uploadType?: string;
1861
+ },
1862
+ body: GoogleAnalyticsAdminV1betaFirebaseLink): Request<GoogleAnalyticsAdminV1betaFirebaseLink>;
1863
+ /** Deletes a FirebaseLink on a property */
1864
+ delete(request?: {
1865
+ /** V1 error format. */
1866
+ "$.xgafv"?: string;
1867
+ /** OAuth access token. */
1868
+ access_token?: string;
1869
+ /** Data format for response. */
1870
+ alt?: string;
1871
+ /** JSONP */
1872
+ callback?: string;
1873
+ /** Selector specifying which fields to include in a partial response. */
1874
+ fields?: string;
1875
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1876
+ key?: string;
1877
+ /** Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 */
1878
+ name: string;
1879
+ /** OAuth 2.0 token for the current user. */
1880
+ oauth_token?: string;
1881
+ /** Returns response with indentations and line breaks. */
1882
+ prettyPrint?: boolean;
1883
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1884
+ quotaUser?: string;
1885
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1886
+ upload_protocol?: string;
1887
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1888
+ uploadType?: string;
1889
+ }): Request<{}>;
1890
+ /** Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. */
1891
+ list(request?: {
1892
+ /** V1 error format. */
1893
+ "$.xgafv"?: string;
1894
+ /** OAuth access token. */
1895
+ access_token?: string;
1896
+ /** Data format for response. */
1897
+ alt?: string;
1898
+ /** JSONP */
1899
+ callback?: string;
1900
+ /** Selector specifying which fields to include in a partial response. */
1901
+ fields?: string;
1902
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1903
+ key?: string;
1904
+ /** OAuth 2.0 token for the current user. */
1905
+ oauth_token?: string;
1906
+ /**
1907
+ * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
1908
+ * returned. The maximum value is 200; (higher values will be coerced to the maximum)
1909
+ */
1910
+ pageSize?: number;
1911
+ /**
1912
+ * A page token, received from a previous `ListFirebaseLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1913
+ * `ListFirebaseLinks` must match the call that provided the page token.
1914
+ */
1915
+ pageToken?: string;
1916
+ /** Required. Format: properties/{property_id} Example: properties/1234 */
1917
+ parent: string;
1918
+ /** Returns response with indentations and line breaks. */
1919
+ prettyPrint?: boolean;
1920
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1921
+ quotaUser?: string;
1922
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1923
+ upload_protocol?: string;
1924
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1925
+ uploadType?: string;
1926
+ }): Request<GoogleAnalyticsAdminV1betaListFirebaseLinksResponse>;
1927
+ }
1928
+ interface GoogleAdsLinksResource {
1929
+ /** Creates a GoogleAdsLink. */
1930
+ create(request: {
1931
+ /** V1 error format. */
1932
+ "$.xgafv"?: string;
1933
+ /** OAuth access token. */
1934
+ access_token?: string;
1935
+ /** Data format for response. */
1936
+ alt?: string;
1937
+ /** JSONP */
1938
+ callback?: string;
1939
+ /** Selector specifying which fields to include in a partial response. */
1940
+ fields?: string;
1941
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1942
+ key?: string;
1943
+ /** OAuth 2.0 token for the current user. */
1944
+ oauth_token?: string;
1945
+ /** Required. Example format: properties/1234 */
1946
+ parent: string;
1947
+ /** Returns response with indentations and line breaks. */
1948
+ prettyPrint?: boolean;
1949
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1950
+ quotaUser?: string;
1951
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1952
+ upload_protocol?: string;
1953
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1954
+ uploadType?: string;
1955
+ /** Request body */
1956
+ resource: GoogleAnalyticsAdminV1betaGoogleAdsLink;
1957
+ }): Request<GoogleAnalyticsAdminV1betaGoogleAdsLink>;
1958
+ create(request: {
1959
+ /** V1 error format. */
1960
+ "$.xgafv"?: string;
1961
+ /** OAuth access token. */
1962
+ access_token?: string;
1963
+ /** Data format for response. */
1964
+ alt?: string;
1965
+ /** JSONP */
1966
+ callback?: string;
1967
+ /** Selector specifying which fields to include in a partial response. */
1968
+ fields?: string;
1969
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1970
+ key?: string;
1971
+ /** OAuth 2.0 token for the current user. */
1972
+ oauth_token?: string;
1973
+ /** Required. Example format: properties/1234 */
1974
+ parent: string;
1975
+ /** Returns response with indentations and line breaks. */
1976
+ prettyPrint?: boolean;
1977
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1978
+ quotaUser?: string;
1979
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1980
+ upload_protocol?: string;
1981
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1982
+ uploadType?: string;
1983
+ },
1984
+ body: GoogleAnalyticsAdminV1betaGoogleAdsLink): Request<GoogleAnalyticsAdminV1betaGoogleAdsLink>;
1985
+ /** Deletes a GoogleAdsLink on a property */
1986
+ delete(request?: {
1987
+ /** V1 error format. */
1988
+ "$.xgafv"?: string;
1989
+ /** OAuth access token. */
1990
+ access_token?: string;
1991
+ /** Data format for response. */
1992
+ alt?: string;
1993
+ /** JSONP */
1994
+ callback?: string;
1995
+ /** Selector specifying which fields to include in a partial response. */
1996
+ fields?: string;
1997
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1998
+ key?: string;
1999
+ /** Required. Example format: properties/1234/googleAdsLinks/5678 */
2000
+ name: string;
2001
+ /** OAuth 2.0 token for the current user. */
2002
+ oauth_token?: string;
2003
+ /** Returns response with indentations and line breaks. */
2004
+ prettyPrint?: boolean;
2005
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2006
+ quotaUser?: string;
2007
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2008
+ upload_protocol?: string;
2009
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2010
+ uploadType?: string;
2011
+ }): Request<{}>;
2012
+ /** Lists GoogleAdsLinks on a property. */
2013
+ list(request?: {
2014
+ /** V1 error format. */
2015
+ "$.xgafv"?: string;
2016
+ /** OAuth access token. */
2017
+ access_token?: string;
2018
+ /** Data format for response. */
2019
+ alt?: string;
2020
+ /** JSONP */
2021
+ callback?: string;
2022
+ /** Selector specifying which fields to include in a partial response. */
2023
+ fields?: string;
2024
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2025
+ key?: string;
2026
+ /** OAuth 2.0 token for the current user. */
2027
+ oauth_token?: string;
2028
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
2029
+ pageSize?: number;
2030
+ /**
2031
+ * A page token, received from a previous `ListGoogleAdsLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
2032
+ * `ListGoogleAdsLinks` must match the call that provided the page token.
2033
+ */
2034
+ pageToken?: string;
2035
+ /** Required. Example format: properties/1234 */
2036
+ parent: string;
2037
+ /** Returns response with indentations and line breaks. */
2038
+ prettyPrint?: boolean;
2039
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2040
+ quotaUser?: string;
2041
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2042
+ upload_protocol?: string;
2043
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2044
+ uploadType?: string;
2045
+ }): Request<GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse>;
2046
+ /** Updates a GoogleAdsLink on a property */
2047
+ patch(request: {
2048
+ /** V1 error format. */
2049
+ "$.xgafv"?: string;
2050
+ /** OAuth access token. */
2051
+ access_token?: string;
2052
+ /** Data format for response. */
2053
+ alt?: string;
2054
+ /** JSONP */
2055
+ callback?: string;
2056
+ /** Selector specifying which fields to include in a partial response. */
2057
+ fields?: string;
2058
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2059
+ key?: string;
2060
+ /** Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. */
2061
+ name: string;
2062
+ /** OAuth 2.0 token for the current user. */
2063
+ oauth_token?: string;
2064
+ /** Returns response with indentations and line breaks. */
2065
+ prettyPrint?: boolean;
2066
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2067
+ quotaUser?: string;
2068
+ /**
2069
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2070
+ * one path with the string "*" to match all fields.
2071
+ */
2072
+ updateMask?: string;
2073
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2074
+ upload_protocol?: string;
2075
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2076
+ uploadType?: string;
2077
+ /** Request body */
2078
+ resource: GoogleAnalyticsAdminV1betaGoogleAdsLink;
2079
+ }): Request<GoogleAnalyticsAdminV1betaGoogleAdsLink>;
2080
+ patch(request: {
2081
+ /** V1 error format. */
2082
+ "$.xgafv"?: string;
2083
+ /** OAuth access token. */
2084
+ access_token?: string;
2085
+ /** Data format for response. */
2086
+ alt?: string;
2087
+ /** JSONP */
2088
+ callback?: string;
2089
+ /** Selector specifying which fields to include in a partial response. */
2090
+ fields?: string;
2091
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2092
+ key?: string;
2093
+ /** Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. */
2094
+ name: string;
2095
+ /** OAuth 2.0 token for the current user. */
2096
+ oauth_token?: string;
2097
+ /** Returns response with indentations and line breaks. */
2098
+ prettyPrint?: boolean;
2099
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2100
+ quotaUser?: string;
2101
+ /**
2102
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2103
+ * one path with the string "*" to match all fields.
2104
+ */
2105
+ updateMask?: string;
2106
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2107
+ upload_protocol?: string;
2108
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2109
+ uploadType?: string;
2110
+ },
2111
+ body: GoogleAnalyticsAdminV1betaGoogleAdsLink): Request<GoogleAnalyticsAdminV1betaGoogleAdsLink>;
2112
+ }
2113
+ interface PropertiesResource {
2114
+ /**
2115
+ * Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before
2116
+ * MeasurementProtocolSecret resources may be created.
2117
+ */
2118
+ acknowledgeUserDataCollection(request: {
2119
+ /** V1 error format. */
2120
+ "$.xgafv"?: string;
2121
+ /** OAuth access token. */
2122
+ access_token?: string;
2123
+ /** Data format for response. */
2124
+ alt?: string;
2125
+ /** JSONP */
2126
+ callback?: string;
2127
+ /** Selector specifying which fields to include in a partial response. */
2128
+ fields?: string;
2129
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2130
+ key?: string;
2131
+ /** OAuth 2.0 token for the current user. */
2132
+ oauth_token?: string;
2133
+ /** Returns response with indentations and line breaks. */
2134
+ prettyPrint?: boolean;
2135
+ /** Required. The property for which to acknowledge user data collection. */
2136
+ property: string;
2137
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2138
+ quotaUser?: string;
2139
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2140
+ upload_protocol?: string;
2141
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2142
+ uploadType?: string;
2143
+ /** Request body */
2144
+ resource: GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest;
2145
+ }): Request<{}>;
2146
+ acknowledgeUserDataCollection(request: {
2147
+ /** V1 error format. */
2148
+ "$.xgafv"?: string;
2149
+ /** OAuth access token. */
2150
+ access_token?: string;
2151
+ /** Data format for response. */
2152
+ alt?: string;
2153
+ /** JSONP */
2154
+ callback?: string;
2155
+ /** Selector specifying which fields to include in a partial response. */
2156
+ fields?: string;
2157
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2158
+ key?: string;
2159
+ /** OAuth 2.0 token for the current user. */
2160
+ oauth_token?: string;
2161
+ /** Returns response with indentations and line breaks. */
2162
+ prettyPrint?: boolean;
2163
+ /** Required. The property for which to acknowledge user data collection. */
2164
+ property: string;
2165
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2166
+ quotaUser?: string;
2167
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2168
+ upload_protocol?: string;
2169
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2170
+ uploadType?: string;
2171
+ },
2172
+ body: GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest): Request<{}>;
2173
+ /** Creates an "GA4" property with the specified location and attributes. */
2174
+ create(request: {
2175
+ /** V1 error format. */
2176
+ "$.xgafv"?: string;
2177
+ /** OAuth access token. */
2178
+ access_token?: string;
2179
+ /** Data format for response. */
2180
+ alt?: string;
2181
+ /** JSONP */
2182
+ callback?: string;
2183
+ /** Selector specifying which fields to include in a partial response. */
2184
+ fields?: string;
2185
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2186
+ key?: string;
2187
+ /** OAuth 2.0 token for the current user. */
2188
+ oauth_token?: string;
2189
+ /** Returns response with indentations and line breaks. */
2190
+ prettyPrint?: boolean;
2191
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2192
+ quotaUser?: string;
2193
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2194
+ upload_protocol?: string;
2195
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2196
+ uploadType?: string;
2197
+ /** Request body */
2198
+ resource: GoogleAnalyticsAdminV1betaProperty;
2199
+ }): Request<GoogleAnalyticsAdminV1betaProperty>;
2200
+ create(request: {
2201
+ /** V1 error format. */
2202
+ "$.xgafv"?: string;
2203
+ /** OAuth access token. */
2204
+ access_token?: string;
2205
+ /** Data format for response. */
2206
+ alt?: string;
2207
+ /** JSONP */
2208
+ callback?: string;
2209
+ /** Selector specifying which fields to include in a partial response. */
2210
+ fields?: string;
2211
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2212
+ key?: string;
2213
+ /** OAuth 2.0 token for the current user. */
2214
+ oauth_token?: string;
2215
+ /** Returns response with indentations and line breaks. */
2216
+ prettyPrint?: boolean;
2217
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2218
+ quotaUser?: string;
2219
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2220
+ upload_protocol?: string;
2221
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2222
+ uploadType?: string;
2223
+ },
2224
+ body: GoogleAnalyticsAdminV1betaProperty): Request<GoogleAnalyticsAdminV1betaProperty>;
2225
+ /**
2226
+ * Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the
2227
+ * Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently
2228
+ * purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.
2229
+ */
2230
+ delete(request?: {
2231
+ /** V1 error format. */
2232
+ "$.xgafv"?: string;
2233
+ /** OAuth access token. */
2234
+ access_token?: string;
2235
+ /** Data format for response. */
2236
+ alt?: string;
2237
+ /** JSONP */
2238
+ callback?: string;
2239
+ /** Selector specifying which fields to include in a partial response. */
2240
+ fields?: string;
2241
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2242
+ key?: string;
2243
+ /** Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" */
2244
+ name: string;
2245
+ /** OAuth 2.0 token for the current user. */
2246
+ oauth_token?: string;
2247
+ /** Returns response with indentations and line breaks. */
2248
+ prettyPrint?: boolean;
2249
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2250
+ quotaUser?: string;
2251
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2252
+ upload_protocol?: string;
2253
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2254
+ uploadType?: string;
2255
+ }): Request<GoogleAnalyticsAdminV1betaProperty>;
2256
+ /** Lookup for a single "GA4" Property. */
2257
+ get(request?: {
2258
+ /** V1 error format. */
2259
+ "$.xgafv"?: string;
2260
+ /** OAuth access token. */
2261
+ access_token?: string;
2262
+ /** Data format for response. */
2263
+ alt?: string;
2264
+ /** JSONP */
2265
+ callback?: string;
2266
+ /** Selector specifying which fields to include in a partial response. */
2267
+ fields?: string;
2268
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2269
+ key?: string;
2270
+ /** Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" */
2271
+ name: string;
2272
+ /** OAuth 2.0 token for the current user. */
2273
+ oauth_token?: string;
2274
+ /** Returns response with indentations and line breaks. */
2275
+ prettyPrint?: boolean;
2276
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2277
+ quotaUser?: string;
2278
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2279
+ upload_protocol?: string;
2280
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2281
+ uploadType?: string;
2282
+ }): Request<GoogleAnalyticsAdminV1betaProperty>;
2283
+ /** Returns the singleton data retention settings for this property. */
2284
+ getDataRetentionSettings(request?: {
2285
+ /** V1 error format. */
2286
+ "$.xgafv"?: string;
2287
+ /** OAuth access token. */
2288
+ access_token?: string;
2289
+ /** Data format for response. */
2290
+ alt?: string;
2291
+ /** JSONP */
2292
+ callback?: string;
2293
+ /** Selector specifying which fields to include in a partial response. */
2294
+ fields?: string;
2295
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2296
+ key?: string;
2297
+ /** Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" */
2298
+ name: string;
2299
+ /** OAuth 2.0 token for the current user. */
2300
+ oauth_token?: string;
2301
+ /** Returns response with indentations and line breaks. */
2302
+ prettyPrint?: boolean;
2303
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2304
+ quotaUser?: string;
2305
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2306
+ upload_protocol?: string;
2307
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2308
+ uploadType?: string;
2309
+ }): Request<GoogleAnalyticsAdminV1betaDataRetentionSettings>;
2310
+ /**
2311
+ * Returns child Properties under the specified parent Account. Only "GA4" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted
2312
+ * (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.
2313
+ */
2314
+ list(request?: {
2315
+ /** V1 error format. */
2316
+ "$.xgafv"?: string;
2317
+ /** OAuth access token. */
2318
+ access_token?: string;
2319
+ /** Data format for response. */
2320
+ alt?: string;
2321
+ /** JSONP */
2322
+ callback?: string;
2323
+ /** Selector specifying which fields to include in a partial response. */
2324
+ fields?: string;
2325
+ /**
2326
+ * Required. An expression for filtering the results of the request. Fields eligible for filtering are: `parent:`(The resource name of the parent account/property) or
2327
+ * `ancestor:`(The resource name of the parent account) or `firebase_project:`(The id or number of the linked firebase project). Some examples of filters: ``` | Filter |
2328
+ * Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 |
2329
+ * The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | |
2330
+ * firebase_project:123 | The firebase project with number: 123. | ```
2331
+ */
2332
+ filter?: string;
2333
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2334
+ key?: string;
2335
+ /** OAuth 2.0 token for the current user. */
2336
+ oauth_token?: string;
2337
+ /**
2338
+ * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
2339
+ * returned. The maximum value is 200; (higher values will be coerced to the maximum)
2340
+ */
2341
+ pageSize?: number;
2342
+ /**
2343
+ * A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProperties`
2344
+ * must match the call that provided the page token.
2345
+ */
2346
+ pageToken?: string;
2347
+ /** Returns response with indentations and line breaks. */
2348
+ prettyPrint?: boolean;
2349
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2350
+ quotaUser?: string;
2351
+ /** Whether to include soft-deleted (ie: "trashed") Properties in the results. Properties can be inspected to determine whether they are deleted or not. */
2352
+ showDeleted?: boolean;
2353
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2354
+ upload_protocol?: string;
2355
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2356
+ uploadType?: string;
2357
+ }): Request<GoogleAnalyticsAdminV1betaListPropertiesResponse>;
2358
+ /** Updates a property. */
2359
+ patch(request: {
2360
+ /** V1 error format. */
2361
+ "$.xgafv"?: string;
2362
+ /** OAuth access token. */
2363
+ access_token?: string;
2364
+ /** Data format for response. */
2365
+ alt?: string;
2366
+ /** JSONP */
2367
+ callback?: string;
2368
+ /** Selector specifying which fields to include in a partial response. */
2369
+ fields?: string;
2370
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2371
+ key?: string;
2372
+ /** Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" */
2373
+ name: string;
2374
+ /** OAuth 2.0 token for the current user. */
2375
+ oauth_token?: string;
2376
+ /** Returns response with indentations and line breaks. */
2377
+ prettyPrint?: boolean;
2378
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2379
+ quotaUser?: string;
2380
+ /**
2381
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2382
+ * one path with the string "*" to match all fields.
2383
+ */
2384
+ updateMask?: string;
2385
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2386
+ upload_protocol?: string;
2387
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2388
+ uploadType?: string;
2389
+ /** Request body */
2390
+ resource: GoogleAnalyticsAdminV1betaProperty;
2391
+ }): Request<GoogleAnalyticsAdminV1betaProperty>;
2392
+ patch(request: {
2393
+ /** V1 error format. */
2394
+ "$.xgafv"?: string;
2395
+ /** OAuth access token. */
2396
+ access_token?: string;
2397
+ /** Data format for response. */
2398
+ alt?: string;
2399
+ /** JSONP */
2400
+ callback?: string;
2401
+ /** Selector specifying which fields to include in a partial response. */
2402
+ fields?: string;
2403
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2404
+ key?: string;
2405
+ /** Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" */
2406
+ name: string;
2407
+ /** OAuth 2.0 token for the current user. */
2408
+ oauth_token?: string;
2409
+ /** Returns response with indentations and line breaks. */
2410
+ prettyPrint?: boolean;
2411
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2412
+ quotaUser?: string;
2413
+ /**
2414
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2415
+ * one path with the string "*" to match all fields.
2416
+ */
2417
+ updateMask?: string;
2418
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2419
+ upload_protocol?: string;
2420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2421
+ uploadType?: string;
2422
+ },
2423
+ body: GoogleAnalyticsAdminV1betaProperty): Request<GoogleAnalyticsAdminV1betaProperty>;
2424
+ /** Updates the singleton data retention settings for this property. */
2425
+ updateDataRetentionSettings(request: {
2426
+ /** V1 error format. */
2427
+ "$.xgafv"?: string;
2428
+ /** OAuth access token. */
2429
+ access_token?: string;
2430
+ /** Data format for response. */
2431
+ alt?: string;
2432
+ /** JSONP */
2433
+ callback?: string;
2434
+ /** Selector specifying which fields to include in a partial response. */
2435
+ fields?: string;
2436
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2437
+ key?: string;
2438
+ /** Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings */
2439
+ name: string;
2440
+ /** OAuth 2.0 token for the current user. */
2441
+ oauth_token?: string;
2442
+ /** Returns response with indentations and line breaks. */
2443
+ prettyPrint?: boolean;
2444
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2445
+ quotaUser?: string;
2446
+ /**
2447
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2448
+ * one path with the string "*" to match all fields.
2449
+ */
2450
+ updateMask?: string;
2451
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2452
+ upload_protocol?: string;
2453
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2454
+ uploadType?: string;
2455
+ /** Request body */
2456
+ resource: GoogleAnalyticsAdminV1betaDataRetentionSettings;
2457
+ }): Request<GoogleAnalyticsAdminV1betaDataRetentionSettings>;
2458
+ updateDataRetentionSettings(request: {
2459
+ /** V1 error format. */
2460
+ "$.xgafv"?: string;
2461
+ /** OAuth access token. */
2462
+ access_token?: string;
2463
+ /** Data format for response. */
2464
+ alt?: string;
2465
+ /** JSONP */
2466
+ callback?: string;
2467
+ /** Selector specifying which fields to include in a partial response. */
2468
+ fields?: string;
2469
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2470
+ key?: string;
2471
+ /** Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings */
2472
+ name: string;
2473
+ /** OAuth 2.0 token for the current user. */
2474
+ oauth_token?: string;
2475
+ /** Returns response with indentations and line breaks. */
2476
+ prettyPrint?: boolean;
2477
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2478
+ quotaUser?: string;
2479
+ /**
2480
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2481
+ * one path with the string "*" to match all fields.
2482
+ */
2483
+ updateMask?: string;
2484
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2485
+ upload_protocol?: string;
2486
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2487
+ uploadType?: string;
2488
+ },
2489
+ body: GoogleAnalyticsAdminV1betaDataRetentionSettings): Request<GoogleAnalyticsAdminV1betaDataRetentionSettings>;
2490
+ conversionEvents: ConversionEventsResource;
2491
+ customDimensions: CustomDimensionsResource;
2492
+ customMetrics: CustomMetricsResource;
2493
+ dataStreams: DataStreamsResource;
2494
+ firebaseLinks: FirebaseLinksResource;
2495
+ googleAdsLinks: GoogleAdsLinksResource;
2496
+ }
2497
+
2498
+ const accountSummaries: AccountSummariesResource;
2499
+
2500
+ const accounts: AccountsResource;
2501
+
2502
+ const properties: PropertiesResource;
2503
+ }
2504
+ }