@maxim_mazurok/gapi.client.analyticsadmin-v1beta 0.0.20231114 → 0.0.20231128
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 +2725 -4075
- package/package.json +6 -6
- package/readme.md +46 -33
- package/tests.ts +0 -711
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/tests.ts
DELETED
|
@@ -1,711 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.analyticsadmin-v1beta definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231114
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta');
|
|
12
|
-
/** now we can use gapi.client.analyticsadmin */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** Edit Google Analytics management entities */
|
|
19
|
-
'https://www.googleapis.com/auth/analytics.edit',
|
|
20
|
-
/** See and download your Google Analytics data */
|
|
21
|
-
'https://www.googleapis.com/auth/analytics.readonly',
|
|
22
|
-
];
|
|
23
|
-
const immediate = false;
|
|
24
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
25
|
-
if (authResult && !authResult.error) {
|
|
26
|
-
/** handle successful authorization */
|
|
27
|
-
run();
|
|
28
|
-
} else {
|
|
29
|
-
/** handle authorization error */
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
async function run() {
|
|
34
|
-
/**
|
|
35
|
-
* 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 Can
|
|
36
|
-
* UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently
|
|
37
|
-
* purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
38
|
-
*/
|
|
39
|
-
await gapi.client.analyticsadmin.accounts.delete({
|
|
40
|
-
name: "Test string",
|
|
41
|
-
});
|
|
42
|
-
/** Lookup for a single Account. */
|
|
43
|
-
await gapi.client.analyticsadmin.accounts.get({
|
|
44
|
-
name: "Test string",
|
|
45
|
-
});
|
|
46
|
-
/** Get data sharing settings on an account. Data sharing settings are singletons. */
|
|
47
|
-
await gapi.client.analyticsadmin.accounts.getDataSharingSettings({
|
|
48
|
-
name: "Test string",
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* 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. Returns
|
|
52
|
-
* an empty list if no relevant accounts are found.
|
|
53
|
-
*/
|
|
54
|
-
await gapi.client.analyticsadmin.accounts.list({
|
|
55
|
-
pageSize: 42,
|
|
56
|
-
pageToken: "Test string",
|
|
57
|
-
showDeleted: true,
|
|
58
|
-
});
|
|
59
|
-
/** Updates an account. */
|
|
60
|
-
await gapi.client.analyticsadmin.accounts.patch({
|
|
61
|
-
name: "Test string",
|
|
62
|
-
updateMask: "Test string",
|
|
63
|
-
}, {
|
|
64
|
-
createTime: "Test string",
|
|
65
|
-
deleted: true,
|
|
66
|
-
displayName: "Test string",
|
|
67
|
-
name: "Test string",
|
|
68
|
-
regionCode: "Test string",
|
|
69
|
-
updateTime: "Test string",
|
|
70
|
-
});
|
|
71
|
-
/** Requests a ticket for creating an account. */
|
|
72
|
-
await gapi.client.analyticsadmin.accounts.provisionAccountTicket({
|
|
73
|
-
}, {
|
|
74
|
-
account: {
|
|
75
|
-
createTime: "Test string",
|
|
76
|
-
deleted: true,
|
|
77
|
-
displayName: "Test string",
|
|
78
|
-
name: "Test string",
|
|
79
|
-
regionCode: "Test string",
|
|
80
|
-
updateTime: "Test string",
|
|
81
|
-
},
|
|
82
|
-
redirectUri: "Test string",
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.
|
|
86
|
-
* Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4
|
|
87
|
-
* UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include
|
|
88
|
-
* property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
89
|
-
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
90
|
-
*/
|
|
91
|
-
await gapi.client.analyticsadmin.accounts.runAccessReport({
|
|
92
|
-
entity: "Test string",
|
|
93
|
-
}, {
|
|
94
|
-
dateRanges: [
|
|
95
|
-
{
|
|
96
|
-
endDate: "Test string",
|
|
97
|
-
startDate: "Test string",
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
dimensionFilter: {
|
|
101
|
-
accessFilter: {
|
|
102
|
-
betweenFilter: {
|
|
103
|
-
fromValue: {
|
|
104
|
-
doubleValue: 42,
|
|
105
|
-
int64Value: "Test string",
|
|
106
|
-
},
|
|
107
|
-
toValue: {
|
|
108
|
-
doubleValue: 42,
|
|
109
|
-
int64Value: "Test string",
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
fieldName: "Test string",
|
|
113
|
-
inListFilter: {
|
|
114
|
-
caseSensitive: true,
|
|
115
|
-
values: [
|
|
116
|
-
"Test string"
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
numericFilter: {
|
|
120
|
-
operation: "Test string",
|
|
121
|
-
value: {
|
|
122
|
-
doubleValue: 42,
|
|
123
|
-
int64Value: "Test string",
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
stringFilter: {
|
|
127
|
-
caseSensitive: true,
|
|
128
|
-
matchType: "Test string",
|
|
129
|
-
value: "Test string",
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
andGroup: {
|
|
133
|
-
expressions: undefined,
|
|
134
|
-
},
|
|
135
|
-
notExpression: undefined,
|
|
136
|
-
orGroup: {
|
|
137
|
-
expressions: undefined,
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
dimensions: [
|
|
141
|
-
{
|
|
142
|
-
dimensionName: "Test string",
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
expandGroups: true,
|
|
146
|
-
includeAllUsers: true,
|
|
147
|
-
limit: "Test string",
|
|
148
|
-
metricFilter: {
|
|
149
|
-
accessFilter: {
|
|
150
|
-
betweenFilter: {
|
|
151
|
-
fromValue: {
|
|
152
|
-
doubleValue: 42,
|
|
153
|
-
int64Value: "Test string",
|
|
154
|
-
},
|
|
155
|
-
toValue: {
|
|
156
|
-
doubleValue: 42,
|
|
157
|
-
int64Value: "Test string",
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
fieldName: "Test string",
|
|
161
|
-
inListFilter: {
|
|
162
|
-
caseSensitive: true,
|
|
163
|
-
values: [
|
|
164
|
-
"Test string"
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
numericFilter: {
|
|
168
|
-
operation: "Test string",
|
|
169
|
-
value: {
|
|
170
|
-
doubleValue: 42,
|
|
171
|
-
int64Value: "Test string",
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
stringFilter: {
|
|
175
|
-
caseSensitive: true,
|
|
176
|
-
matchType: "Test string",
|
|
177
|
-
value: "Test string",
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
andGroup: {
|
|
181
|
-
expressions: undefined,
|
|
182
|
-
},
|
|
183
|
-
notExpression: undefined,
|
|
184
|
-
orGroup: {
|
|
185
|
-
expressions: undefined,
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
metrics: [
|
|
189
|
-
{
|
|
190
|
-
metricName: "Test string",
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
offset: "Test string",
|
|
194
|
-
orderBys: [
|
|
195
|
-
{
|
|
196
|
-
desc: true,
|
|
197
|
-
dimension: {
|
|
198
|
-
dimensionName: "Test string",
|
|
199
|
-
orderType: "Test string",
|
|
200
|
-
},
|
|
201
|
-
metric: {
|
|
202
|
-
metricName: "Test string",
|
|
203
|
-
},
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
returnEntityQuota: true,
|
|
207
|
-
timeZone: "Test string",
|
|
208
|
-
});
|
|
209
|
-
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
210
|
-
await gapi.client.analyticsadmin.accounts.searchChangeHistoryEvents({
|
|
211
|
-
account: "Test string",
|
|
212
|
-
}, {
|
|
213
|
-
action: [
|
|
214
|
-
"Test string"
|
|
215
|
-
],
|
|
216
|
-
actorEmail: [
|
|
217
|
-
"Test string"
|
|
218
|
-
],
|
|
219
|
-
earliestChangeTime: "Test string",
|
|
220
|
-
latestChangeTime: "Test string",
|
|
221
|
-
pageSize: 42,
|
|
222
|
-
pageToken: "Test string",
|
|
223
|
-
property: "Test string",
|
|
224
|
-
resourceType: [
|
|
225
|
-
"Test string"
|
|
226
|
-
],
|
|
227
|
-
});
|
|
228
|
-
/** Returns summaries of all accounts accessible by the caller. */
|
|
229
|
-
await gapi.client.analyticsadmin.accountSummaries.list({
|
|
230
|
-
pageSize: 42,
|
|
231
|
-
pageToken: "Test string",
|
|
232
|
-
});
|
|
233
|
-
/**
|
|
234
|
-
* Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before
|
|
235
|
-
* MeasurementProtocolSecret resources may be created.
|
|
236
|
-
*/
|
|
237
|
-
await gapi.client.analyticsadmin.properties.acknowledgeUserDataCollection({
|
|
238
|
-
property: "Test string",
|
|
239
|
-
}, {
|
|
240
|
-
acknowledgement: "Test string",
|
|
241
|
-
});
|
|
242
|
-
/** Creates an "GA4" property with the specified location and attributes. */
|
|
243
|
-
await gapi.client.analyticsadmin.properties.create({
|
|
244
|
-
}, {
|
|
245
|
-
account: "Test string",
|
|
246
|
-
createTime: "Test string",
|
|
247
|
-
currencyCode: "Test string",
|
|
248
|
-
deleteTime: "Test string",
|
|
249
|
-
displayName: "Test string",
|
|
250
|
-
expireTime: "Test string",
|
|
251
|
-
industryCategory: "Test string",
|
|
252
|
-
name: "Test string",
|
|
253
|
-
parent: "Test string",
|
|
254
|
-
propertyType: "Test string",
|
|
255
|
-
serviceLevel: "Test string",
|
|
256
|
-
timeZone: "Test string",
|
|
257
|
-
updateTime: "Test string",
|
|
258
|
-
});
|
|
259
|
-
/**
|
|
260
|
-
* 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 Trash
|
|
261
|
-
* Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
|
|
262
|
-
* https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.
|
|
263
|
-
*/
|
|
264
|
-
await gapi.client.analyticsadmin.properties.delete({
|
|
265
|
-
name: "Test string",
|
|
266
|
-
});
|
|
267
|
-
/** Lookup for a single "GA4" Property. */
|
|
268
|
-
await gapi.client.analyticsadmin.properties.get({
|
|
269
|
-
name: "Test string",
|
|
270
|
-
});
|
|
271
|
-
/** Returns the singleton data retention settings for this property. */
|
|
272
|
-
await gapi.client.analyticsadmin.properties.getDataRetentionSettings({
|
|
273
|
-
name: "Test string",
|
|
274
|
-
});
|
|
275
|
-
/**
|
|
276
|
-
* 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 (ie:
|
|
277
|
-
* "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.
|
|
278
|
-
*/
|
|
279
|
-
await gapi.client.analyticsadmin.properties.list({
|
|
280
|
-
filter: "Test string",
|
|
281
|
-
pageSize: 42,
|
|
282
|
-
pageToken: "Test string",
|
|
283
|
-
showDeleted: true,
|
|
284
|
-
});
|
|
285
|
-
/** Updates a property. */
|
|
286
|
-
await gapi.client.analyticsadmin.properties.patch({
|
|
287
|
-
name: "Test string",
|
|
288
|
-
updateMask: "Test string",
|
|
289
|
-
}, {
|
|
290
|
-
account: "Test string",
|
|
291
|
-
createTime: "Test string",
|
|
292
|
-
currencyCode: "Test string",
|
|
293
|
-
deleteTime: "Test string",
|
|
294
|
-
displayName: "Test string",
|
|
295
|
-
expireTime: "Test string",
|
|
296
|
-
industryCategory: "Test string",
|
|
297
|
-
name: "Test string",
|
|
298
|
-
parent: "Test string",
|
|
299
|
-
propertyType: "Test string",
|
|
300
|
-
serviceLevel: "Test string",
|
|
301
|
-
timeZone: "Test string",
|
|
302
|
-
updateTime: "Test string",
|
|
303
|
-
});
|
|
304
|
-
/**
|
|
305
|
-
* Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.
|
|
306
|
-
* Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4
|
|
307
|
-
* UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include
|
|
308
|
-
* property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
309
|
-
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
310
|
-
*/
|
|
311
|
-
await gapi.client.analyticsadmin.properties.runAccessReport({
|
|
312
|
-
entity: "Test string",
|
|
313
|
-
}, {
|
|
314
|
-
dateRanges: [
|
|
315
|
-
{
|
|
316
|
-
endDate: "Test string",
|
|
317
|
-
startDate: "Test string",
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
dimensionFilter: {
|
|
321
|
-
accessFilter: {
|
|
322
|
-
betweenFilter: {
|
|
323
|
-
fromValue: {
|
|
324
|
-
doubleValue: 42,
|
|
325
|
-
int64Value: "Test string",
|
|
326
|
-
},
|
|
327
|
-
toValue: {
|
|
328
|
-
doubleValue: 42,
|
|
329
|
-
int64Value: "Test string",
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
fieldName: "Test string",
|
|
333
|
-
inListFilter: {
|
|
334
|
-
caseSensitive: true,
|
|
335
|
-
values: [
|
|
336
|
-
"Test string"
|
|
337
|
-
],
|
|
338
|
-
},
|
|
339
|
-
numericFilter: {
|
|
340
|
-
operation: "Test string",
|
|
341
|
-
value: {
|
|
342
|
-
doubleValue: 42,
|
|
343
|
-
int64Value: "Test string",
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
stringFilter: {
|
|
347
|
-
caseSensitive: true,
|
|
348
|
-
matchType: "Test string",
|
|
349
|
-
value: "Test string",
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
andGroup: {
|
|
353
|
-
expressions: undefined,
|
|
354
|
-
},
|
|
355
|
-
notExpression: undefined,
|
|
356
|
-
orGroup: {
|
|
357
|
-
expressions: undefined,
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
dimensions: [
|
|
361
|
-
{
|
|
362
|
-
dimensionName: "Test string",
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
expandGroups: true,
|
|
366
|
-
includeAllUsers: true,
|
|
367
|
-
limit: "Test string",
|
|
368
|
-
metricFilter: {
|
|
369
|
-
accessFilter: {
|
|
370
|
-
betweenFilter: {
|
|
371
|
-
fromValue: {
|
|
372
|
-
doubleValue: 42,
|
|
373
|
-
int64Value: "Test string",
|
|
374
|
-
},
|
|
375
|
-
toValue: {
|
|
376
|
-
doubleValue: 42,
|
|
377
|
-
int64Value: "Test string",
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
fieldName: "Test string",
|
|
381
|
-
inListFilter: {
|
|
382
|
-
caseSensitive: true,
|
|
383
|
-
values: [
|
|
384
|
-
"Test string"
|
|
385
|
-
],
|
|
386
|
-
},
|
|
387
|
-
numericFilter: {
|
|
388
|
-
operation: "Test string",
|
|
389
|
-
value: {
|
|
390
|
-
doubleValue: 42,
|
|
391
|
-
int64Value: "Test string",
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
stringFilter: {
|
|
395
|
-
caseSensitive: true,
|
|
396
|
-
matchType: "Test string",
|
|
397
|
-
value: "Test string",
|
|
398
|
-
},
|
|
399
|
-
},
|
|
400
|
-
andGroup: {
|
|
401
|
-
expressions: undefined,
|
|
402
|
-
},
|
|
403
|
-
notExpression: undefined,
|
|
404
|
-
orGroup: {
|
|
405
|
-
expressions: undefined,
|
|
406
|
-
},
|
|
407
|
-
},
|
|
408
|
-
metrics: [
|
|
409
|
-
{
|
|
410
|
-
metricName: "Test string",
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
offset: "Test string",
|
|
414
|
-
orderBys: [
|
|
415
|
-
{
|
|
416
|
-
desc: true,
|
|
417
|
-
dimension: {
|
|
418
|
-
dimensionName: "Test string",
|
|
419
|
-
orderType: "Test string",
|
|
420
|
-
},
|
|
421
|
-
metric: {
|
|
422
|
-
metricName: "Test string",
|
|
423
|
-
},
|
|
424
|
-
}
|
|
425
|
-
],
|
|
426
|
-
returnEntityQuota: true,
|
|
427
|
-
timeZone: "Test string",
|
|
428
|
-
});
|
|
429
|
-
/** Updates the singleton data retention settings for this property. */
|
|
430
|
-
await gapi.client.analyticsadmin.properties.updateDataRetentionSettings({
|
|
431
|
-
name: "Test string",
|
|
432
|
-
updateMask: "Test string",
|
|
433
|
-
}, {
|
|
434
|
-
eventDataRetention: "Test string",
|
|
435
|
-
name: "Test string",
|
|
436
|
-
resetUserDataOnNewActivity: true,
|
|
437
|
-
});
|
|
438
|
-
/** Creates a conversion event with the specified attributes. */
|
|
439
|
-
await gapi.client.analyticsadmin.properties.conversionEvents.create({
|
|
440
|
-
parent: "Test string",
|
|
441
|
-
}, {
|
|
442
|
-
countingMethod: "Test string",
|
|
443
|
-
createTime: "Test string",
|
|
444
|
-
custom: true,
|
|
445
|
-
defaultConversionValue: {
|
|
446
|
-
currencyCode: "Test string",
|
|
447
|
-
value: 42,
|
|
448
|
-
},
|
|
449
|
-
deletable: true,
|
|
450
|
-
eventName: "Test string",
|
|
451
|
-
name: "Test string",
|
|
452
|
-
});
|
|
453
|
-
/** Deletes a conversion event in a property. */
|
|
454
|
-
await gapi.client.analyticsadmin.properties.conversionEvents.delete({
|
|
455
|
-
name: "Test string",
|
|
456
|
-
});
|
|
457
|
-
/** Retrieve a single conversion event. */
|
|
458
|
-
await gapi.client.analyticsadmin.properties.conversionEvents.get({
|
|
459
|
-
name: "Test string",
|
|
460
|
-
});
|
|
461
|
-
/** Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found. */
|
|
462
|
-
await gapi.client.analyticsadmin.properties.conversionEvents.list({
|
|
463
|
-
pageSize: 42,
|
|
464
|
-
pageToken: "Test string",
|
|
465
|
-
parent: "Test string",
|
|
466
|
-
});
|
|
467
|
-
/** Updates a conversion event with the specified attributes. */
|
|
468
|
-
await gapi.client.analyticsadmin.properties.conversionEvents.patch({
|
|
469
|
-
name: "Test string",
|
|
470
|
-
updateMask: "Test string",
|
|
471
|
-
}, {
|
|
472
|
-
countingMethod: "Test string",
|
|
473
|
-
createTime: "Test string",
|
|
474
|
-
custom: true,
|
|
475
|
-
defaultConversionValue: {
|
|
476
|
-
currencyCode: "Test string",
|
|
477
|
-
value: 42,
|
|
478
|
-
},
|
|
479
|
-
deletable: true,
|
|
480
|
-
eventName: "Test string",
|
|
481
|
-
name: "Test string",
|
|
482
|
-
});
|
|
483
|
-
/** Archives a CustomDimension on a property. */
|
|
484
|
-
await gapi.client.analyticsadmin.properties.customDimensions.archive({
|
|
485
|
-
name: "Test string",
|
|
486
|
-
}, {
|
|
487
|
-
});
|
|
488
|
-
/** Creates a CustomDimension. */
|
|
489
|
-
await gapi.client.analyticsadmin.properties.customDimensions.create({
|
|
490
|
-
parent: "Test string",
|
|
491
|
-
}, {
|
|
492
|
-
description: "Test string",
|
|
493
|
-
disallowAdsPersonalization: true,
|
|
494
|
-
displayName: "Test string",
|
|
495
|
-
name: "Test string",
|
|
496
|
-
parameterName: "Test string",
|
|
497
|
-
scope: "Test string",
|
|
498
|
-
});
|
|
499
|
-
/** Lookup for a single CustomDimension. */
|
|
500
|
-
await gapi.client.analyticsadmin.properties.customDimensions.get({
|
|
501
|
-
name: "Test string",
|
|
502
|
-
});
|
|
503
|
-
/** Lists CustomDimensions on a property. */
|
|
504
|
-
await gapi.client.analyticsadmin.properties.customDimensions.list({
|
|
505
|
-
pageSize: 42,
|
|
506
|
-
pageToken: "Test string",
|
|
507
|
-
parent: "Test string",
|
|
508
|
-
});
|
|
509
|
-
/** Updates a CustomDimension on a property. */
|
|
510
|
-
await gapi.client.analyticsadmin.properties.customDimensions.patch({
|
|
511
|
-
name: "Test string",
|
|
512
|
-
updateMask: "Test string",
|
|
513
|
-
}, {
|
|
514
|
-
description: "Test string",
|
|
515
|
-
disallowAdsPersonalization: true,
|
|
516
|
-
displayName: "Test string",
|
|
517
|
-
name: "Test string",
|
|
518
|
-
parameterName: "Test string",
|
|
519
|
-
scope: "Test string",
|
|
520
|
-
});
|
|
521
|
-
/** Archives a CustomMetric on a property. */
|
|
522
|
-
await gapi.client.analyticsadmin.properties.customMetrics.archive({
|
|
523
|
-
name: "Test string",
|
|
524
|
-
}, {
|
|
525
|
-
});
|
|
526
|
-
/** Creates a CustomMetric. */
|
|
527
|
-
await gapi.client.analyticsadmin.properties.customMetrics.create({
|
|
528
|
-
parent: "Test string",
|
|
529
|
-
}, {
|
|
530
|
-
description: "Test string",
|
|
531
|
-
displayName: "Test string",
|
|
532
|
-
measurementUnit: "Test string",
|
|
533
|
-
name: "Test string",
|
|
534
|
-
parameterName: "Test string",
|
|
535
|
-
restrictedMetricType: [
|
|
536
|
-
"Test string"
|
|
537
|
-
],
|
|
538
|
-
scope: "Test string",
|
|
539
|
-
});
|
|
540
|
-
/** Lookup for a single CustomMetric. */
|
|
541
|
-
await gapi.client.analyticsadmin.properties.customMetrics.get({
|
|
542
|
-
name: "Test string",
|
|
543
|
-
});
|
|
544
|
-
/** Lists CustomMetrics on a property. */
|
|
545
|
-
await gapi.client.analyticsadmin.properties.customMetrics.list({
|
|
546
|
-
pageSize: 42,
|
|
547
|
-
pageToken: "Test string",
|
|
548
|
-
parent: "Test string",
|
|
549
|
-
});
|
|
550
|
-
/** Updates a CustomMetric on a property. */
|
|
551
|
-
await gapi.client.analyticsadmin.properties.customMetrics.patch({
|
|
552
|
-
name: "Test string",
|
|
553
|
-
updateMask: "Test string",
|
|
554
|
-
}, {
|
|
555
|
-
description: "Test string",
|
|
556
|
-
displayName: "Test string",
|
|
557
|
-
measurementUnit: "Test string",
|
|
558
|
-
name: "Test string",
|
|
559
|
-
parameterName: "Test string",
|
|
560
|
-
restrictedMetricType: [
|
|
561
|
-
"Test string"
|
|
562
|
-
],
|
|
563
|
-
scope: "Test string",
|
|
564
|
-
});
|
|
565
|
-
/** Creates a DataStream. */
|
|
566
|
-
await gapi.client.analyticsadmin.properties.dataStreams.create({
|
|
567
|
-
parent: "Test string",
|
|
568
|
-
}, {
|
|
569
|
-
androidAppStreamData: {
|
|
570
|
-
firebaseAppId: "Test string",
|
|
571
|
-
packageName: "Test string",
|
|
572
|
-
},
|
|
573
|
-
createTime: "Test string",
|
|
574
|
-
displayName: "Test string",
|
|
575
|
-
iosAppStreamData: {
|
|
576
|
-
bundleId: "Test string",
|
|
577
|
-
firebaseAppId: "Test string",
|
|
578
|
-
},
|
|
579
|
-
name: "Test string",
|
|
580
|
-
type: "Test string",
|
|
581
|
-
updateTime: "Test string",
|
|
582
|
-
webStreamData: {
|
|
583
|
-
defaultUri: "Test string",
|
|
584
|
-
firebaseAppId: "Test string",
|
|
585
|
-
measurementId: "Test string",
|
|
586
|
-
},
|
|
587
|
-
});
|
|
588
|
-
/** Deletes a DataStream on a property. */
|
|
589
|
-
await gapi.client.analyticsadmin.properties.dataStreams.delete({
|
|
590
|
-
name: "Test string",
|
|
591
|
-
});
|
|
592
|
-
/** Lookup for a single DataStream. */
|
|
593
|
-
await gapi.client.analyticsadmin.properties.dataStreams.get({
|
|
594
|
-
name: "Test string",
|
|
595
|
-
});
|
|
596
|
-
/** Lists DataStreams on a property. */
|
|
597
|
-
await gapi.client.analyticsadmin.properties.dataStreams.list({
|
|
598
|
-
pageSize: 42,
|
|
599
|
-
pageToken: "Test string",
|
|
600
|
-
parent: "Test string",
|
|
601
|
-
});
|
|
602
|
-
/** Updates a DataStream on a property. */
|
|
603
|
-
await gapi.client.analyticsadmin.properties.dataStreams.patch({
|
|
604
|
-
name: "Test string",
|
|
605
|
-
updateMask: "Test string",
|
|
606
|
-
}, {
|
|
607
|
-
androidAppStreamData: {
|
|
608
|
-
firebaseAppId: "Test string",
|
|
609
|
-
packageName: "Test string",
|
|
610
|
-
},
|
|
611
|
-
createTime: "Test string",
|
|
612
|
-
displayName: "Test string",
|
|
613
|
-
iosAppStreamData: {
|
|
614
|
-
bundleId: "Test string",
|
|
615
|
-
firebaseAppId: "Test string",
|
|
616
|
-
},
|
|
617
|
-
name: "Test string",
|
|
618
|
-
type: "Test string",
|
|
619
|
-
updateTime: "Test string",
|
|
620
|
-
webStreamData: {
|
|
621
|
-
defaultUri: "Test string",
|
|
622
|
-
firebaseAppId: "Test string",
|
|
623
|
-
measurementId: "Test string",
|
|
624
|
-
},
|
|
625
|
-
});
|
|
626
|
-
/** Creates a measurement protocol secret. */
|
|
627
|
-
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create({
|
|
628
|
-
parent: "Test string",
|
|
629
|
-
}, {
|
|
630
|
-
displayName: "Test string",
|
|
631
|
-
name: "Test string",
|
|
632
|
-
secretValue: "Test string",
|
|
633
|
-
});
|
|
634
|
-
/** Deletes target MeasurementProtocolSecret. */
|
|
635
|
-
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.delete({
|
|
636
|
-
name: "Test string",
|
|
637
|
-
});
|
|
638
|
-
/** Lookup for a single "GA4" MeasurementProtocolSecret. */
|
|
639
|
-
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.get({
|
|
640
|
-
name: "Test string",
|
|
641
|
-
});
|
|
642
|
-
/** Returns child MeasurementProtocolSecrets under the specified parent Property. */
|
|
643
|
-
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.list({
|
|
644
|
-
pageSize: 42,
|
|
645
|
-
pageToken: "Test string",
|
|
646
|
-
parent: "Test string",
|
|
647
|
-
});
|
|
648
|
-
/** Updates a measurement protocol secret. */
|
|
649
|
-
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.patch({
|
|
650
|
-
name: "Test string",
|
|
651
|
-
updateMask: "Test string",
|
|
652
|
-
}, {
|
|
653
|
-
displayName: "Test string",
|
|
654
|
-
name: "Test string",
|
|
655
|
-
secretValue: "Test string",
|
|
656
|
-
});
|
|
657
|
-
/** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
|
|
658
|
-
await gapi.client.analyticsadmin.properties.firebaseLinks.create({
|
|
659
|
-
parent: "Test string",
|
|
660
|
-
}, {
|
|
661
|
-
createTime: "Test string",
|
|
662
|
-
name: "Test string",
|
|
663
|
-
project: "Test string",
|
|
664
|
-
});
|
|
665
|
-
/** Deletes a FirebaseLink on a property */
|
|
666
|
-
await gapi.client.analyticsadmin.properties.firebaseLinks.delete({
|
|
667
|
-
name: "Test string",
|
|
668
|
-
});
|
|
669
|
-
/** Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. */
|
|
670
|
-
await gapi.client.analyticsadmin.properties.firebaseLinks.list({
|
|
671
|
-
pageSize: 42,
|
|
672
|
-
pageToken: "Test string",
|
|
673
|
-
parent: "Test string",
|
|
674
|
-
});
|
|
675
|
-
/** Creates a GoogleAdsLink. */
|
|
676
|
-
await gapi.client.analyticsadmin.properties.googleAdsLinks.create({
|
|
677
|
-
parent: "Test string",
|
|
678
|
-
}, {
|
|
679
|
-
adsPersonalizationEnabled: true,
|
|
680
|
-
canManageClients: true,
|
|
681
|
-
createTime: "Test string",
|
|
682
|
-
creatorEmailAddress: "Test string",
|
|
683
|
-
customerId: "Test string",
|
|
684
|
-
name: "Test string",
|
|
685
|
-
updateTime: "Test string",
|
|
686
|
-
});
|
|
687
|
-
/** Deletes a GoogleAdsLink on a property */
|
|
688
|
-
await gapi.client.analyticsadmin.properties.googleAdsLinks.delete({
|
|
689
|
-
name: "Test string",
|
|
690
|
-
});
|
|
691
|
-
/** Lists GoogleAdsLinks on a property. */
|
|
692
|
-
await gapi.client.analyticsadmin.properties.googleAdsLinks.list({
|
|
693
|
-
pageSize: 42,
|
|
694
|
-
pageToken: "Test string",
|
|
695
|
-
parent: "Test string",
|
|
696
|
-
});
|
|
697
|
-
/** Updates a GoogleAdsLink on a property */
|
|
698
|
-
await gapi.client.analyticsadmin.properties.googleAdsLinks.patch({
|
|
699
|
-
name: "Test string",
|
|
700
|
-
updateMask: "Test string",
|
|
701
|
-
}, {
|
|
702
|
-
adsPersonalizationEnabled: true,
|
|
703
|
-
canManageClients: true,
|
|
704
|
-
createTime: "Test string",
|
|
705
|
-
creatorEmailAddress: "Test string",
|
|
706
|
-
customerId: "Test string",
|
|
707
|
-
name: "Test string",
|
|
708
|
-
updateTime: "Test string",
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
});
|