@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20220810
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 +5060 -0
- package/package.json +20 -0
- package/readme.md +182 -0
- package/tests.ts +1148 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,1148 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.analyticsadmin-v1alpha 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: 20220810
|
|
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=v1alpha');
|
|
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
|
+
/** Manage Google Analytics Account users by email address */
|
|
21
|
+
'https://www.googleapis.com/auth/analytics.manage.users',
|
|
22
|
+
/** View Google Analytics user permissions */
|
|
23
|
+
'https://www.googleapis.com/auth/analytics.manage.users.readonly',
|
|
24
|
+
/** See and download your Google Analytics data */
|
|
25
|
+
'https://www.googleapis.com/auth/analytics.readonly',
|
|
26
|
+
];
|
|
27
|
+
const immediate = false;
|
|
28
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
29
|
+
if (authResult && !authResult.error) {
|
|
30
|
+
/** handle successful authorization */
|
|
31
|
+
run();
|
|
32
|
+
} else {
|
|
33
|
+
/** handle authorization error */
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
async function run() {
|
|
38
|
+
/**
|
|
39
|
+
* 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
|
|
40
|
+
* 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 purged.
|
|
41
|
+
* https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
42
|
+
*/
|
|
43
|
+
await gapi.client.analyticsadmin.accounts.delete({
|
|
44
|
+
name: "Test string",
|
|
45
|
+
});
|
|
46
|
+
/** Lookup for a single Account. */
|
|
47
|
+
await gapi.client.analyticsadmin.accounts.get({
|
|
48
|
+
name: "Test string",
|
|
49
|
+
});
|
|
50
|
+
/** Get data sharing settings on an account. Data sharing settings are singletons. */
|
|
51
|
+
await gapi.client.analyticsadmin.accounts.getDataSharingSettings({
|
|
52
|
+
name: "Test string",
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* 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
|
|
56
|
+
* an empty list if no relevant accounts are found.
|
|
57
|
+
*/
|
|
58
|
+
await gapi.client.analyticsadmin.accounts.list({
|
|
59
|
+
pageSize: 42,
|
|
60
|
+
pageToken: "Test string",
|
|
61
|
+
showDeleted: true,
|
|
62
|
+
});
|
|
63
|
+
/** Updates an account. */
|
|
64
|
+
await gapi.client.analyticsadmin.accounts.patch({
|
|
65
|
+
name: "Test string",
|
|
66
|
+
updateMask: "Test string",
|
|
67
|
+
}, {
|
|
68
|
+
createTime: "Test string",
|
|
69
|
+
deleted: true,
|
|
70
|
+
displayName: "Test string",
|
|
71
|
+
name: "Test string",
|
|
72
|
+
regionCode: "Test string",
|
|
73
|
+
updateTime: "Test string",
|
|
74
|
+
});
|
|
75
|
+
/** Requests a ticket for creating an account. */
|
|
76
|
+
await gapi.client.analyticsadmin.accounts.provisionAccountTicket({
|
|
77
|
+
}, {
|
|
78
|
+
account: {
|
|
79
|
+
createTime: "Test string",
|
|
80
|
+
deleted: true,
|
|
81
|
+
displayName: "Test string",
|
|
82
|
+
name: "Test string",
|
|
83
|
+
regionCode: "Test string",
|
|
84
|
+
updateTime: "Test string",
|
|
85
|
+
},
|
|
86
|
+
redirectUri: "Test string",
|
|
87
|
+
});
|
|
88
|
+
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
89
|
+
await gapi.client.analyticsadmin.accounts.searchChangeHistoryEvents({
|
|
90
|
+
account: "Test string",
|
|
91
|
+
}, {
|
|
92
|
+
action: [
|
|
93
|
+
"Test string"
|
|
94
|
+
],
|
|
95
|
+
actorEmail: [
|
|
96
|
+
"Test string"
|
|
97
|
+
],
|
|
98
|
+
earliestChangeTime: "Test string",
|
|
99
|
+
latestChangeTime: "Test string",
|
|
100
|
+
pageSize: 42,
|
|
101
|
+
pageToken: "Test string",
|
|
102
|
+
property: "Test string",
|
|
103
|
+
resourceType: [
|
|
104
|
+
"Test string"
|
|
105
|
+
],
|
|
106
|
+
});
|
|
107
|
+
/**
|
|
108
|
+
* Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does
|
|
109
|
+
* not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them
|
|
110
|
+
* permissions, which is currently only usable/discoverable in the GA or GMP UIs.
|
|
111
|
+
*/
|
|
112
|
+
await gapi.client.analyticsadmin.accounts.userLinks.audit({
|
|
113
|
+
parent: "Test string",
|
|
114
|
+
}, {
|
|
115
|
+
pageSize: 42,
|
|
116
|
+
pageToken: "Test string",
|
|
117
|
+
});
|
|
118
|
+
/** Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created. */
|
|
119
|
+
await gapi.client.analyticsadmin.accounts.userLinks.batchCreate({
|
|
120
|
+
parent: "Test string",
|
|
121
|
+
}, {
|
|
122
|
+
notifyNewUsers: true,
|
|
123
|
+
requests: [
|
|
124
|
+
{
|
|
125
|
+
notifyNewUser: true,
|
|
126
|
+
parent: "Test string",
|
|
127
|
+
userLink: {
|
|
128
|
+
directRoles: [
|
|
129
|
+
"Test string"
|
|
130
|
+
],
|
|
131
|
+
emailAddress: "Test string",
|
|
132
|
+
name: "Test string",
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
});
|
|
137
|
+
/** Deletes information about multiple users' links to an account or property. */
|
|
138
|
+
await gapi.client.analyticsadmin.accounts.userLinks.batchDelete({
|
|
139
|
+
parent: "Test string",
|
|
140
|
+
}, {
|
|
141
|
+
requests: [
|
|
142
|
+
{
|
|
143
|
+
name: "Test string",
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
});
|
|
147
|
+
/** Gets information about multiple users' links to an account or property. */
|
|
148
|
+
await gapi.client.analyticsadmin.accounts.userLinks.batchGet({
|
|
149
|
+
names: "Test string",
|
|
150
|
+
parent: "Test string",
|
|
151
|
+
});
|
|
152
|
+
/** Updates information about multiple users' links to an account or property. */
|
|
153
|
+
await gapi.client.analyticsadmin.accounts.userLinks.batchUpdate({
|
|
154
|
+
parent: "Test string",
|
|
155
|
+
}, {
|
|
156
|
+
requests: [
|
|
157
|
+
{
|
|
158
|
+
userLink: {
|
|
159
|
+
directRoles: [
|
|
160
|
+
"Test string"
|
|
161
|
+
],
|
|
162
|
+
emailAddress: "Test string",
|
|
163
|
+
name: "Test string",
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
});
|
|
168
|
+
/**
|
|
169
|
+
* Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be
|
|
170
|
+
* unioned with the permissions specified in the new UserLink.
|
|
171
|
+
*/
|
|
172
|
+
await gapi.client.analyticsadmin.accounts.userLinks.create({
|
|
173
|
+
notifyNewUser: true,
|
|
174
|
+
parent: "Test string",
|
|
175
|
+
}, {
|
|
176
|
+
directRoles: [
|
|
177
|
+
"Test string"
|
|
178
|
+
],
|
|
179
|
+
emailAddress: "Test string",
|
|
180
|
+
name: "Test string",
|
|
181
|
+
});
|
|
182
|
+
/** Deletes a user link on an account or property. */
|
|
183
|
+
await gapi.client.analyticsadmin.accounts.userLinks.delete({
|
|
184
|
+
name: "Test string",
|
|
185
|
+
});
|
|
186
|
+
/** Gets information about a user's link to an account or property. */
|
|
187
|
+
await gapi.client.analyticsadmin.accounts.userLinks.get({
|
|
188
|
+
name: "Test string",
|
|
189
|
+
});
|
|
190
|
+
/** Lists all user links on an account or property. */
|
|
191
|
+
await gapi.client.analyticsadmin.accounts.userLinks.list({
|
|
192
|
+
pageSize: 42,
|
|
193
|
+
pageToken: "Test string",
|
|
194
|
+
parent: "Test string",
|
|
195
|
+
});
|
|
196
|
+
/** Updates a user link on an account or property. */
|
|
197
|
+
await gapi.client.analyticsadmin.accounts.userLinks.patch({
|
|
198
|
+
name: "Test string",
|
|
199
|
+
}, {
|
|
200
|
+
directRoles: [
|
|
201
|
+
"Test string"
|
|
202
|
+
],
|
|
203
|
+
emailAddress: "Test string",
|
|
204
|
+
name: "Test string",
|
|
205
|
+
});
|
|
206
|
+
/** Returns summaries of all accounts accessible by the caller. */
|
|
207
|
+
await gapi.client.analyticsadmin.accountSummaries.list({
|
|
208
|
+
pageSize: 42,
|
|
209
|
+
pageToken: "Test string",
|
|
210
|
+
});
|
|
211
|
+
/**
|
|
212
|
+
* 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
|
|
213
|
+
* MeasurementProtocolSecret resources may be created.
|
|
214
|
+
*/
|
|
215
|
+
await gapi.client.analyticsadmin.properties.acknowledgeUserDataCollection({
|
|
216
|
+
property: "Test string",
|
|
217
|
+
}, {
|
|
218
|
+
acknowledgement: "Test string",
|
|
219
|
+
});
|
|
220
|
+
/** Creates an "GA4" property with the specified location and attributes. */
|
|
221
|
+
await gapi.client.analyticsadmin.properties.create({
|
|
222
|
+
}, {
|
|
223
|
+
account: "Test string",
|
|
224
|
+
createTime: "Test string",
|
|
225
|
+
currencyCode: "Test string",
|
|
226
|
+
deleteTime: "Test string",
|
|
227
|
+
displayName: "Test string",
|
|
228
|
+
expireTime: "Test string",
|
|
229
|
+
industryCategory: "Test string",
|
|
230
|
+
name: "Test string",
|
|
231
|
+
parent: "Test string",
|
|
232
|
+
propertyType: "Test string",
|
|
233
|
+
serviceLevel: "Test string",
|
|
234
|
+
timeZone: "Test string",
|
|
235
|
+
updateTime: "Test string",
|
|
236
|
+
});
|
|
237
|
+
/**
|
|
238
|
+
* 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
|
|
239
|
+
* 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 purged.
|
|
240
|
+
* https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.
|
|
241
|
+
*/
|
|
242
|
+
await gapi.client.analyticsadmin.properties.delete({
|
|
243
|
+
name: "Test string",
|
|
244
|
+
});
|
|
245
|
+
/** Lookup for a single "GA4" Property. */
|
|
246
|
+
await gapi.client.analyticsadmin.properties.get({
|
|
247
|
+
name: "Test string",
|
|
248
|
+
});
|
|
249
|
+
/** Lookup for a AttributionSettings singleton. */
|
|
250
|
+
await gapi.client.analyticsadmin.properties.getAttributionSettings({
|
|
251
|
+
name: "Test string",
|
|
252
|
+
});
|
|
253
|
+
/** Returns the singleton data retention settings for this property. */
|
|
254
|
+
await gapi.client.analyticsadmin.properties.getDataRetentionSettings({
|
|
255
|
+
name: "Test string",
|
|
256
|
+
});
|
|
257
|
+
/** Lookup for Google Signals settings for a property. */
|
|
258
|
+
await gapi.client.analyticsadmin.properties.getGoogleSignalsSettings({
|
|
259
|
+
name: "Test string",
|
|
260
|
+
});
|
|
261
|
+
/**
|
|
262
|
+
* 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:
|
|
263
|
+
* "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.
|
|
264
|
+
*/
|
|
265
|
+
await gapi.client.analyticsadmin.properties.list({
|
|
266
|
+
filter: "Test string",
|
|
267
|
+
pageSize: 42,
|
|
268
|
+
pageToken: "Test string",
|
|
269
|
+
showDeleted: true,
|
|
270
|
+
});
|
|
271
|
+
/** Updates a property. */
|
|
272
|
+
await gapi.client.analyticsadmin.properties.patch({
|
|
273
|
+
name: "Test string",
|
|
274
|
+
updateMask: "Test string",
|
|
275
|
+
}, {
|
|
276
|
+
account: "Test string",
|
|
277
|
+
createTime: "Test string",
|
|
278
|
+
currencyCode: "Test string",
|
|
279
|
+
deleteTime: "Test string",
|
|
280
|
+
displayName: "Test string",
|
|
281
|
+
expireTime: "Test string",
|
|
282
|
+
industryCategory: "Test string",
|
|
283
|
+
name: "Test string",
|
|
284
|
+
parent: "Test string",
|
|
285
|
+
propertyType: "Test string",
|
|
286
|
+
serviceLevel: "Test string",
|
|
287
|
+
timeZone: "Test string",
|
|
288
|
+
updateTime: "Test string",
|
|
289
|
+
});
|
|
290
|
+
/**
|
|
291
|
+
* 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.
|
|
292
|
+
* 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
|
|
293
|
+
* 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
|
|
294
|
+
* property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
295
|
+
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
296
|
+
*/
|
|
297
|
+
await gapi.client.analyticsadmin.properties.runAccessReport({
|
|
298
|
+
entity: "Test string",
|
|
299
|
+
}, {
|
|
300
|
+
dateRanges: [
|
|
301
|
+
{
|
|
302
|
+
endDate: "Test string",
|
|
303
|
+
startDate: "Test string",
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
dimensionFilter: {
|
|
307
|
+
accessFilter: {
|
|
308
|
+
betweenFilter: {
|
|
309
|
+
fromValue: {
|
|
310
|
+
doubleValue: 42,
|
|
311
|
+
int64Value: "Test string",
|
|
312
|
+
},
|
|
313
|
+
toValue: {
|
|
314
|
+
doubleValue: 42,
|
|
315
|
+
int64Value: "Test string",
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
fieldName: "Test string",
|
|
319
|
+
inListFilter: {
|
|
320
|
+
caseSensitive: true,
|
|
321
|
+
values: [
|
|
322
|
+
"Test string"
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
numericFilter: {
|
|
326
|
+
operation: "Test string",
|
|
327
|
+
value: {
|
|
328
|
+
doubleValue: 42,
|
|
329
|
+
int64Value: "Test string",
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
stringFilter: {
|
|
333
|
+
caseSensitive: true,
|
|
334
|
+
matchType: "Test string",
|
|
335
|
+
value: "Test string",
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
andGroup: {
|
|
339
|
+
expressions: undefined,
|
|
340
|
+
},
|
|
341
|
+
notExpression: undefined,
|
|
342
|
+
orGroup: {
|
|
343
|
+
expressions: undefined,
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
dimensions: [
|
|
347
|
+
{
|
|
348
|
+
dimensionName: "Test string",
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
limit: "Test string",
|
|
352
|
+
metricFilter: {
|
|
353
|
+
accessFilter: {
|
|
354
|
+
betweenFilter: {
|
|
355
|
+
fromValue: {
|
|
356
|
+
doubleValue: 42,
|
|
357
|
+
int64Value: "Test string",
|
|
358
|
+
},
|
|
359
|
+
toValue: {
|
|
360
|
+
doubleValue: 42,
|
|
361
|
+
int64Value: "Test string",
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
fieldName: "Test string",
|
|
365
|
+
inListFilter: {
|
|
366
|
+
caseSensitive: true,
|
|
367
|
+
values: [
|
|
368
|
+
"Test string"
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
numericFilter: {
|
|
372
|
+
operation: "Test string",
|
|
373
|
+
value: {
|
|
374
|
+
doubleValue: 42,
|
|
375
|
+
int64Value: "Test string",
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
stringFilter: {
|
|
379
|
+
caseSensitive: true,
|
|
380
|
+
matchType: "Test string",
|
|
381
|
+
value: "Test string",
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
andGroup: {
|
|
385
|
+
expressions: undefined,
|
|
386
|
+
},
|
|
387
|
+
notExpression: undefined,
|
|
388
|
+
orGroup: {
|
|
389
|
+
expressions: undefined,
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
metrics: [
|
|
393
|
+
{
|
|
394
|
+
metricName: "Test string",
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
offset: "Test string",
|
|
398
|
+
orderBys: [
|
|
399
|
+
{
|
|
400
|
+
desc: true,
|
|
401
|
+
dimension: {
|
|
402
|
+
dimensionName: "Test string",
|
|
403
|
+
orderType: "Test string",
|
|
404
|
+
},
|
|
405
|
+
metric: {
|
|
406
|
+
metricName: "Test string",
|
|
407
|
+
},
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
returnEntityQuota: true,
|
|
411
|
+
timeZone: "Test string",
|
|
412
|
+
});
|
|
413
|
+
/** Updates attribution settings on a property. */
|
|
414
|
+
await gapi.client.analyticsadmin.properties.updateAttributionSettings({
|
|
415
|
+
name: "Test string",
|
|
416
|
+
updateMask: "Test string",
|
|
417
|
+
}, {
|
|
418
|
+
acquisitionConversionEventLookbackWindow: "Test string",
|
|
419
|
+
name: "Test string",
|
|
420
|
+
otherConversionEventLookbackWindow: "Test string",
|
|
421
|
+
reportingAttributionModel: "Test string",
|
|
422
|
+
});
|
|
423
|
+
/** Updates the singleton data retention settings for this property. */
|
|
424
|
+
await gapi.client.analyticsadmin.properties.updateDataRetentionSettings({
|
|
425
|
+
name: "Test string",
|
|
426
|
+
updateMask: "Test string",
|
|
427
|
+
}, {
|
|
428
|
+
eventDataRetention: "Test string",
|
|
429
|
+
name: "Test string",
|
|
430
|
+
resetUserDataOnNewActivity: true,
|
|
431
|
+
});
|
|
432
|
+
/** Updates Google Signals settings for a property. */
|
|
433
|
+
await gapi.client.analyticsadmin.properties.updateGoogleSignalsSettings({
|
|
434
|
+
name: "Test string",
|
|
435
|
+
updateMask: "Test string",
|
|
436
|
+
}, {
|
|
437
|
+
consent: "Test string",
|
|
438
|
+
name: "Test string",
|
|
439
|
+
state: "Test string",
|
|
440
|
+
});
|
|
441
|
+
/** Archives an Audience on a property. */
|
|
442
|
+
await gapi.client.analyticsadmin.properties.audiences.archive({
|
|
443
|
+
name: "Test string",
|
|
444
|
+
}, {
|
|
445
|
+
});
|
|
446
|
+
/** Creates an Audience. */
|
|
447
|
+
await gapi.client.analyticsadmin.properties.audiences.create({
|
|
448
|
+
parent: "Test string",
|
|
449
|
+
}, {
|
|
450
|
+
adsPersonalizationEnabled: true,
|
|
451
|
+
description: "Test string",
|
|
452
|
+
displayName: "Test string",
|
|
453
|
+
eventTrigger: {
|
|
454
|
+
eventName: "Test string",
|
|
455
|
+
logCondition: "Test string",
|
|
456
|
+
},
|
|
457
|
+
exclusionDurationMode: "Test string",
|
|
458
|
+
filterClauses: [
|
|
459
|
+
{
|
|
460
|
+
clauseType: "Test string",
|
|
461
|
+
sequenceFilter: {
|
|
462
|
+
scope: "Test string",
|
|
463
|
+
sequenceMaximumDuration: "Test string",
|
|
464
|
+
sequenceSteps: [
|
|
465
|
+
{
|
|
466
|
+
constraintDuration: "Test string",
|
|
467
|
+
filterExpression: {
|
|
468
|
+
andGroup: {
|
|
469
|
+
filterExpressions: undefined,
|
|
470
|
+
},
|
|
471
|
+
dimensionOrMetricFilter: {
|
|
472
|
+
atAnyPointInTime: true,
|
|
473
|
+
betweenFilter: {
|
|
474
|
+
fromValue: {
|
|
475
|
+
doubleValue: 42,
|
|
476
|
+
int64Value: "Test string",
|
|
477
|
+
},
|
|
478
|
+
toValue: {
|
|
479
|
+
doubleValue: 42,
|
|
480
|
+
int64Value: "Test string",
|
|
481
|
+
},
|
|
482
|
+
},
|
|
483
|
+
fieldName: "Test string",
|
|
484
|
+
inAnyNDayPeriod: 42,
|
|
485
|
+
inListFilter: {
|
|
486
|
+
caseSensitive: true,
|
|
487
|
+
values: [
|
|
488
|
+
"Test string"
|
|
489
|
+
],
|
|
490
|
+
},
|
|
491
|
+
numericFilter: {
|
|
492
|
+
operation: "Test string",
|
|
493
|
+
value: {
|
|
494
|
+
doubleValue: 42,
|
|
495
|
+
int64Value: "Test string",
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
stringFilter: {
|
|
499
|
+
caseSensitive: true,
|
|
500
|
+
matchType: "Test string",
|
|
501
|
+
value: "Test string",
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
eventFilter: {
|
|
505
|
+
eventName: "Test string",
|
|
506
|
+
eventParameterFilterExpression: undefined,
|
|
507
|
+
},
|
|
508
|
+
notExpression: undefined,
|
|
509
|
+
orGroup: {
|
|
510
|
+
filterExpressions: undefined,
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
immediatelyFollows: true,
|
|
514
|
+
scope: "Test string",
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
},
|
|
518
|
+
simpleFilter: {
|
|
519
|
+
filterExpression: {
|
|
520
|
+
andGroup: {
|
|
521
|
+
filterExpressions: undefined,
|
|
522
|
+
},
|
|
523
|
+
dimensionOrMetricFilter: {
|
|
524
|
+
atAnyPointInTime: true,
|
|
525
|
+
betweenFilter: {
|
|
526
|
+
fromValue: {
|
|
527
|
+
doubleValue: 42,
|
|
528
|
+
int64Value: "Test string",
|
|
529
|
+
},
|
|
530
|
+
toValue: {
|
|
531
|
+
doubleValue: 42,
|
|
532
|
+
int64Value: "Test string",
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
fieldName: "Test string",
|
|
536
|
+
inAnyNDayPeriod: 42,
|
|
537
|
+
inListFilter: {
|
|
538
|
+
caseSensitive: true,
|
|
539
|
+
values: [
|
|
540
|
+
"Test string"
|
|
541
|
+
],
|
|
542
|
+
},
|
|
543
|
+
numericFilter: {
|
|
544
|
+
operation: "Test string",
|
|
545
|
+
value: {
|
|
546
|
+
doubleValue: 42,
|
|
547
|
+
int64Value: "Test string",
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
stringFilter: {
|
|
551
|
+
caseSensitive: true,
|
|
552
|
+
matchType: "Test string",
|
|
553
|
+
value: "Test string",
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
eventFilter: {
|
|
557
|
+
eventName: "Test string",
|
|
558
|
+
eventParameterFilterExpression: undefined,
|
|
559
|
+
},
|
|
560
|
+
notExpression: undefined,
|
|
561
|
+
orGroup: {
|
|
562
|
+
filterExpressions: undefined,
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
scope: "Test string",
|
|
566
|
+
},
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
membershipDurationDays: 42,
|
|
570
|
+
name: "Test string",
|
|
571
|
+
});
|
|
572
|
+
/** Lookup for a single Audience. Audiences created before 2020 may not be supported. */
|
|
573
|
+
await gapi.client.analyticsadmin.properties.audiences.get({
|
|
574
|
+
name: "Test string",
|
|
575
|
+
});
|
|
576
|
+
/** Lists Audiences on a property. Audiences created before 2020 may not be supported. */
|
|
577
|
+
await gapi.client.analyticsadmin.properties.audiences.list({
|
|
578
|
+
pageSize: 42,
|
|
579
|
+
pageToken: "Test string",
|
|
580
|
+
parent: "Test string",
|
|
581
|
+
});
|
|
582
|
+
/** Updates an Audience on a property. */
|
|
583
|
+
await gapi.client.analyticsadmin.properties.audiences.patch({
|
|
584
|
+
name: "Test string",
|
|
585
|
+
updateMask: "Test string",
|
|
586
|
+
}, {
|
|
587
|
+
adsPersonalizationEnabled: true,
|
|
588
|
+
description: "Test string",
|
|
589
|
+
displayName: "Test string",
|
|
590
|
+
eventTrigger: {
|
|
591
|
+
eventName: "Test string",
|
|
592
|
+
logCondition: "Test string",
|
|
593
|
+
},
|
|
594
|
+
exclusionDurationMode: "Test string",
|
|
595
|
+
filterClauses: [
|
|
596
|
+
{
|
|
597
|
+
clauseType: "Test string",
|
|
598
|
+
sequenceFilter: {
|
|
599
|
+
scope: "Test string",
|
|
600
|
+
sequenceMaximumDuration: "Test string",
|
|
601
|
+
sequenceSteps: [
|
|
602
|
+
{
|
|
603
|
+
constraintDuration: "Test string",
|
|
604
|
+
filterExpression: {
|
|
605
|
+
andGroup: {
|
|
606
|
+
filterExpressions: undefined,
|
|
607
|
+
},
|
|
608
|
+
dimensionOrMetricFilter: {
|
|
609
|
+
atAnyPointInTime: true,
|
|
610
|
+
betweenFilter: {
|
|
611
|
+
fromValue: {
|
|
612
|
+
doubleValue: 42,
|
|
613
|
+
int64Value: "Test string",
|
|
614
|
+
},
|
|
615
|
+
toValue: {
|
|
616
|
+
doubleValue: 42,
|
|
617
|
+
int64Value: "Test string",
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
fieldName: "Test string",
|
|
621
|
+
inAnyNDayPeriod: 42,
|
|
622
|
+
inListFilter: {
|
|
623
|
+
caseSensitive: true,
|
|
624
|
+
values: [
|
|
625
|
+
"Test string"
|
|
626
|
+
],
|
|
627
|
+
},
|
|
628
|
+
numericFilter: {
|
|
629
|
+
operation: "Test string",
|
|
630
|
+
value: {
|
|
631
|
+
doubleValue: 42,
|
|
632
|
+
int64Value: "Test string",
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
stringFilter: {
|
|
636
|
+
caseSensitive: true,
|
|
637
|
+
matchType: "Test string",
|
|
638
|
+
value: "Test string",
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
eventFilter: {
|
|
642
|
+
eventName: "Test string",
|
|
643
|
+
eventParameterFilterExpression: undefined,
|
|
644
|
+
},
|
|
645
|
+
notExpression: undefined,
|
|
646
|
+
orGroup: {
|
|
647
|
+
filterExpressions: undefined,
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
immediatelyFollows: true,
|
|
651
|
+
scope: "Test string",
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
},
|
|
655
|
+
simpleFilter: {
|
|
656
|
+
filterExpression: {
|
|
657
|
+
andGroup: {
|
|
658
|
+
filterExpressions: undefined,
|
|
659
|
+
},
|
|
660
|
+
dimensionOrMetricFilter: {
|
|
661
|
+
atAnyPointInTime: true,
|
|
662
|
+
betweenFilter: {
|
|
663
|
+
fromValue: {
|
|
664
|
+
doubleValue: 42,
|
|
665
|
+
int64Value: "Test string",
|
|
666
|
+
},
|
|
667
|
+
toValue: {
|
|
668
|
+
doubleValue: 42,
|
|
669
|
+
int64Value: "Test string",
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
fieldName: "Test string",
|
|
673
|
+
inAnyNDayPeriod: 42,
|
|
674
|
+
inListFilter: {
|
|
675
|
+
caseSensitive: true,
|
|
676
|
+
values: [
|
|
677
|
+
"Test string"
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
numericFilter: {
|
|
681
|
+
operation: "Test string",
|
|
682
|
+
value: {
|
|
683
|
+
doubleValue: 42,
|
|
684
|
+
int64Value: "Test string",
|
|
685
|
+
},
|
|
686
|
+
},
|
|
687
|
+
stringFilter: {
|
|
688
|
+
caseSensitive: true,
|
|
689
|
+
matchType: "Test string",
|
|
690
|
+
value: "Test string",
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
eventFilter: {
|
|
694
|
+
eventName: "Test string",
|
|
695
|
+
eventParameterFilterExpression: undefined,
|
|
696
|
+
},
|
|
697
|
+
notExpression: undefined,
|
|
698
|
+
orGroup: {
|
|
699
|
+
filterExpressions: undefined,
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
scope: "Test string",
|
|
703
|
+
},
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
membershipDurationDays: 42,
|
|
707
|
+
name: "Test string",
|
|
708
|
+
});
|
|
709
|
+
/** Creates a conversion event with the specified attributes. */
|
|
710
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.create({
|
|
711
|
+
parent: "Test string",
|
|
712
|
+
}, {
|
|
713
|
+
createTime: "Test string",
|
|
714
|
+
custom: true,
|
|
715
|
+
deletable: true,
|
|
716
|
+
eventName: "Test string",
|
|
717
|
+
name: "Test string",
|
|
718
|
+
});
|
|
719
|
+
/** Deletes a conversion event in a property. */
|
|
720
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.delete({
|
|
721
|
+
name: "Test string",
|
|
722
|
+
});
|
|
723
|
+
/** Retrieve a single conversion event. */
|
|
724
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.get({
|
|
725
|
+
name: "Test string",
|
|
726
|
+
});
|
|
727
|
+
/** Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found. */
|
|
728
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.list({
|
|
729
|
+
pageSize: 42,
|
|
730
|
+
pageToken: "Test string",
|
|
731
|
+
parent: "Test string",
|
|
732
|
+
});
|
|
733
|
+
/** Archives a CustomDimension on a property. */
|
|
734
|
+
await gapi.client.analyticsadmin.properties.customDimensions.archive({
|
|
735
|
+
name: "Test string",
|
|
736
|
+
}, {
|
|
737
|
+
});
|
|
738
|
+
/** Creates a CustomDimension. */
|
|
739
|
+
await gapi.client.analyticsadmin.properties.customDimensions.create({
|
|
740
|
+
parent: "Test string",
|
|
741
|
+
}, {
|
|
742
|
+
description: "Test string",
|
|
743
|
+
disallowAdsPersonalization: true,
|
|
744
|
+
displayName: "Test string",
|
|
745
|
+
name: "Test string",
|
|
746
|
+
parameterName: "Test string",
|
|
747
|
+
scope: "Test string",
|
|
748
|
+
});
|
|
749
|
+
/** Lookup for a single CustomDimension. */
|
|
750
|
+
await gapi.client.analyticsadmin.properties.customDimensions.get({
|
|
751
|
+
name: "Test string",
|
|
752
|
+
});
|
|
753
|
+
/** Lists CustomDimensions on a property. */
|
|
754
|
+
await gapi.client.analyticsadmin.properties.customDimensions.list({
|
|
755
|
+
pageSize: 42,
|
|
756
|
+
pageToken: "Test string",
|
|
757
|
+
parent: "Test string",
|
|
758
|
+
});
|
|
759
|
+
/** Updates a CustomDimension on a property. */
|
|
760
|
+
await gapi.client.analyticsadmin.properties.customDimensions.patch({
|
|
761
|
+
name: "Test string",
|
|
762
|
+
updateMask: "Test string",
|
|
763
|
+
}, {
|
|
764
|
+
description: "Test string",
|
|
765
|
+
disallowAdsPersonalization: true,
|
|
766
|
+
displayName: "Test string",
|
|
767
|
+
name: "Test string",
|
|
768
|
+
parameterName: "Test string",
|
|
769
|
+
scope: "Test string",
|
|
770
|
+
});
|
|
771
|
+
/** Archives a CustomMetric on a property. */
|
|
772
|
+
await gapi.client.analyticsadmin.properties.customMetrics.archive({
|
|
773
|
+
name: "Test string",
|
|
774
|
+
}, {
|
|
775
|
+
});
|
|
776
|
+
/** Creates a CustomMetric. */
|
|
777
|
+
await gapi.client.analyticsadmin.properties.customMetrics.create({
|
|
778
|
+
parent: "Test string",
|
|
779
|
+
}, {
|
|
780
|
+
description: "Test string",
|
|
781
|
+
displayName: "Test string",
|
|
782
|
+
measurementUnit: "Test string",
|
|
783
|
+
name: "Test string",
|
|
784
|
+
parameterName: "Test string",
|
|
785
|
+
restrictedMetricType: [
|
|
786
|
+
"Test string"
|
|
787
|
+
],
|
|
788
|
+
scope: "Test string",
|
|
789
|
+
});
|
|
790
|
+
/** Lookup for a single CustomMetric. */
|
|
791
|
+
await gapi.client.analyticsadmin.properties.customMetrics.get({
|
|
792
|
+
name: "Test string",
|
|
793
|
+
});
|
|
794
|
+
/** Lists CustomMetrics on a property. */
|
|
795
|
+
await gapi.client.analyticsadmin.properties.customMetrics.list({
|
|
796
|
+
pageSize: 42,
|
|
797
|
+
pageToken: "Test string",
|
|
798
|
+
parent: "Test string",
|
|
799
|
+
});
|
|
800
|
+
/** Updates a CustomMetric on a property. */
|
|
801
|
+
await gapi.client.analyticsadmin.properties.customMetrics.patch({
|
|
802
|
+
name: "Test string",
|
|
803
|
+
updateMask: "Test string",
|
|
804
|
+
}, {
|
|
805
|
+
description: "Test string",
|
|
806
|
+
displayName: "Test string",
|
|
807
|
+
measurementUnit: "Test string",
|
|
808
|
+
name: "Test string",
|
|
809
|
+
parameterName: "Test string",
|
|
810
|
+
restrictedMetricType: [
|
|
811
|
+
"Test string"
|
|
812
|
+
],
|
|
813
|
+
scope: "Test string",
|
|
814
|
+
});
|
|
815
|
+
/** Creates a DataStream. */
|
|
816
|
+
await gapi.client.analyticsadmin.properties.dataStreams.create({
|
|
817
|
+
parent: "Test string",
|
|
818
|
+
}, {
|
|
819
|
+
androidAppStreamData: {
|
|
820
|
+
firebaseAppId: "Test string",
|
|
821
|
+
packageName: "Test string",
|
|
822
|
+
},
|
|
823
|
+
createTime: "Test string",
|
|
824
|
+
displayName: "Test string",
|
|
825
|
+
iosAppStreamData: {
|
|
826
|
+
bundleId: "Test string",
|
|
827
|
+
firebaseAppId: "Test string",
|
|
828
|
+
},
|
|
829
|
+
name: "Test string",
|
|
830
|
+
type: "Test string",
|
|
831
|
+
updateTime: "Test string",
|
|
832
|
+
webStreamData: {
|
|
833
|
+
defaultUri: "Test string",
|
|
834
|
+
firebaseAppId: "Test string",
|
|
835
|
+
measurementId: "Test string",
|
|
836
|
+
},
|
|
837
|
+
});
|
|
838
|
+
/** Deletes a DataStream on a property. */
|
|
839
|
+
await gapi.client.analyticsadmin.properties.dataStreams.delete({
|
|
840
|
+
name: "Test string",
|
|
841
|
+
});
|
|
842
|
+
/** Lookup for a single DataStream. */
|
|
843
|
+
await gapi.client.analyticsadmin.properties.dataStreams.get({
|
|
844
|
+
name: "Test string",
|
|
845
|
+
});
|
|
846
|
+
/** Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. */
|
|
847
|
+
await gapi.client.analyticsadmin.properties.dataStreams.getGlobalSiteTag({
|
|
848
|
+
name: "Test string",
|
|
849
|
+
});
|
|
850
|
+
/** Lists DataStreams on a property. */
|
|
851
|
+
await gapi.client.analyticsadmin.properties.dataStreams.list({
|
|
852
|
+
pageSize: 42,
|
|
853
|
+
pageToken: "Test string",
|
|
854
|
+
parent: "Test string",
|
|
855
|
+
});
|
|
856
|
+
/** Updates a DataStream on a property. */
|
|
857
|
+
await gapi.client.analyticsadmin.properties.dataStreams.patch({
|
|
858
|
+
name: "Test string",
|
|
859
|
+
updateMask: "Test string",
|
|
860
|
+
}, {
|
|
861
|
+
androidAppStreamData: {
|
|
862
|
+
firebaseAppId: "Test string",
|
|
863
|
+
packageName: "Test string",
|
|
864
|
+
},
|
|
865
|
+
createTime: "Test string",
|
|
866
|
+
displayName: "Test string",
|
|
867
|
+
iosAppStreamData: {
|
|
868
|
+
bundleId: "Test string",
|
|
869
|
+
firebaseAppId: "Test string",
|
|
870
|
+
},
|
|
871
|
+
name: "Test string",
|
|
872
|
+
type: "Test string",
|
|
873
|
+
updateTime: "Test string",
|
|
874
|
+
webStreamData: {
|
|
875
|
+
defaultUri: "Test string",
|
|
876
|
+
firebaseAppId: "Test string",
|
|
877
|
+
measurementId: "Test string",
|
|
878
|
+
},
|
|
879
|
+
});
|
|
880
|
+
/** Creates a measurement protocol secret. */
|
|
881
|
+
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create({
|
|
882
|
+
parent: "Test string",
|
|
883
|
+
}, {
|
|
884
|
+
displayName: "Test string",
|
|
885
|
+
name: "Test string",
|
|
886
|
+
secretValue: "Test string",
|
|
887
|
+
});
|
|
888
|
+
/** Deletes target MeasurementProtocolSecret. */
|
|
889
|
+
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.delete({
|
|
890
|
+
name: "Test string",
|
|
891
|
+
});
|
|
892
|
+
/** Lookup for a single "GA4" MeasurementProtocolSecret. */
|
|
893
|
+
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.get({
|
|
894
|
+
name: "Test string",
|
|
895
|
+
});
|
|
896
|
+
/** Returns child MeasurementProtocolSecrets under the specified parent Property. */
|
|
897
|
+
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.list({
|
|
898
|
+
pageSize: 42,
|
|
899
|
+
pageToken: "Test string",
|
|
900
|
+
parent: "Test string",
|
|
901
|
+
});
|
|
902
|
+
/** Updates a measurement protocol secret. */
|
|
903
|
+
await gapi.client.analyticsadmin.properties.dataStreams.measurementProtocolSecrets.patch({
|
|
904
|
+
name: "Test string",
|
|
905
|
+
updateMask: "Test string",
|
|
906
|
+
}, {
|
|
907
|
+
displayName: "Test string",
|
|
908
|
+
name: "Test string",
|
|
909
|
+
secretValue: "Test string",
|
|
910
|
+
});
|
|
911
|
+
/** Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created. */
|
|
912
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.approve({
|
|
913
|
+
name: "Test string",
|
|
914
|
+
}, {
|
|
915
|
+
});
|
|
916
|
+
/**
|
|
917
|
+
* Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google
|
|
918
|
+
* Analytics After being cancelled, a proposal will eventually be deleted automatically.
|
|
919
|
+
*/
|
|
920
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.cancel({
|
|
921
|
+
name: "Test string",
|
|
922
|
+
}, {
|
|
923
|
+
});
|
|
924
|
+
/** Creates a DisplayVideo360AdvertiserLinkProposal. */
|
|
925
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.create({
|
|
926
|
+
parent: "Test string",
|
|
927
|
+
}, {
|
|
928
|
+
adsPersonalizationEnabled: true,
|
|
929
|
+
advertiserDisplayName: "Test string",
|
|
930
|
+
advertiserId: "Test string",
|
|
931
|
+
campaignDataSharingEnabled: true,
|
|
932
|
+
costDataSharingEnabled: true,
|
|
933
|
+
linkProposalStatusDetails: {
|
|
934
|
+
linkProposalInitiatingProduct: "Test string",
|
|
935
|
+
linkProposalState: "Test string",
|
|
936
|
+
requestorEmail: "Test string",
|
|
937
|
+
},
|
|
938
|
+
name: "Test string",
|
|
939
|
+
validationEmail: "Test string",
|
|
940
|
+
});
|
|
941
|
+
/** Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals. */
|
|
942
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.delete({
|
|
943
|
+
name: "Test string",
|
|
944
|
+
});
|
|
945
|
+
/** Lookup for a single DisplayVideo360AdvertiserLinkProposal. */
|
|
946
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.get({
|
|
947
|
+
name: "Test string",
|
|
948
|
+
});
|
|
949
|
+
/** Lists DisplayVideo360AdvertiserLinkProposals on a property. */
|
|
950
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.list({
|
|
951
|
+
pageSize: 42,
|
|
952
|
+
pageToken: "Test string",
|
|
953
|
+
parent: "Test string",
|
|
954
|
+
});
|
|
955
|
+
/**
|
|
956
|
+
* Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360
|
|
957
|
+
* advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.
|
|
958
|
+
*/
|
|
959
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinks.create({
|
|
960
|
+
parent: "Test string",
|
|
961
|
+
}, {
|
|
962
|
+
adsPersonalizationEnabled: true,
|
|
963
|
+
advertiserDisplayName: "Test string",
|
|
964
|
+
advertiserId: "Test string",
|
|
965
|
+
campaignDataSharingEnabled: true,
|
|
966
|
+
costDataSharingEnabled: true,
|
|
967
|
+
name: "Test string",
|
|
968
|
+
});
|
|
969
|
+
/** Deletes a DisplayVideo360AdvertiserLink on a property. */
|
|
970
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinks.delete({
|
|
971
|
+
name: "Test string",
|
|
972
|
+
});
|
|
973
|
+
/** Look up a single DisplayVideo360AdvertiserLink */
|
|
974
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinks.get({
|
|
975
|
+
name: "Test string",
|
|
976
|
+
});
|
|
977
|
+
/** Lists all DisplayVideo360AdvertiserLinks on a property. */
|
|
978
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinks.list({
|
|
979
|
+
pageSize: 42,
|
|
980
|
+
pageToken: "Test string",
|
|
981
|
+
parent: "Test string",
|
|
982
|
+
});
|
|
983
|
+
/** Updates a DisplayVideo360AdvertiserLink on a property. */
|
|
984
|
+
await gapi.client.analyticsadmin.properties.displayVideo360AdvertiserLinks.patch({
|
|
985
|
+
name: "Test string",
|
|
986
|
+
updateMask: "Test string",
|
|
987
|
+
}, {
|
|
988
|
+
adsPersonalizationEnabled: true,
|
|
989
|
+
advertiserDisplayName: "Test string",
|
|
990
|
+
advertiserId: "Test string",
|
|
991
|
+
campaignDataSharingEnabled: true,
|
|
992
|
+
costDataSharingEnabled: true,
|
|
993
|
+
name: "Test string",
|
|
994
|
+
});
|
|
995
|
+
/** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
|
|
996
|
+
await gapi.client.analyticsadmin.properties.firebaseLinks.create({
|
|
997
|
+
parent: "Test string",
|
|
998
|
+
}, {
|
|
999
|
+
createTime: "Test string",
|
|
1000
|
+
name: "Test string",
|
|
1001
|
+
project: "Test string",
|
|
1002
|
+
});
|
|
1003
|
+
/** Deletes a FirebaseLink on a property */
|
|
1004
|
+
await gapi.client.analyticsadmin.properties.firebaseLinks.delete({
|
|
1005
|
+
name: "Test string",
|
|
1006
|
+
});
|
|
1007
|
+
/** Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. */
|
|
1008
|
+
await gapi.client.analyticsadmin.properties.firebaseLinks.list({
|
|
1009
|
+
pageSize: 42,
|
|
1010
|
+
pageToken: "Test string",
|
|
1011
|
+
parent: "Test string",
|
|
1012
|
+
});
|
|
1013
|
+
/** Creates a GoogleAdsLink. */
|
|
1014
|
+
await gapi.client.analyticsadmin.properties.googleAdsLinks.create({
|
|
1015
|
+
parent: "Test string",
|
|
1016
|
+
}, {
|
|
1017
|
+
adsPersonalizationEnabled: true,
|
|
1018
|
+
canManageClients: true,
|
|
1019
|
+
createTime: "Test string",
|
|
1020
|
+
creatorEmailAddress: "Test string",
|
|
1021
|
+
customerId: "Test string",
|
|
1022
|
+
name: "Test string",
|
|
1023
|
+
updateTime: "Test string",
|
|
1024
|
+
});
|
|
1025
|
+
/** Deletes a GoogleAdsLink on a property */
|
|
1026
|
+
await gapi.client.analyticsadmin.properties.googleAdsLinks.delete({
|
|
1027
|
+
name: "Test string",
|
|
1028
|
+
});
|
|
1029
|
+
/** Lists GoogleAdsLinks on a property. */
|
|
1030
|
+
await gapi.client.analyticsadmin.properties.googleAdsLinks.list({
|
|
1031
|
+
pageSize: 42,
|
|
1032
|
+
pageToken: "Test string",
|
|
1033
|
+
parent: "Test string",
|
|
1034
|
+
});
|
|
1035
|
+
/** Updates a GoogleAdsLink on a property */
|
|
1036
|
+
await gapi.client.analyticsadmin.properties.googleAdsLinks.patch({
|
|
1037
|
+
name: "Test string",
|
|
1038
|
+
updateMask: "Test string",
|
|
1039
|
+
}, {
|
|
1040
|
+
adsPersonalizationEnabled: true,
|
|
1041
|
+
canManageClients: true,
|
|
1042
|
+
createTime: "Test string",
|
|
1043
|
+
creatorEmailAddress: "Test string",
|
|
1044
|
+
customerId: "Test string",
|
|
1045
|
+
name: "Test string",
|
|
1046
|
+
updateTime: "Test string",
|
|
1047
|
+
});
|
|
1048
|
+
/**
|
|
1049
|
+
* Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does
|
|
1050
|
+
* not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them
|
|
1051
|
+
* permissions, which is currently only usable/discoverable in the GA or GMP UIs.
|
|
1052
|
+
*/
|
|
1053
|
+
await gapi.client.analyticsadmin.properties.userLinks.audit({
|
|
1054
|
+
parent: "Test string",
|
|
1055
|
+
}, {
|
|
1056
|
+
pageSize: 42,
|
|
1057
|
+
pageToken: "Test string",
|
|
1058
|
+
});
|
|
1059
|
+
/** Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created. */
|
|
1060
|
+
await gapi.client.analyticsadmin.properties.userLinks.batchCreate({
|
|
1061
|
+
parent: "Test string",
|
|
1062
|
+
}, {
|
|
1063
|
+
notifyNewUsers: true,
|
|
1064
|
+
requests: [
|
|
1065
|
+
{
|
|
1066
|
+
notifyNewUser: true,
|
|
1067
|
+
parent: "Test string",
|
|
1068
|
+
userLink: {
|
|
1069
|
+
directRoles: [
|
|
1070
|
+
"Test string"
|
|
1071
|
+
],
|
|
1072
|
+
emailAddress: "Test string",
|
|
1073
|
+
name: "Test string",
|
|
1074
|
+
},
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
});
|
|
1078
|
+
/** Deletes information about multiple users' links to an account or property. */
|
|
1079
|
+
await gapi.client.analyticsadmin.properties.userLinks.batchDelete({
|
|
1080
|
+
parent: "Test string",
|
|
1081
|
+
}, {
|
|
1082
|
+
requests: [
|
|
1083
|
+
{
|
|
1084
|
+
name: "Test string",
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
});
|
|
1088
|
+
/** Gets information about multiple users' links to an account or property. */
|
|
1089
|
+
await gapi.client.analyticsadmin.properties.userLinks.batchGet({
|
|
1090
|
+
names: "Test string",
|
|
1091
|
+
parent: "Test string",
|
|
1092
|
+
});
|
|
1093
|
+
/** Updates information about multiple users' links to an account or property. */
|
|
1094
|
+
await gapi.client.analyticsadmin.properties.userLinks.batchUpdate({
|
|
1095
|
+
parent: "Test string",
|
|
1096
|
+
}, {
|
|
1097
|
+
requests: [
|
|
1098
|
+
{
|
|
1099
|
+
userLink: {
|
|
1100
|
+
directRoles: [
|
|
1101
|
+
"Test string"
|
|
1102
|
+
],
|
|
1103
|
+
emailAddress: "Test string",
|
|
1104
|
+
name: "Test string",
|
|
1105
|
+
},
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
});
|
|
1109
|
+
/**
|
|
1110
|
+
* Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be
|
|
1111
|
+
* unioned with the permissions specified in the new UserLink.
|
|
1112
|
+
*/
|
|
1113
|
+
await gapi.client.analyticsadmin.properties.userLinks.create({
|
|
1114
|
+
notifyNewUser: true,
|
|
1115
|
+
parent: "Test string",
|
|
1116
|
+
}, {
|
|
1117
|
+
directRoles: [
|
|
1118
|
+
"Test string"
|
|
1119
|
+
],
|
|
1120
|
+
emailAddress: "Test string",
|
|
1121
|
+
name: "Test string",
|
|
1122
|
+
});
|
|
1123
|
+
/** Deletes a user link on an account or property. */
|
|
1124
|
+
await gapi.client.analyticsadmin.properties.userLinks.delete({
|
|
1125
|
+
name: "Test string",
|
|
1126
|
+
});
|
|
1127
|
+
/** Gets information about a user's link to an account or property. */
|
|
1128
|
+
await gapi.client.analyticsadmin.properties.userLinks.get({
|
|
1129
|
+
name: "Test string",
|
|
1130
|
+
});
|
|
1131
|
+
/** Lists all user links on an account or property. */
|
|
1132
|
+
await gapi.client.analyticsadmin.properties.userLinks.list({
|
|
1133
|
+
pageSize: 42,
|
|
1134
|
+
pageToken: "Test string",
|
|
1135
|
+
parent: "Test string",
|
|
1136
|
+
});
|
|
1137
|
+
/** Updates a user link on an account or property. */
|
|
1138
|
+
await gapi.client.analyticsadmin.properties.userLinks.patch({
|
|
1139
|
+
name: "Test string",
|
|
1140
|
+
}, {
|
|
1141
|
+
directRoles: [
|
|
1142
|
+
"Test string"
|
|
1143
|
+
],
|
|
1144
|
+
emailAddress: "Test string",
|
|
1145
|
+
name: "Test string",
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
});
|