@maxim_mazurok/gapi.client.tagmanager-v1 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 +2710 -0
- package/package.json +20 -0
- package/readme.md +101 -0
- package/tests.ts +1331 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,1331 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.tagmanager-v1 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://tagmanager.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.tagmanager */
|
|
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
|
+
/** Delete your Google Tag Manager containers */
|
|
19
|
+
'https://www.googleapis.com/auth/tagmanager.delete.containers',
|
|
20
|
+
/** Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing */
|
|
21
|
+
'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
22
|
+
/** Manage your Google Tag Manager container versions */
|
|
23
|
+
'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
24
|
+
/** View and manage your Google Tag Manager accounts */
|
|
25
|
+
'https://www.googleapis.com/auth/tagmanager.manage.accounts',
|
|
26
|
+
/** Manage user permissions of your Google Tag Manager account and container */
|
|
27
|
+
'https://www.googleapis.com/auth/tagmanager.manage.users',
|
|
28
|
+
/** Publish your Google Tag Manager container versions */
|
|
29
|
+
'https://www.googleapis.com/auth/tagmanager.publish',
|
|
30
|
+
/** View your Google Tag Manager container and its subcomponents */
|
|
31
|
+
'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
32
|
+
];
|
|
33
|
+
const immediate = false;
|
|
34
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
35
|
+
if (authResult && !authResult.error) {
|
|
36
|
+
/** handle successful authorization */
|
|
37
|
+
run();
|
|
38
|
+
} else {
|
|
39
|
+
/** handle authorization error */
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
async function run() {
|
|
44
|
+
/** Gets a GTM Account. */
|
|
45
|
+
await gapi.client.tagmanager.accounts.get({
|
|
46
|
+
accountId: "Test string",
|
|
47
|
+
});
|
|
48
|
+
/** Lists all GTM Accounts that a user has access to. */
|
|
49
|
+
await gapi.client.tagmanager.accounts.list({
|
|
50
|
+
});
|
|
51
|
+
/** Updates a GTM Account. */
|
|
52
|
+
await gapi.client.tagmanager.accounts.update({
|
|
53
|
+
accountId: "Test string",
|
|
54
|
+
fingerprint: "Test string",
|
|
55
|
+
}, {
|
|
56
|
+
accountId: "Test string",
|
|
57
|
+
fingerprint: "Test string",
|
|
58
|
+
name: "Test string",
|
|
59
|
+
shareData: true,
|
|
60
|
+
});
|
|
61
|
+
/** Creates a Container. */
|
|
62
|
+
await gapi.client.tagmanager.accounts.containers.create({
|
|
63
|
+
accountId: "Test string",
|
|
64
|
+
}, {
|
|
65
|
+
accountId: "Test string",
|
|
66
|
+
containerId: "Test string",
|
|
67
|
+
domainName: [
|
|
68
|
+
"Test string"
|
|
69
|
+
],
|
|
70
|
+
enabledBuiltInVariable: [
|
|
71
|
+
"Test string"
|
|
72
|
+
],
|
|
73
|
+
fingerprint: "Test string",
|
|
74
|
+
name: "Test string",
|
|
75
|
+
notes: "Test string",
|
|
76
|
+
publicId: "Test string",
|
|
77
|
+
timeZoneCountryId: "Test string",
|
|
78
|
+
timeZoneId: "Test string",
|
|
79
|
+
usageContext: [
|
|
80
|
+
"Test string"
|
|
81
|
+
],
|
|
82
|
+
});
|
|
83
|
+
/** Deletes a Container. */
|
|
84
|
+
await gapi.client.tagmanager.accounts.containers.delete({
|
|
85
|
+
accountId: "Test string",
|
|
86
|
+
containerId: "Test string",
|
|
87
|
+
});
|
|
88
|
+
/** Gets a Container. */
|
|
89
|
+
await gapi.client.tagmanager.accounts.containers.get({
|
|
90
|
+
accountId: "Test string",
|
|
91
|
+
containerId: "Test string",
|
|
92
|
+
});
|
|
93
|
+
/** Lists all Containers that belongs to a GTM Account. */
|
|
94
|
+
await gapi.client.tagmanager.accounts.containers.list({
|
|
95
|
+
accountId: "Test string",
|
|
96
|
+
});
|
|
97
|
+
/** Updates a Container. */
|
|
98
|
+
await gapi.client.tagmanager.accounts.containers.update({
|
|
99
|
+
accountId: "Test string",
|
|
100
|
+
containerId: "Test string",
|
|
101
|
+
fingerprint: "Test string",
|
|
102
|
+
}, {
|
|
103
|
+
accountId: "Test string",
|
|
104
|
+
containerId: "Test string",
|
|
105
|
+
domainName: [
|
|
106
|
+
"Test string"
|
|
107
|
+
],
|
|
108
|
+
enabledBuiltInVariable: [
|
|
109
|
+
"Test string"
|
|
110
|
+
],
|
|
111
|
+
fingerprint: "Test string",
|
|
112
|
+
name: "Test string",
|
|
113
|
+
notes: "Test string",
|
|
114
|
+
publicId: "Test string",
|
|
115
|
+
timeZoneCountryId: "Test string",
|
|
116
|
+
timeZoneId: "Test string",
|
|
117
|
+
usageContext: [
|
|
118
|
+
"Test string"
|
|
119
|
+
],
|
|
120
|
+
});
|
|
121
|
+
/** Creates a GTM Environment. */
|
|
122
|
+
await gapi.client.tagmanager.accounts.containers.environments.create({
|
|
123
|
+
accountId: "Test string",
|
|
124
|
+
containerId: "Test string",
|
|
125
|
+
}, {
|
|
126
|
+
accountId: "Test string",
|
|
127
|
+
authorizationCode: "Test string",
|
|
128
|
+
authorizationTimestampMs: "Test string",
|
|
129
|
+
containerId: "Test string",
|
|
130
|
+
containerVersionId: "Test string",
|
|
131
|
+
description: "Test string",
|
|
132
|
+
enableDebug: true,
|
|
133
|
+
environmentId: "Test string",
|
|
134
|
+
fingerprint: "Test string",
|
|
135
|
+
name: "Test string",
|
|
136
|
+
type: "Test string",
|
|
137
|
+
url: "Test string",
|
|
138
|
+
});
|
|
139
|
+
/** Deletes a GTM Environment. */
|
|
140
|
+
await gapi.client.tagmanager.accounts.containers.environments.delete({
|
|
141
|
+
accountId: "Test string",
|
|
142
|
+
containerId: "Test string",
|
|
143
|
+
environmentId: "Test string",
|
|
144
|
+
});
|
|
145
|
+
/** Gets a GTM Environment. */
|
|
146
|
+
await gapi.client.tagmanager.accounts.containers.environments.get({
|
|
147
|
+
accountId: "Test string",
|
|
148
|
+
containerId: "Test string",
|
|
149
|
+
environmentId: "Test string",
|
|
150
|
+
});
|
|
151
|
+
/** Lists all GTM Environments of a GTM Container. */
|
|
152
|
+
await gapi.client.tagmanager.accounts.containers.environments.list({
|
|
153
|
+
accountId: "Test string",
|
|
154
|
+
containerId: "Test string",
|
|
155
|
+
});
|
|
156
|
+
/** Updates a GTM Environment. */
|
|
157
|
+
await gapi.client.tagmanager.accounts.containers.environments.update({
|
|
158
|
+
accountId: "Test string",
|
|
159
|
+
containerId: "Test string",
|
|
160
|
+
environmentId: "Test string",
|
|
161
|
+
fingerprint: "Test string",
|
|
162
|
+
}, {
|
|
163
|
+
accountId: "Test string",
|
|
164
|
+
authorizationCode: "Test string",
|
|
165
|
+
authorizationTimestampMs: "Test string",
|
|
166
|
+
containerId: "Test string",
|
|
167
|
+
containerVersionId: "Test string",
|
|
168
|
+
description: "Test string",
|
|
169
|
+
enableDebug: true,
|
|
170
|
+
environmentId: "Test string",
|
|
171
|
+
fingerprint: "Test string",
|
|
172
|
+
name: "Test string",
|
|
173
|
+
type: "Test string",
|
|
174
|
+
url: "Test string",
|
|
175
|
+
});
|
|
176
|
+
/** Creates a GTM Folder. */
|
|
177
|
+
await gapi.client.tagmanager.accounts.containers.folders.create({
|
|
178
|
+
accountId: "Test string",
|
|
179
|
+
containerId: "Test string",
|
|
180
|
+
}, {
|
|
181
|
+
accountId: "Test string",
|
|
182
|
+
containerId: "Test string",
|
|
183
|
+
fingerprint: "Test string",
|
|
184
|
+
folderId: "Test string",
|
|
185
|
+
name: "Test string",
|
|
186
|
+
});
|
|
187
|
+
/** Deletes a GTM Folder. */
|
|
188
|
+
await gapi.client.tagmanager.accounts.containers.folders.delete({
|
|
189
|
+
accountId: "Test string",
|
|
190
|
+
containerId: "Test string",
|
|
191
|
+
folderId: "Test string",
|
|
192
|
+
});
|
|
193
|
+
/** Gets a GTM Folder. */
|
|
194
|
+
await gapi.client.tagmanager.accounts.containers.folders.get({
|
|
195
|
+
accountId: "Test string",
|
|
196
|
+
containerId: "Test string",
|
|
197
|
+
folderId: "Test string",
|
|
198
|
+
});
|
|
199
|
+
/** Lists all GTM Folders of a Container. */
|
|
200
|
+
await gapi.client.tagmanager.accounts.containers.folders.list({
|
|
201
|
+
accountId: "Test string",
|
|
202
|
+
containerId: "Test string",
|
|
203
|
+
});
|
|
204
|
+
/** Updates a GTM Folder. */
|
|
205
|
+
await gapi.client.tagmanager.accounts.containers.folders.update({
|
|
206
|
+
accountId: "Test string",
|
|
207
|
+
containerId: "Test string",
|
|
208
|
+
fingerprint: "Test string",
|
|
209
|
+
folderId: "Test string",
|
|
210
|
+
}, {
|
|
211
|
+
accountId: "Test string",
|
|
212
|
+
containerId: "Test string",
|
|
213
|
+
fingerprint: "Test string",
|
|
214
|
+
folderId: "Test string",
|
|
215
|
+
name: "Test string",
|
|
216
|
+
});
|
|
217
|
+
/** List all entities in a GTM Folder. */
|
|
218
|
+
await gapi.client.tagmanager.accounts.containers.folders.entities.list({
|
|
219
|
+
accountId: "Test string",
|
|
220
|
+
containerId: "Test string",
|
|
221
|
+
folderId: "Test string",
|
|
222
|
+
});
|
|
223
|
+
/** Moves entities to a GTM Folder. */
|
|
224
|
+
await gapi.client.tagmanager.accounts.containers.move_folders.update({
|
|
225
|
+
accountId: "Test string",
|
|
226
|
+
containerId: "Test string",
|
|
227
|
+
folderId: "Test string",
|
|
228
|
+
tagId: "Test string",
|
|
229
|
+
triggerId: "Test string",
|
|
230
|
+
variableId: "Test string",
|
|
231
|
+
}, {
|
|
232
|
+
accountId: "Test string",
|
|
233
|
+
containerId: "Test string",
|
|
234
|
+
fingerprint: "Test string",
|
|
235
|
+
folderId: "Test string",
|
|
236
|
+
name: "Test string",
|
|
237
|
+
});
|
|
238
|
+
/** Re-generates the authorization code for a GTM Environment. */
|
|
239
|
+
await gapi.client.tagmanager.accounts.containers.reauthorize_environments.update({
|
|
240
|
+
accountId: "Test string",
|
|
241
|
+
containerId: "Test string",
|
|
242
|
+
environmentId: "Test string",
|
|
243
|
+
}, {
|
|
244
|
+
accountId: "Test string",
|
|
245
|
+
authorizationCode: "Test string",
|
|
246
|
+
authorizationTimestampMs: "Test string",
|
|
247
|
+
containerId: "Test string",
|
|
248
|
+
containerVersionId: "Test string",
|
|
249
|
+
description: "Test string",
|
|
250
|
+
enableDebug: true,
|
|
251
|
+
environmentId: "Test string",
|
|
252
|
+
fingerprint: "Test string",
|
|
253
|
+
name: "Test string",
|
|
254
|
+
type: "Test string",
|
|
255
|
+
url: "Test string",
|
|
256
|
+
});
|
|
257
|
+
/** Creates a GTM Tag. */
|
|
258
|
+
await gapi.client.tagmanager.accounts.containers.tags.create({
|
|
259
|
+
accountId: "Test string",
|
|
260
|
+
containerId: "Test string",
|
|
261
|
+
}, {
|
|
262
|
+
accountId: "Test string",
|
|
263
|
+
blockingRuleId: [
|
|
264
|
+
"Test string"
|
|
265
|
+
],
|
|
266
|
+
blockingTriggerId: [
|
|
267
|
+
"Test string"
|
|
268
|
+
],
|
|
269
|
+
containerId: "Test string",
|
|
270
|
+
fingerprint: "Test string",
|
|
271
|
+
firingRuleId: [
|
|
272
|
+
"Test string"
|
|
273
|
+
],
|
|
274
|
+
firingTriggerId: [
|
|
275
|
+
"Test string"
|
|
276
|
+
],
|
|
277
|
+
liveOnly: true,
|
|
278
|
+
name: "Test string",
|
|
279
|
+
notes: "Test string",
|
|
280
|
+
parameter: [
|
|
281
|
+
{
|
|
282
|
+
key: "Test string",
|
|
283
|
+
list: undefined,
|
|
284
|
+
map: undefined,
|
|
285
|
+
type: "Test string",
|
|
286
|
+
value: "Test string",
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
parentFolderId: "Test string",
|
|
290
|
+
paused: true,
|
|
291
|
+
priority: {
|
|
292
|
+
key: "Test string",
|
|
293
|
+
list: undefined,
|
|
294
|
+
map: undefined,
|
|
295
|
+
type: "Test string",
|
|
296
|
+
value: "Test string",
|
|
297
|
+
},
|
|
298
|
+
scheduleEndMs: "Test string",
|
|
299
|
+
scheduleStartMs: "Test string",
|
|
300
|
+
setupTag: [
|
|
301
|
+
{
|
|
302
|
+
stopOnSetupFailure: true,
|
|
303
|
+
tagName: "Test string",
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
tagFiringOption: "Test string",
|
|
307
|
+
tagId: "Test string",
|
|
308
|
+
teardownTag: [
|
|
309
|
+
{
|
|
310
|
+
stopTeardownOnFailure: true,
|
|
311
|
+
tagName: "Test string",
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
type: "Test string",
|
|
315
|
+
});
|
|
316
|
+
/** Deletes a GTM Tag. */
|
|
317
|
+
await gapi.client.tagmanager.accounts.containers.tags.delete({
|
|
318
|
+
accountId: "Test string",
|
|
319
|
+
containerId: "Test string",
|
|
320
|
+
tagId: "Test string",
|
|
321
|
+
});
|
|
322
|
+
/** Gets a GTM Tag. */
|
|
323
|
+
await gapi.client.tagmanager.accounts.containers.tags.get({
|
|
324
|
+
accountId: "Test string",
|
|
325
|
+
containerId: "Test string",
|
|
326
|
+
tagId: "Test string",
|
|
327
|
+
});
|
|
328
|
+
/** Lists all GTM Tags of a Container. */
|
|
329
|
+
await gapi.client.tagmanager.accounts.containers.tags.list({
|
|
330
|
+
accountId: "Test string",
|
|
331
|
+
containerId: "Test string",
|
|
332
|
+
});
|
|
333
|
+
/** Updates a GTM Tag. */
|
|
334
|
+
await gapi.client.tagmanager.accounts.containers.tags.update({
|
|
335
|
+
accountId: "Test string",
|
|
336
|
+
containerId: "Test string",
|
|
337
|
+
fingerprint: "Test string",
|
|
338
|
+
tagId: "Test string",
|
|
339
|
+
}, {
|
|
340
|
+
accountId: "Test string",
|
|
341
|
+
blockingRuleId: [
|
|
342
|
+
"Test string"
|
|
343
|
+
],
|
|
344
|
+
blockingTriggerId: [
|
|
345
|
+
"Test string"
|
|
346
|
+
],
|
|
347
|
+
containerId: "Test string",
|
|
348
|
+
fingerprint: "Test string",
|
|
349
|
+
firingRuleId: [
|
|
350
|
+
"Test string"
|
|
351
|
+
],
|
|
352
|
+
firingTriggerId: [
|
|
353
|
+
"Test string"
|
|
354
|
+
],
|
|
355
|
+
liveOnly: true,
|
|
356
|
+
name: "Test string",
|
|
357
|
+
notes: "Test string",
|
|
358
|
+
parameter: [
|
|
359
|
+
{
|
|
360
|
+
key: "Test string",
|
|
361
|
+
list: undefined,
|
|
362
|
+
map: undefined,
|
|
363
|
+
type: "Test string",
|
|
364
|
+
value: "Test string",
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
parentFolderId: "Test string",
|
|
368
|
+
paused: true,
|
|
369
|
+
priority: {
|
|
370
|
+
key: "Test string",
|
|
371
|
+
list: undefined,
|
|
372
|
+
map: undefined,
|
|
373
|
+
type: "Test string",
|
|
374
|
+
value: "Test string",
|
|
375
|
+
},
|
|
376
|
+
scheduleEndMs: "Test string",
|
|
377
|
+
scheduleStartMs: "Test string",
|
|
378
|
+
setupTag: [
|
|
379
|
+
{
|
|
380
|
+
stopOnSetupFailure: true,
|
|
381
|
+
tagName: "Test string",
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
tagFiringOption: "Test string",
|
|
385
|
+
tagId: "Test string",
|
|
386
|
+
teardownTag: [
|
|
387
|
+
{
|
|
388
|
+
stopTeardownOnFailure: true,
|
|
389
|
+
tagName: "Test string",
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
type: "Test string",
|
|
393
|
+
});
|
|
394
|
+
/** Creates a GTM Trigger. */
|
|
395
|
+
await gapi.client.tagmanager.accounts.containers.triggers.create({
|
|
396
|
+
accountId: "Test string",
|
|
397
|
+
containerId: "Test string",
|
|
398
|
+
}, {
|
|
399
|
+
accountId: "Test string",
|
|
400
|
+
autoEventFilter: [
|
|
401
|
+
{
|
|
402
|
+
parameter: [
|
|
403
|
+
{
|
|
404
|
+
key: "Test string",
|
|
405
|
+
list: undefined,
|
|
406
|
+
map: undefined,
|
|
407
|
+
type: "Test string",
|
|
408
|
+
value: "Test string",
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
type: "Test string",
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
checkValidation: {
|
|
415
|
+
key: "Test string",
|
|
416
|
+
list: undefined,
|
|
417
|
+
map: undefined,
|
|
418
|
+
type: "Test string",
|
|
419
|
+
value: "Test string",
|
|
420
|
+
},
|
|
421
|
+
containerId: "Test string",
|
|
422
|
+
continuousTimeMinMilliseconds: {
|
|
423
|
+
key: "Test string",
|
|
424
|
+
list: undefined,
|
|
425
|
+
map: undefined,
|
|
426
|
+
type: "Test string",
|
|
427
|
+
value: "Test string",
|
|
428
|
+
},
|
|
429
|
+
customEventFilter: [
|
|
430
|
+
{
|
|
431
|
+
parameter: [
|
|
432
|
+
{
|
|
433
|
+
key: "Test string",
|
|
434
|
+
list: undefined,
|
|
435
|
+
map: undefined,
|
|
436
|
+
type: "Test string",
|
|
437
|
+
value: "Test string",
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
type: "Test string",
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
eventName: {
|
|
444
|
+
key: "Test string",
|
|
445
|
+
list: undefined,
|
|
446
|
+
map: undefined,
|
|
447
|
+
type: "Test string",
|
|
448
|
+
value: "Test string",
|
|
449
|
+
},
|
|
450
|
+
filter: [
|
|
451
|
+
{
|
|
452
|
+
parameter: [
|
|
453
|
+
{
|
|
454
|
+
key: "Test string",
|
|
455
|
+
list: undefined,
|
|
456
|
+
map: undefined,
|
|
457
|
+
type: "Test string",
|
|
458
|
+
value: "Test string",
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
type: "Test string",
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
fingerprint: "Test string",
|
|
465
|
+
horizontalScrollPercentageList: {
|
|
466
|
+
key: "Test string",
|
|
467
|
+
list: undefined,
|
|
468
|
+
map: undefined,
|
|
469
|
+
type: "Test string",
|
|
470
|
+
value: "Test string",
|
|
471
|
+
},
|
|
472
|
+
interval: {
|
|
473
|
+
key: "Test string",
|
|
474
|
+
list: undefined,
|
|
475
|
+
map: undefined,
|
|
476
|
+
type: "Test string",
|
|
477
|
+
value: "Test string",
|
|
478
|
+
},
|
|
479
|
+
intervalSeconds: {
|
|
480
|
+
key: "Test string",
|
|
481
|
+
list: undefined,
|
|
482
|
+
map: undefined,
|
|
483
|
+
type: "Test string",
|
|
484
|
+
value: "Test string",
|
|
485
|
+
},
|
|
486
|
+
limit: {
|
|
487
|
+
key: "Test string",
|
|
488
|
+
list: undefined,
|
|
489
|
+
map: undefined,
|
|
490
|
+
type: "Test string",
|
|
491
|
+
value: "Test string",
|
|
492
|
+
},
|
|
493
|
+
maxTimerLengthSeconds: {
|
|
494
|
+
key: "Test string",
|
|
495
|
+
list: undefined,
|
|
496
|
+
map: undefined,
|
|
497
|
+
type: "Test string",
|
|
498
|
+
value: "Test string",
|
|
499
|
+
},
|
|
500
|
+
name: "Test string",
|
|
501
|
+
parameter: [
|
|
502
|
+
{
|
|
503
|
+
key: "Test string",
|
|
504
|
+
list: undefined,
|
|
505
|
+
map: undefined,
|
|
506
|
+
type: "Test string",
|
|
507
|
+
value: "Test string",
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
parentFolderId: "Test string",
|
|
511
|
+
selector: {
|
|
512
|
+
key: "Test string",
|
|
513
|
+
list: undefined,
|
|
514
|
+
map: undefined,
|
|
515
|
+
type: "Test string",
|
|
516
|
+
value: "Test string",
|
|
517
|
+
},
|
|
518
|
+
totalTimeMinMilliseconds: {
|
|
519
|
+
key: "Test string",
|
|
520
|
+
list: undefined,
|
|
521
|
+
map: undefined,
|
|
522
|
+
type: "Test string",
|
|
523
|
+
value: "Test string",
|
|
524
|
+
},
|
|
525
|
+
triggerId: "Test string",
|
|
526
|
+
type: "Test string",
|
|
527
|
+
uniqueTriggerId: {
|
|
528
|
+
key: "Test string",
|
|
529
|
+
list: undefined,
|
|
530
|
+
map: undefined,
|
|
531
|
+
type: "Test string",
|
|
532
|
+
value: "Test string",
|
|
533
|
+
},
|
|
534
|
+
verticalScrollPercentageList: {
|
|
535
|
+
key: "Test string",
|
|
536
|
+
list: undefined,
|
|
537
|
+
map: undefined,
|
|
538
|
+
type: "Test string",
|
|
539
|
+
value: "Test string",
|
|
540
|
+
},
|
|
541
|
+
visibilitySelector: {
|
|
542
|
+
key: "Test string",
|
|
543
|
+
list: undefined,
|
|
544
|
+
map: undefined,
|
|
545
|
+
type: "Test string",
|
|
546
|
+
value: "Test string",
|
|
547
|
+
},
|
|
548
|
+
visiblePercentageMax: {
|
|
549
|
+
key: "Test string",
|
|
550
|
+
list: undefined,
|
|
551
|
+
map: undefined,
|
|
552
|
+
type: "Test string",
|
|
553
|
+
value: "Test string",
|
|
554
|
+
},
|
|
555
|
+
visiblePercentageMin: {
|
|
556
|
+
key: "Test string",
|
|
557
|
+
list: undefined,
|
|
558
|
+
map: undefined,
|
|
559
|
+
type: "Test string",
|
|
560
|
+
value: "Test string",
|
|
561
|
+
},
|
|
562
|
+
waitForTags: {
|
|
563
|
+
key: "Test string",
|
|
564
|
+
list: undefined,
|
|
565
|
+
map: undefined,
|
|
566
|
+
type: "Test string",
|
|
567
|
+
value: "Test string",
|
|
568
|
+
},
|
|
569
|
+
waitForTagsTimeout: {
|
|
570
|
+
key: "Test string",
|
|
571
|
+
list: undefined,
|
|
572
|
+
map: undefined,
|
|
573
|
+
type: "Test string",
|
|
574
|
+
value: "Test string",
|
|
575
|
+
},
|
|
576
|
+
});
|
|
577
|
+
/** Deletes a GTM Trigger. */
|
|
578
|
+
await gapi.client.tagmanager.accounts.containers.triggers.delete({
|
|
579
|
+
accountId: "Test string",
|
|
580
|
+
containerId: "Test string",
|
|
581
|
+
triggerId: "Test string",
|
|
582
|
+
});
|
|
583
|
+
/** Gets a GTM Trigger. */
|
|
584
|
+
await gapi.client.tagmanager.accounts.containers.triggers.get({
|
|
585
|
+
accountId: "Test string",
|
|
586
|
+
containerId: "Test string",
|
|
587
|
+
triggerId: "Test string",
|
|
588
|
+
});
|
|
589
|
+
/** Lists all GTM Triggers of a Container. */
|
|
590
|
+
await gapi.client.tagmanager.accounts.containers.triggers.list({
|
|
591
|
+
accountId: "Test string",
|
|
592
|
+
containerId: "Test string",
|
|
593
|
+
});
|
|
594
|
+
/** Updates a GTM Trigger. */
|
|
595
|
+
await gapi.client.tagmanager.accounts.containers.triggers.update({
|
|
596
|
+
accountId: "Test string",
|
|
597
|
+
containerId: "Test string",
|
|
598
|
+
fingerprint: "Test string",
|
|
599
|
+
triggerId: "Test string",
|
|
600
|
+
}, {
|
|
601
|
+
accountId: "Test string",
|
|
602
|
+
autoEventFilter: [
|
|
603
|
+
{
|
|
604
|
+
parameter: [
|
|
605
|
+
{
|
|
606
|
+
key: "Test string",
|
|
607
|
+
list: undefined,
|
|
608
|
+
map: undefined,
|
|
609
|
+
type: "Test string",
|
|
610
|
+
value: "Test string",
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
type: "Test string",
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
checkValidation: {
|
|
617
|
+
key: "Test string",
|
|
618
|
+
list: undefined,
|
|
619
|
+
map: undefined,
|
|
620
|
+
type: "Test string",
|
|
621
|
+
value: "Test string",
|
|
622
|
+
},
|
|
623
|
+
containerId: "Test string",
|
|
624
|
+
continuousTimeMinMilliseconds: {
|
|
625
|
+
key: "Test string",
|
|
626
|
+
list: undefined,
|
|
627
|
+
map: undefined,
|
|
628
|
+
type: "Test string",
|
|
629
|
+
value: "Test string",
|
|
630
|
+
},
|
|
631
|
+
customEventFilter: [
|
|
632
|
+
{
|
|
633
|
+
parameter: [
|
|
634
|
+
{
|
|
635
|
+
key: "Test string",
|
|
636
|
+
list: undefined,
|
|
637
|
+
map: undefined,
|
|
638
|
+
type: "Test string",
|
|
639
|
+
value: "Test string",
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
type: "Test string",
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
eventName: {
|
|
646
|
+
key: "Test string",
|
|
647
|
+
list: undefined,
|
|
648
|
+
map: undefined,
|
|
649
|
+
type: "Test string",
|
|
650
|
+
value: "Test string",
|
|
651
|
+
},
|
|
652
|
+
filter: [
|
|
653
|
+
{
|
|
654
|
+
parameter: [
|
|
655
|
+
{
|
|
656
|
+
key: "Test string",
|
|
657
|
+
list: undefined,
|
|
658
|
+
map: undefined,
|
|
659
|
+
type: "Test string",
|
|
660
|
+
value: "Test string",
|
|
661
|
+
}
|
|
662
|
+
],
|
|
663
|
+
type: "Test string",
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
fingerprint: "Test string",
|
|
667
|
+
horizontalScrollPercentageList: {
|
|
668
|
+
key: "Test string",
|
|
669
|
+
list: undefined,
|
|
670
|
+
map: undefined,
|
|
671
|
+
type: "Test string",
|
|
672
|
+
value: "Test string",
|
|
673
|
+
},
|
|
674
|
+
interval: {
|
|
675
|
+
key: "Test string",
|
|
676
|
+
list: undefined,
|
|
677
|
+
map: undefined,
|
|
678
|
+
type: "Test string",
|
|
679
|
+
value: "Test string",
|
|
680
|
+
},
|
|
681
|
+
intervalSeconds: {
|
|
682
|
+
key: "Test string",
|
|
683
|
+
list: undefined,
|
|
684
|
+
map: undefined,
|
|
685
|
+
type: "Test string",
|
|
686
|
+
value: "Test string",
|
|
687
|
+
},
|
|
688
|
+
limit: {
|
|
689
|
+
key: "Test string",
|
|
690
|
+
list: undefined,
|
|
691
|
+
map: undefined,
|
|
692
|
+
type: "Test string",
|
|
693
|
+
value: "Test string",
|
|
694
|
+
},
|
|
695
|
+
maxTimerLengthSeconds: {
|
|
696
|
+
key: "Test string",
|
|
697
|
+
list: undefined,
|
|
698
|
+
map: undefined,
|
|
699
|
+
type: "Test string",
|
|
700
|
+
value: "Test string",
|
|
701
|
+
},
|
|
702
|
+
name: "Test string",
|
|
703
|
+
parameter: [
|
|
704
|
+
{
|
|
705
|
+
key: "Test string",
|
|
706
|
+
list: undefined,
|
|
707
|
+
map: undefined,
|
|
708
|
+
type: "Test string",
|
|
709
|
+
value: "Test string",
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
parentFolderId: "Test string",
|
|
713
|
+
selector: {
|
|
714
|
+
key: "Test string",
|
|
715
|
+
list: undefined,
|
|
716
|
+
map: undefined,
|
|
717
|
+
type: "Test string",
|
|
718
|
+
value: "Test string",
|
|
719
|
+
},
|
|
720
|
+
totalTimeMinMilliseconds: {
|
|
721
|
+
key: "Test string",
|
|
722
|
+
list: undefined,
|
|
723
|
+
map: undefined,
|
|
724
|
+
type: "Test string",
|
|
725
|
+
value: "Test string",
|
|
726
|
+
},
|
|
727
|
+
triggerId: "Test string",
|
|
728
|
+
type: "Test string",
|
|
729
|
+
uniqueTriggerId: {
|
|
730
|
+
key: "Test string",
|
|
731
|
+
list: undefined,
|
|
732
|
+
map: undefined,
|
|
733
|
+
type: "Test string",
|
|
734
|
+
value: "Test string",
|
|
735
|
+
},
|
|
736
|
+
verticalScrollPercentageList: {
|
|
737
|
+
key: "Test string",
|
|
738
|
+
list: undefined,
|
|
739
|
+
map: undefined,
|
|
740
|
+
type: "Test string",
|
|
741
|
+
value: "Test string",
|
|
742
|
+
},
|
|
743
|
+
visibilitySelector: {
|
|
744
|
+
key: "Test string",
|
|
745
|
+
list: undefined,
|
|
746
|
+
map: undefined,
|
|
747
|
+
type: "Test string",
|
|
748
|
+
value: "Test string",
|
|
749
|
+
},
|
|
750
|
+
visiblePercentageMax: {
|
|
751
|
+
key: "Test string",
|
|
752
|
+
list: undefined,
|
|
753
|
+
map: undefined,
|
|
754
|
+
type: "Test string",
|
|
755
|
+
value: "Test string",
|
|
756
|
+
},
|
|
757
|
+
visiblePercentageMin: {
|
|
758
|
+
key: "Test string",
|
|
759
|
+
list: undefined,
|
|
760
|
+
map: undefined,
|
|
761
|
+
type: "Test string",
|
|
762
|
+
value: "Test string",
|
|
763
|
+
},
|
|
764
|
+
waitForTags: {
|
|
765
|
+
key: "Test string",
|
|
766
|
+
list: undefined,
|
|
767
|
+
map: undefined,
|
|
768
|
+
type: "Test string",
|
|
769
|
+
value: "Test string",
|
|
770
|
+
},
|
|
771
|
+
waitForTagsTimeout: {
|
|
772
|
+
key: "Test string",
|
|
773
|
+
list: undefined,
|
|
774
|
+
map: undefined,
|
|
775
|
+
type: "Test string",
|
|
776
|
+
value: "Test string",
|
|
777
|
+
},
|
|
778
|
+
});
|
|
779
|
+
/** Creates a GTM Variable. */
|
|
780
|
+
await gapi.client.tagmanager.accounts.containers.variables.create({
|
|
781
|
+
accountId: "Test string",
|
|
782
|
+
containerId: "Test string",
|
|
783
|
+
}, {
|
|
784
|
+
accountId: "Test string",
|
|
785
|
+
containerId: "Test string",
|
|
786
|
+
disablingTriggerId: [
|
|
787
|
+
"Test string"
|
|
788
|
+
],
|
|
789
|
+
enablingTriggerId: [
|
|
790
|
+
"Test string"
|
|
791
|
+
],
|
|
792
|
+
fingerprint: "Test string",
|
|
793
|
+
name: "Test string",
|
|
794
|
+
notes: "Test string",
|
|
795
|
+
parameter: [
|
|
796
|
+
{
|
|
797
|
+
key: "Test string",
|
|
798
|
+
list: undefined,
|
|
799
|
+
map: undefined,
|
|
800
|
+
type: "Test string",
|
|
801
|
+
value: "Test string",
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
parentFolderId: "Test string",
|
|
805
|
+
scheduleEndMs: "Test string",
|
|
806
|
+
scheduleStartMs: "Test string",
|
|
807
|
+
type: "Test string",
|
|
808
|
+
variableId: "Test string",
|
|
809
|
+
});
|
|
810
|
+
/** Deletes a GTM Variable. */
|
|
811
|
+
await gapi.client.tagmanager.accounts.containers.variables.delete({
|
|
812
|
+
accountId: "Test string",
|
|
813
|
+
containerId: "Test string",
|
|
814
|
+
variableId: "Test string",
|
|
815
|
+
});
|
|
816
|
+
/** Gets a GTM Variable. */
|
|
817
|
+
await gapi.client.tagmanager.accounts.containers.variables.get({
|
|
818
|
+
accountId: "Test string",
|
|
819
|
+
containerId: "Test string",
|
|
820
|
+
variableId: "Test string",
|
|
821
|
+
});
|
|
822
|
+
/** Lists all GTM Variables of a Container. */
|
|
823
|
+
await gapi.client.tagmanager.accounts.containers.variables.list({
|
|
824
|
+
accountId: "Test string",
|
|
825
|
+
containerId: "Test string",
|
|
826
|
+
});
|
|
827
|
+
/** Updates a GTM Variable. */
|
|
828
|
+
await gapi.client.tagmanager.accounts.containers.variables.update({
|
|
829
|
+
accountId: "Test string",
|
|
830
|
+
containerId: "Test string",
|
|
831
|
+
fingerprint: "Test string",
|
|
832
|
+
variableId: "Test string",
|
|
833
|
+
}, {
|
|
834
|
+
accountId: "Test string",
|
|
835
|
+
containerId: "Test string",
|
|
836
|
+
disablingTriggerId: [
|
|
837
|
+
"Test string"
|
|
838
|
+
],
|
|
839
|
+
enablingTriggerId: [
|
|
840
|
+
"Test string"
|
|
841
|
+
],
|
|
842
|
+
fingerprint: "Test string",
|
|
843
|
+
name: "Test string",
|
|
844
|
+
notes: "Test string",
|
|
845
|
+
parameter: [
|
|
846
|
+
{
|
|
847
|
+
key: "Test string",
|
|
848
|
+
list: undefined,
|
|
849
|
+
map: undefined,
|
|
850
|
+
type: "Test string",
|
|
851
|
+
value: "Test string",
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
parentFolderId: "Test string",
|
|
855
|
+
scheduleEndMs: "Test string",
|
|
856
|
+
scheduleStartMs: "Test string",
|
|
857
|
+
type: "Test string",
|
|
858
|
+
variableId: "Test string",
|
|
859
|
+
});
|
|
860
|
+
/** Creates a Container Version. */
|
|
861
|
+
await gapi.client.tagmanager.accounts.containers.versions.create({
|
|
862
|
+
accountId: "Test string",
|
|
863
|
+
containerId: "Test string",
|
|
864
|
+
}, {
|
|
865
|
+
name: "Test string",
|
|
866
|
+
notes: "Test string",
|
|
867
|
+
quickPreview: true,
|
|
868
|
+
});
|
|
869
|
+
/** Deletes a Container Version. */
|
|
870
|
+
await gapi.client.tagmanager.accounts.containers.versions.delete({
|
|
871
|
+
accountId: "Test string",
|
|
872
|
+
containerId: "Test string",
|
|
873
|
+
containerVersionId: "Test string",
|
|
874
|
+
});
|
|
875
|
+
/** Gets a Container Version. */
|
|
876
|
+
await gapi.client.tagmanager.accounts.containers.versions.get({
|
|
877
|
+
accountId: "Test string",
|
|
878
|
+
containerId: "Test string",
|
|
879
|
+
containerVersionId: "Test string",
|
|
880
|
+
});
|
|
881
|
+
/** Lists all Container Versions of a GTM Container. */
|
|
882
|
+
await gapi.client.tagmanager.accounts.containers.versions.list({
|
|
883
|
+
accountId: "Test string",
|
|
884
|
+
containerId: "Test string",
|
|
885
|
+
headers: true,
|
|
886
|
+
includeDeleted: true,
|
|
887
|
+
});
|
|
888
|
+
/** Publishes a Container Version. */
|
|
889
|
+
await gapi.client.tagmanager.accounts.containers.versions.publish({
|
|
890
|
+
accountId: "Test string",
|
|
891
|
+
containerId: "Test string",
|
|
892
|
+
containerVersionId: "Test string",
|
|
893
|
+
fingerprint: "Test string",
|
|
894
|
+
});
|
|
895
|
+
/**
|
|
896
|
+
* Restores a Container Version. This will overwrite the container's current configuration (including its variables, triggers and tags). The operation will not have any effect on the
|
|
897
|
+
* version that is being served (i.e. the published version).
|
|
898
|
+
*/
|
|
899
|
+
await gapi.client.tagmanager.accounts.containers.versions.restore({
|
|
900
|
+
accountId: "Test string",
|
|
901
|
+
containerId: "Test string",
|
|
902
|
+
containerVersionId: "Test string",
|
|
903
|
+
});
|
|
904
|
+
/** Undeletes a Container Version. */
|
|
905
|
+
await gapi.client.tagmanager.accounts.containers.versions.undelete({
|
|
906
|
+
accountId: "Test string",
|
|
907
|
+
containerId: "Test string",
|
|
908
|
+
containerVersionId: "Test string",
|
|
909
|
+
});
|
|
910
|
+
/** Updates a Container Version. */
|
|
911
|
+
await gapi.client.tagmanager.accounts.containers.versions.update({
|
|
912
|
+
accountId: "Test string",
|
|
913
|
+
containerId: "Test string",
|
|
914
|
+
containerVersionId: "Test string",
|
|
915
|
+
fingerprint: "Test string",
|
|
916
|
+
}, {
|
|
917
|
+
accountId: "Test string",
|
|
918
|
+
container: {
|
|
919
|
+
accountId: "Test string",
|
|
920
|
+
containerId: "Test string",
|
|
921
|
+
domainName: [
|
|
922
|
+
"Test string"
|
|
923
|
+
],
|
|
924
|
+
enabledBuiltInVariable: [
|
|
925
|
+
"Test string"
|
|
926
|
+
],
|
|
927
|
+
fingerprint: "Test string",
|
|
928
|
+
name: "Test string",
|
|
929
|
+
notes: "Test string",
|
|
930
|
+
publicId: "Test string",
|
|
931
|
+
timeZoneCountryId: "Test string",
|
|
932
|
+
timeZoneId: "Test string",
|
|
933
|
+
usageContext: [
|
|
934
|
+
"Test string"
|
|
935
|
+
],
|
|
936
|
+
},
|
|
937
|
+
containerId: "Test string",
|
|
938
|
+
containerVersionId: "Test string",
|
|
939
|
+
deleted: true,
|
|
940
|
+
fingerprint: "Test string",
|
|
941
|
+
folder: [
|
|
942
|
+
{
|
|
943
|
+
accountId: "Test string",
|
|
944
|
+
containerId: "Test string",
|
|
945
|
+
fingerprint: "Test string",
|
|
946
|
+
folderId: "Test string",
|
|
947
|
+
name: "Test string",
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
macro: [
|
|
951
|
+
{
|
|
952
|
+
accountId: "Test string",
|
|
953
|
+
containerId: "Test string",
|
|
954
|
+
disablingRuleId: [
|
|
955
|
+
"Test string"
|
|
956
|
+
],
|
|
957
|
+
enablingRuleId: [
|
|
958
|
+
"Test string"
|
|
959
|
+
],
|
|
960
|
+
fingerprint: "Test string",
|
|
961
|
+
macroId: "Test string",
|
|
962
|
+
name: "Test string",
|
|
963
|
+
notes: "Test string",
|
|
964
|
+
parameter: [
|
|
965
|
+
{
|
|
966
|
+
key: "Test string",
|
|
967
|
+
list: undefined,
|
|
968
|
+
map: undefined,
|
|
969
|
+
type: "Test string",
|
|
970
|
+
value: "Test string",
|
|
971
|
+
}
|
|
972
|
+
],
|
|
973
|
+
parentFolderId: "Test string",
|
|
974
|
+
scheduleEndMs: "Test string",
|
|
975
|
+
scheduleStartMs: "Test string",
|
|
976
|
+
type: "Test string",
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
name: "Test string",
|
|
980
|
+
notes: "Test string",
|
|
981
|
+
rule: [
|
|
982
|
+
{
|
|
983
|
+
accountId: "Test string",
|
|
984
|
+
condition: [
|
|
985
|
+
{
|
|
986
|
+
parameter: [
|
|
987
|
+
{
|
|
988
|
+
key: "Test string",
|
|
989
|
+
list: undefined,
|
|
990
|
+
map: undefined,
|
|
991
|
+
type: "Test string",
|
|
992
|
+
value: "Test string",
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
type: "Test string",
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
containerId: "Test string",
|
|
999
|
+
fingerprint: "Test string",
|
|
1000
|
+
name: "Test string",
|
|
1001
|
+
notes: "Test string",
|
|
1002
|
+
ruleId: "Test string",
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
tag: [
|
|
1006
|
+
{
|
|
1007
|
+
accountId: "Test string",
|
|
1008
|
+
blockingRuleId: [
|
|
1009
|
+
"Test string"
|
|
1010
|
+
],
|
|
1011
|
+
blockingTriggerId: [
|
|
1012
|
+
"Test string"
|
|
1013
|
+
],
|
|
1014
|
+
containerId: "Test string",
|
|
1015
|
+
fingerprint: "Test string",
|
|
1016
|
+
firingRuleId: [
|
|
1017
|
+
"Test string"
|
|
1018
|
+
],
|
|
1019
|
+
firingTriggerId: [
|
|
1020
|
+
"Test string"
|
|
1021
|
+
],
|
|
1022
|
+
liveOnly: true,
|
|
1023
|
+
name: "Test string",
|
|
1024
|
+
notes: "Test string",
|
|
1025
|
+
parameter: [
|
|
1026
|
+
{
|
|
1027
|
+
key: "Test string",
|
|
1028
|
+
list: undefined,
|
|
1029
|
+
map: undefined,
|
|
1030
|
+
type: "Test string",
|
|
1031
|
+
value: "Test string",
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
parentFolderId: "Test string",
|
|
1035
|
+
paused: true,
|
|
1036
|
+
priority: {
|
|
1037
|
+
key: "Test string",
|
|
1038
|
+
list: undefined,
|
|
1039
|
+
map: undefined,
|
|
1040
|
+
type: "Test string",
|
|
1041
|
+
value: "Test string",
|
|
1042
|
+
},
|
|
1043
|
+
scheduleEndMs: "Test string",
|
|
1044
|
+
scheduleStartMs: "Test string",
|
|
1045
|
+
setupTag: [
|
|
1046
|
+
{
|
|
1047
|
+
stopOnSetupFailure: true,
|
|
1048
|
+
tagName: "Test string",
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
tagFiringOption: "Test string",
|
|
1052
|
+
tagId: "Test string",
|
|
1053
|
+
teardownTag: [
|
|
1054
|
+
{
|
|
1055
|
+
stopTeardownOnFailure: true,
|
|
1056
|
+
tagName: "Test string",
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
type: "Test string",
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
trigger: [
|
|
1063
|
+
{
|
|
1064
|
+
accountId: "Test string",
|
|
1065
|
+
autoEventFilter: [
|
|
1066
|
+
{
|
|
1067
|
+
parameter: [
|
|
1068
|
+
{
|
|
1069
|
+
key: "Test string",
|
|
1070
|
+
list: undefined,
|
|
1071
|
+
map: undefined,
|
|
1072
|
+
type: "Test string",
|
|
1073
|
+
value: "Test string",
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
type: "Test string",
|
|
1077
|
+
}
|
|
1078
|
+
],
|
|
1079
|
+
checkValidation: {
|
|
1080
|
+
key: "Test string",
|
|
1081
|
+
list: undefined,
|
|
1082
|
+
map: undefined,
|
|
1083
|
+
type: "Test string",
|
|
1084
|
+
value: "Test string",
|
|
1085
|
+
},
|
|
1086
|
+
containerId: "Test string",
|
|
1087
|
+
continuousTimeMinMilliseconds: {
|
|
1088
|
+
key: "Test string",
|
|
1089
|
+
list: undefined,
|
|
1090
|
+
map: undefined,
|
|
1091
|
+
type: "Test string",
|
|
1092
|
+
value: "Test string",
|
|
1093
|
+
},
|
|
1094
|
+
customEventFilter: [
|
|
1095
|
+
{
|
|
1096
|
+
parameter: [
|
|
1097
|
+
{
|
|
1098
|
+
key: "Test string",
|
|
1099
|
+
list: undefined,
|
|
1100
|
+
map: undefined,
|
|
1101
|
+
type: "Test string",
|
|
1102
|
+
value: "Test string",
|
|
1103
|
+
}
|
|
1104
|
+
],
|
|
1105
|
+
type: "Test string",
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
eventName: {
|
|
1109
|
+
key: "Test string",
|
|
1110
|
+
list: undefined,
|
|
1111
|
+
map: undefined,
|
|
1112
|
+
type: "Test string",
|
|
1113
|
+
value: "Test string",
|
|
1114
|
+
},
|
|
1115
|
+
filter: [
|
|
1116
|
+
{
|
|
1117
|
+
parameter: [
|
|
1118
|
+
{
|
|
1119
|
+
key: "Test string",
|
|
1120
|
+
list: undefined,
|
|
1121
|
+
map: undefined,
|
|
1122
|
+
type: "Test string",
|
|
1123
|
+
value: "Test string",
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
type: "Test string",
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
fingerprint: "Test string",
|
|
1130
|
+
horizontalScrollPercentageList: {
|
|
1131
|
+
key: "Test string",
|
|
1132
|
+
list: undefined,
|
|
1133
|
+
map: undefined,
|
|
1134
|
+
type: "Test string",
|
|
1135
|
+
value: "Test string",
|
|
1136
|
+
},
|
|
1137
|
+
interval: {
|
|
1138
|
+
key: "Test string",
|
|
1139
|
+
list: undefined,
|
|
1140
|
+
map: undefined,
|
|
1141
|
+
type: "Test string",
|
|
1142
|
+
value: "Test string",
|
|
1143
|
+
},
|
|
1144
|
+
intervalSeconds: {
|
|
1145
|
+
key: "Test string",
|
|
1146
|
+
list: undefined,
|
|
1147
|
+
map: undefined,
|
|
1148
|
+
type: "Test string",
|
|
1149
|
+
value: "Test string",
|
|
1150
|
+
},
|
|
1151
|
+
limit: {
|
|
1152
|
+
key: "Test string",
|
|
1153
|
+
list: undefined,
|
|
1154
|
+
map: undefined,
|
|
1155
|
+
type: "Test string",
|
|
1156
|
+
value: "Test string",
|
|
1157
|
+
},
|
|
1158
|
+
maxTimerLengthSeconds: {
|
|
1159
|
+
key: "Test string",
|
|
1160
|
+
list: undefined,
|
|
1161
|
+
map: undefined,
|
|
1162
|
+
type: "Test string",
|
|
1163
|
+
value: "Test string",
|
|
1164
|
+
},
|
|
1165
|
+
name: "Test string",
|
|
1166
|
+
parameter: [
|
|
1167
|
+
{
|
|
1168
|
+
key: "Test string",
|
|
1169
|
+
list: undefined,
|
|
1170
|
+
map: undefined,
|
|
1171
|
+
type: "Test string",
|
|
1172
|
+
value: "Test string",
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
parentFolderId: "Test string",
|
|
1176
|
+
selector: {
|
|
1177
|
+
key: "Test string",
|
|
1178
|
+
list: undefined,
|
|
1179
|
+
map: undefined,
|
|
1180
|
+
type: "Test string",
|
|
1181
|
+
value: "Test string",
|
|
1182
|
+
},
|
|
1183
|
+
totalTimeMinMilliseconds: {
|
|
1184
|
+
key: "Test string",
|
|
1185
|
+
list: undefined,
|
|
1186
|
+
map: undefined,
|
|
1187
|
+
type: "Test string",
|
|
1188
|
+
value: "Test string",
|
|
1189
|
+
},
|
|
1190
|
+
triggerId: "Test string",
|
|
1191
|
+
type: "Test string",
|
|
1192
|
+
uniqueTriggerId: {
|
|
1193
|
+
key: "Test string",
|
|
1194
|
+
list: undefined,
|
|
1195
|
+
map: undefined,
|
|
1196
|
+
type: "Test string",
|
|
1197
|
+
value: "Test string",
|
|
1198
|
+
},
|
|
1199
|
+
verticalScrollPercentageList: {
|
|
1200
|
+
key: "Test string",
|
|
1201
|
+
list: undefined,
|
|
1202
|
+
map: undefined,
|
|
1203
|
+
type: "Test string",
|
|
1204
|
+
value: "Test string",
|
|
1205
|
+
},
|
|
1206
|
+
visibilitySelector: {
|
|
1207
|
+
key: "Test string",
|
|
1208
|
+
list: undefined,
|
|
1209
|
+
map: undefined,
|
|
1210
|
+
type: "Test string",
|
|
1211
|
+
value: "Test string",
|
|
1212
|
+
},
|
|
1213
|
+
visiblePercentageMax: {
|
|
1214
|
+
key: "Test string",
|
|
1215
|
+
list: undefined,
|
|
1216
|
+
map: undefined,
|
|
1217
|
+
type: "Test string",
|
|
1218
|
+
value: "Test string",
|
|
1219
|
+
},
|
|
1220
|
+
visiblePercentageMin: {
|
|
1221
|
+
key: "Test string",
|
|
1222
|
+
list: undefined,
|
|
1223
|
+
map: undefined,
|
|
1224
|
+
type: "Test string",
|
|
1225
|
+
value: "Test string",
|
|
1226
|
+
},
|
|
1227
|
+
waitForTags: {
|
|
1228
|
+
key: "Test string",
|
|
1229
|
+
list: undefined,
|
|
1230
|
+
map: undefined,
|
|
1231
|
+
type: "Test string",
|
|
1232
|
+
value: "Test string",
|
|
1233
|
+
},
|
|
1234
|
+
waitForTagsTimeout: {
|
|
1235
|
+
key: "Test string",
|
|
1236
|
+
list: undefined,
|
|
1237
|
+
map: undefined,
|
|
1238
|
+
type: "Test string",
|
|
1239
|
+
value: "Test string",
|
|
1240
|
+
},
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
variable: [
|
|
1244
|
+
{
|
|
1245
|
+
accountId: "Test string",
|
|
1246
|
+
containerId: "Test string",
|
|
1247
|
+
disablingTriggerId: [
|
|
1248
|
+
"Test string"
|
|
1249
|
+
],
|
|
1250
|
+
enablingTriggerId: [
|
|
1251
|
+
"Test string"
|
|
1252
|
+
],
|
|
1253
|
+
fingerprint: "Test string",
|
|
1254
|
+
name: "Test string",
|
|
1255
|
+
notes: "Test string",
|
|
1256
|
+
parameter: [
|
|
1257
|
+
{
|
|
1258
|
+
key: "Test string",
|
|
1259
|
+
list: undefined,
|
|
1260
|
+
map: undefined,
|
|
1261
|
+
type: "Test string",
|
|
1262
|
+
value: "Test string",
|
|
1263
|
+
}
|
|
1264
|
+
],
|
|
1265
|
+
parentFolderId: "Test string",
|
|
1266
|
+
scheduleEndMs: "Test string",
|
|
1267
|
+
scheduleStartMs: "Test string",
|
|
1268
|
+
type: "Test string",
|
|
1269
|
+
variableId: "Test string",
|
|
1270
|
+
}
|
|
1271
|
+
],
|
|
1272
|
+
});
|
|
1273
|
+
/** Creates a user's Account & Container Permissions. */
|
|
1274
|
+
await gapi.client.tagmanager.accounts.permissions.create({
|
|
1275
|
+
accountId: "Test string",
|
|
1276
|
+
}, {
|
|
1277
|
+
accountAccess: {
|
|
1278
|
+
permission: [
|
|
1279
|
+
"Test string"
|
|
1280
|
+
],
|
|
1281
|
+
},
|
|
1282
|
+
accountId: "Test string",
|
|
1283
|
+
containerAccess: [
|
|
1284
|
+
{
|
|
1285
|
+
containerId: "Test string",
|
|
1286
|
+
permission: [
|
|
1287
|
+
"Test string"
|
|
1288
|
+
],
|
|
1289
|
+
}
|
|
1290
|
+
],
|
|
1291
|
+
emailAddress: "Test string",
|
|
1292
|
+
permissionId: "Test string",
|
|
1293
|
+
});
|
|
1294
|
+
/** Removes a user from the account, revoking access to it and all of its containers. */
|
|
1295
|
+
await gapi.client.tagmanager.accounts.permissions.delete({
|
|
1296
|
+
accountId: "Test string",
|
|
1297
|
+
permissionId: "Test string",
|
|
1298
|
+
});
|
|
1299
|
+
/** Gets a user's Account & Container Permissions. */
|
|
1300
|
+
await gapi.client.tagmanager.accounts.permissions.get({
|
|
1301
|
+
accountId: "Test string",
|
|
1302
|
+
permissionId: "Test string",
|
|
1303
|
+
});
|
|
1304
|
+
/** List all users that have access to the account along with Account and Container Permissions granted to each of them. */
|
|
1305
|
+
await gapi.client.tagmanager.accounts.permissions.list({
|
|
1306
|
+
accountId: "Test string",
|
|
1307
|
+
});
|
|
1308
|
+
/** Updates a user's Account & Container Permissions. */
|
|
1309
|
+
await gapi.client.tagmanager.accounts.permissions.update({
|
|
1310
|
+
accountId: "Test string",
|
|
1311
|
+
permissionId: "Test string",
|
|
1312
|
+
}, {
|
|
1313
|
+
accountAccess: {
|
|
1314
|
+
permission: [
|
|
1315
|
+
"Test string"
|
|
1316
|
+
],
|
|
1317
|
+
},
|
|
1318
|
+
accountId: "Test string",
|
|
1319
|
+
containerAccess: [
|
|
1320
|
+
{
|
|
1321
|
+
containerId: "Test string",
|
|
1322
|
+
permission: [
|
|
1323
|
+
"Test string"
|
|
1324
|
+
],
|
|
1325
|
+
}
|
|
1326
|
+
],
|
|
1327
|
+
emailAddress: "Test string",
|
|
1328
|
+
permissionId: "Test string",
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
});
|