@googleapis/tagmanager 3.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.d.ts CHANGED
@@ -932,55 +932,6 @@ export declare namespace tagmanager_v1 {
932
932
  constructor(context: APIRequestContext);
933
933
  /**
934
934
  * Gets a GTM Account.
935
- * @example
936
- * ```js
937
- * // Before running the sample:
938
- * // - Enable the API at:
939
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
940
- * // - Login into gcloud by running:
941
- * // `$ gcloud auth application-default login`
942
- * // - Install the npm module by running:
943
- * // `$ npm install googleapis`
944
- *
945
- * const {google} = require('googleapis');
946
- * const tagmanager = google.tagmanager('v1');
947
- *
948
- * async function main() {
949
- * const auth = new google.auth.GoogleAuth({
950
- * // Scopes can be specified either as an array or as a single, space-delimited string.
951
- * scopes: [
952
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
953
- * 'https://www.googleapis.com/auth/tagmanager.manage.accounts',
954
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
955
- * ],
956
- * });
957
- *
958
- * // Acquire an auth client, and bind it to all future calls
959
- * const authClient = await auth.getClient();
960
- * google.options({auth: authClient});
961
- *
962
- * // Do the magic
963
- * const res = await tagmanager.accounts.get({
964
- * // The GTM Account ID.
965
- * accountId: 'placeholder-value',
966
- * });
967
- * console.log(res.data);
968
- *
969
- * // Example response
970
- * // {
971
- * // "accountId": "my_accountId",
972
- * // "fingerprint": "my_fingerprint",
973
- * // "name": "my_name",
974
- * // "shareData": false
975
- * // }
976
- * }
977
- *
978
- * main().catch(e => {
979
- * console.error(e);
980
- * throw e;
981
- * });
982
- *
983
- * ```
984
935
  *
985
936
  * @param params - Parameters for request
986
937
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -995,49 +946,6 @@ export declare namespace tagmanager_v1 {
995
946
  get(callback: BodyResponseCallback<Schema$Account>): void;
996
947
  /**
997
948
  * Lists all GTM Accounts that a user has access to.
998
- * @example
999
- * ```js
1000
- * // Before running the sample:
1001
- * // - Enable the API at:
1002
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1003
- * // - Login into gcloud by running:
1004
- * // `$ gcloud auth application-default login`
1005
- * // - Install the npm module by running:
1006
- * // `$ npm install googleapis`
1007
- *
1008
- * const {google} = require('googleapis');
1009
- * const tagmanager = google.tagmanager('v1');
1010
- *
1011
- * async function main() {
1012
- * const auth = new google.auth.GoogleAuth({
1013
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1014
- * scopes: [
1015
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
1016
- * 'https://www.googleapis.com/auth/tagmanager.manage.accounts',
1017
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
1018
- * ],
1019
- * });
1020
- *
1021
- * // Acquire an auth client, and bind it to all future calls
1022
- * const authClient = await auth.getClient();
1023
- * google.options({auth: authClient});
1024
- *
1025
- * // Do the magic
1026
- * const res = await tagmanager.accounts.list({});
1027
- * console.log(res.data);
1028
- *
1029
- * // Example response
1030
- * // {
1031
- * // "accounts": []
1032
- * // }
1033
- * }
1034
- *
1035
- * main().catch(e => {
1036
- * console.error(e);
1037
- * throw e;
1038
- * });
1039
- *
1040
- * ```
1041
949
  *
1042
950
  * @param params - Parameters for request
1043
951
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1052,64 +960,6 @@ export declare namespace tagmanager_v1 {
1052
960
  list(callback: BodyResponseCallback<Schema$ListAccountsResponse>): void;
1053
961
  /**
1054
962
  * Updates a GTM Account.
1055
- * @example
1056
- * ```js
1057
- * // Before running the sample:
1058
- * // - Enable the API at:
1059
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1060
- * // - Login into gcloud by running:
1061
- * // `$ gcloud auth application-default login`
1062
- * // - Install the npm module by running:
1063
- * // `$ npm install googleapis`
1064
- *
1065
- * const {google} = require('googleapis');
1066
- * const tagmanager = google.tagmanager('v1');
1067
- *
1068
- * async function main() {
1069
- * const auth = new google.auth.GoogleAuth({
1070
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1071
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.accounts'],
1072
- * });
1073
- *
1074
- * // Acquire an auth client, and bind it to all future calls
1075
- * const authClient = await auth.getClient();
1076
- * google.options({auth: authClient});
1077
- *
1078
- * // Do the magic
1079
- * const res = await tagmanager.accounts.update({
1080
- * // The GTM Account ID.
1081
- * accountId: 'placeholder-value',
1082
- * // When provided, this fingerprint must match the fingerprint of the account in storage.
1083
- * fingerprint: 'placeholder-value',
1084
- *
1085
- * // Request body metadata
1086
- * requestBody: {
1087
- * // request body parameters
1088
- * // {
1089
- * // "accountId": "my_accountId",
1090
- * // "fingerprint": "my_fingerprint",
1091
- * // "name": "my_name",
1092
- * // "shareData": false
1093
- * // }
1094
- * },
1095
- * });
1096
- * console.log(res.data);
1097
- *
1098
- * // Example response
1099
- * // {
1100
- * // "accountId": "my_accountId",
1101
- * // "fingerprint": "my_fingerprint",
1102
- * // "name": "my_name",
1103
- * // "shareData": false
1104
- * // }
1105
- * }
1106
- *
1107
- * main().catch(e => {
1108
- * console.error(e);
1109
- * throw e;
1110
- * });
1111
- *
1112
- * ```
1113
963
  *
1114
964
  * @param params - Parameters for request
1115
965
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1158,76 +1008,6 @@ export declare namespace tagmanager_v1 {
1158
1008
  constructor(context: APIRequestContext);
1159
1009
  /**
1160
1010
  * Creates a Container.
1161
- * @example
1162
- * ```js
1163
- * // Before running the sample:
1164
- * // - Enable the API at:
1165
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1166
- * // - Login into gcloud by running:
1167
- * // `$ gcloud auth application-default login`
1168
- * // - Install the npm module by running:
1169
- * // `$ npm install googleapis`
1170
- *
1171
- * const {google} = require('googleapis');
1172
- * const tagmanager = google.tagmanager('v1');
1173
- *
1174
- * async function main() {
1175
- * const auth = new google.auth.GoogleAuth({
1176
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1177
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
1178
- * });
1179
- *
1180
- * // Acquire an auth client, and bind it to all future calls
1181
- * const authClient = await auth.getClient();
1182
- * google.options({auth: authClient});
1183
- *
1184
- * // Do the magic
1185
- * const res = await tagmanager.accounts.containers.create({
1186
- * // The GTM Account ID.
1187
- * accountId: 'placeholder-value',
1188
- *
1189
- * // Request body metadata
1190
- * requestBody: {
1191
- * // request body parameters
1192
- * // {
1193
- * // "accountId": "my_accountId",
1194
- * // "containerId": "my_containerId",
1195
- * // "domainName": [],
1196
- * // "enabledBuiltInVariable": [],
1197
- * // "fingerprint": "my_fingerprint",
1198
- * // "name": "my_name",
1199
- * // "notes": "my_notes",
1200
- * // "publicId": "my_publicId",
1201
- * // "timeZoneCountryId": "my_timeZoneCountryId",
1202
- * // "timeZoneId": "my_timeZoneId",
1203
- * // "usageContext": []
1204
- * // }
1205
- * },
1206
- * });
1207
- * console.log(res.data);
1208
- *
1209
- * // Example response
1210
- * // {
1211
- * // "accountId": "my_accountId",
1212
- * // "containerId": "my_containerId",
1213
- * // "domainName": [],
1214
- * // "enabledBuiltInVariable": [],
1215
- * // "fingerprint": "my_fingerprint",
1216
- * // "name": "my_name",
1217
- * // "notes": "my_notes",
1218
- * // "publicId": "my_publicId",
1219
- * // "timeZoneCountryId": "my_timeZoneCountryId",
1220
- * // "timeZoneId": "my_timeZoneId",
1221
- * // "usageContext": []
1222
- * // }
1223
- * }
1224
- *
1225
- * main().catch(e => {
1226
- * console.error(e);
1227
- * throw e;
1228
- * });
1229
- *
1230
- * ```
1231
1011
  *
1232
1012
  * @param params - Parameters for request
1233
1013
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1242,45 +1022,6 @@ export declare namespace tagmanager_v1 {
1242
1022
  create(callback: BodyResponseCallback<Schema$Container>): void;
1243
1023
  /**
1244
1024
  * Deletes a Container.
1245
- * @example
1246
- * ```js
1247
- * // Before running the sample:
1248
- * // - Enable the API at:
1249
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1250
- * // - Login into gcloud by running:
1251
- * // `$ gcloud auth application-default login`
1252
- * // - Install the npm module by running:
1253
- * // `$ npm install googleapis`
1254
- *
1255
- * const {google} = require('googleapis');
1256
- * const tagmanager = google.tagmanager('v1');
1257
- *
1258
- * async function main() {
1259
- * const auth = new google.auth.GoogleAuth({
1260
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1261
- * scopes: ['https://www.googleapis.com/auth/tagmanager.delete.containers'],
1262
- * });
1263
- *
1264
- * // Acquire an auth client, and bind it to all future calls
1265
- * const authClient = await auth.getClient();
1266
- * google.options({auth: authClient});
1267
- *
1268
- * // Do the magic
1269
- * const res = await tagmanager.accounts.containers.delete({
1270
- * // The GTM Account ID.
1271
- * accountId: 'placeholder-value',
1272
- * // The GTM Container ID.
1273
- * containerId: 'placeholder-value',
1274
- * });
1275
- * console.log(res.data);
1276
- * }
1277
- *
1278
- * main().catch(e => {
1279
- * console.error(e);
1280
- * throw e;
1281
- * });
1282
- *
1283
- * ```
1284
1025
  *
1285
1026
  * @param params - Parameters for request
1286
1027
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1295,63 +1036,6 @@ export declare namespace tagmanager_v1 {
1295
1036
  delete(callback: BodyResponseCallback<void>): void;
1296
1037
  /**
1297
1038
  * Gets a Container.
1298
- * @example
1299
- * ```js
1300
- * // Before running the sample:
1301
- * // - Enable the API at:
1302
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1303
- * // - Login into gcloud by running:
1304
- * // `$ gcloud auth application-default login`
1305
- * // - Install the npm module by running:
1306
- * // `$ npm install googleapis`
1307
- *
1308
- * const {google} = require('googleapis');
1309
- * const tagmanager = google.tagmanager('v1');
1310
- *
1311
- * async function main() {
1312
- * const auth = new google.auth.GoogleAuth({
1313
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1314
- * scopes: [
1315
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
1316
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
1317
- * ],
1318
- * });
1319
- *
1320
- * // Acquire an auth client, and bind it to all future calls
1321
- * const authClient = await auth.getClient();
1322
- * google.options({auth: authClient});
1323
- *
1324
- * // Do the magic
1325
- * const res = await tagmanager.accounts.containers.get({
1326
- * // The GTM Account ID.
1327
- * accountId: 'placeholder-value',
1328
- * // The GTM Container ID.
1329
- * containerId: 'placeholder-value',
1330
- * });
1331
- * console.log(res.data);
1332
- *
1333
- * // Example response
1334
- * // {
1335
- * // "accountId": "my_accountId",
1336
- * // "containerId": "my_containerId",
1337
- * // "domainName": [],
1338
- * // "enabledBuiltInVariable": [],
1339
- * // "fingerprint": "my_fingerprint",
1340
- * // "name": "my_name",
1341
- * // "notes": "my_notes",
1342
- * // "publicId": "my_publicId",
1343
- * // "timeZoneCountryId": "my_timeZoneCountryId",
1344
- * // "timeZoneId": "my_timeZoneId",
1345
- * // "usageContext": []
1346
- * // }
1347
- * }
1348
- *
1349
- * main().catch(e => {
1350
- * console.error(e);
1351
- * throw e;
1352
- * });
1353
- *
1354
- * ```
1355
1039
  *
1356
1040
  * @param params - Parameters for request
1357
1041
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1366,51 +1050,6 @@ export declare namespace tagmanager_v1 {
1366
1050
  get(callback: BodyResponseCallback<Schema$Container>): void;
1367
1051
  /**
1368
1052
  * Lists all Containers that belongs to a GTM Account.
1369
- * @example
1370
- * ```js
1371
- * // Before running the sample:
1372
- * // - Enable the API at:
1373
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1374
- * // - Login into gcloud by running:
1375
- * // `$ gcloud auth application-default login`
1376
- * // - Install the npm module by running:
1377
- * // `$ npm install googleapis`
1378
- *
1379
- * const {google} = require('googleapis');
1380
- * const tagmanager = google.tagmanager('v1');
1381
- *
1382
- * async function main() {
1383
- * const auth = new google.auth.GoogleAuth({
1384
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1385
- * scopes: [
1386
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
1387
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
1388
- * ],
1389
- * });
1390
- *
1391
- * // Acquire an auth client, and bind it to all future calls
1392
- * const authClient = await auth.getClient();
1393
- * google.options({auth: authClient});
1394
- *
1395
- * // Do the magic
1396
- * const res = await tagmanager.accounts.containers.list({
1397
- * // The GTM Account ID.
1398
- * accountId: 'placeholder-value',
1399
- * });
1400
- * console.log(res.data);
1401
- *
1402
- * // Example response
1403
- * // {
1404
- * // "containers": []
1405
- * // }
1406
- * }
1407
- *
1408
- * main().catch(e => {
1409
- * console.error(e);
1410
- * throw e;
1411
- * });
1412
- *
1413
- * ```
1414
1053
  *
1415
1054
  * @param params - Parameters for request
1416
1055
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1425,80 +1064,6 @@ export declare namespace tagmanager_v1 {
1425
1064
  list(callback: BodyResponseCallback<Schema$ListContainersResponse>): void;
1426
1065
  /**
1427
1066
  * Updates a Container.
1428
- * @example
1429
- * ```js
1430
- * // Before running the sample:
1431
- * // - Enable the API at:
1432
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1433
- * // - Login into gcloud by running:
1434
- * // `$ gcloud auth application-default login`
1435
- * // - Install the npm module by running:
1436
- * // `$ npm install googleapis`
1437
- *
1438
- * const {google} = require('googleapis');
1439
- * const tagmanager = google.tagmanager('v1');
1440
- *
1441
- * async function main() {
1442
- * const auth = new google.auth.GoogleAuth({
1443
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1444
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
1445
- * });
1446
- *
1447
- * // Acquire an auth client, and bind it to all future calls
1448
- * const authClient = await auth.getClient();
1449
- * google.options({auth: authClient});
1450
- *
1451
- * // Do the magic
1452
- * const res = await tagmanager.accounts.containers.update({
1453
- * // The GTM Account ID.
1454
- * accountId: 'placeholder-value',
1455
- * // The GTM Container ID.
1456
- * containerId: 'placeholder-value',
1457
- * // When provided, this fingerprint must match the fingerprint of the container in storage.
1458
- * fingerprint: 'placeholder-value',
1459
- *
1460
- * // Request body metadata
1461
- * requestBody: {
1462
- * // request body parameters
1463
- * // {
1464
- * // "accountId": "my_accountId",
1465
- * // "containerId": "my_containerId",
1466
- * // "domainName": [],
1467
- * // "enabledBuiltInVariable": [],
1468
- * // "fingerprint": "my_fingerprint",
1469
- * // "name": "my_name",
1470
- * // "notes": "my_notes",
1471
- * // "publicId": "my_publicId",
1472
- * // "timeZoneCountryId": "my_timeZoneCountryId",
1473
- * // "timeZoneId": "my_timeZoneId",
1474
- * // "usageContext": []
1475
- * // }
1476
- * },
1477
- * });
1478
- * console.log(res.data);
1479
- *
1480
- * // Example response
1481
- * // {
1482
- * // "accountId": "my_accountId",
1483
- * // "containerId": "my_containerId",
1484
- * // "domainName": [],
1485
- * // "enabledBuiltInVariable": [],
1486
- * // "fingerprint": "my_fingerprint",
1487
- * // "name": "my_name",
1488
- * // "notes": "my_notes",
1489
- * // "publicId": "my_publicId",
1490
- * // "timeZoneCountryId": "my_timeZoneCountryId",
1491
- * // "timeZoneId": "my_timeZoneId",
1492
- * // "usageContext": []
1493
- * // }
1494
- * }
1495
- *
1496
- * main().catch(e => {
1497
- * console.error(e);
1498
- * throw e;
1499
- * });
1500
- *
1501
- * ```
1502
1067
  *
1503
1068
  * @param params - Parameters for request
1504
1069
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1571,80 +1136,6 @@ export declare namespace tagmanager_v1 {
1571
1136
  constructor(context: APIRequestContext);
1572
1137
  /**
1573
1138
  * Creates a GTM Environment.
1574
- * @example
1575
- * ```js
1576
- * // Before running the sample:
1577
- * // - Enable the API at:
1578
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1579
- * // - Login into gcloud by running:
1580
- * // `$ gcloud auth application-default login`
1581
- * // - Install the npm module by running:
1582
- * // `$ npm install googleapis`
1583
- *
1584
- * const {google} = require('googleapis');
1585
- * const tagmanager = google.tagmanager('v1');
1586
- *
1587
- * async function main() {
1588
- * const auth = new google.auth.GoogleAuth({
1589
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1590
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
1591
- * });
1592
- *
1593
- * // Acquire an auth client, and bind it to all future calls
1594
- * const authClient = await auth.getClient();
1595
- * google.options({auth: authClient});
1596
- *
1597
- * // Do the magic
1598
- * const res = await tagmanager.accounts.containers.environments.create({
1599
- * // The GTM Account ID.
1600
- * accountId: 'placeholder-value',
1601
- * // The GTM Container ID.
1602
- * containerId: 'placeholder-value',
1603
- *
1604
- * // Request body metadata
1605
- * requestBody: {
1606
- * // request body parameters
1607
- * // {
1608
- * // "accountId": "my_accountId",
1609
- * // "authorizationCode": "my_authorizationCode",
1610
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
1611
- * // "containerId": "my_containerId",
1612
- * // "containerVersionId": "my_containerVersionId",
1613
- * // "description": "my_description",
1614
- * // "enableDebug": false,
1615
- * // "environmentId": "my_environmentId",
1616
- * // "fingerprint": "my_fingerprint",
1617
- * // "name": "my_name",
1618
- * // "type": "my_type",
1619
- * // "url": "my_url"
1620
- * // }
1621
- * },
1622
- * });
1623
- * console.log(res.data);
1624
- *
1625
- * // Example response
1626
- * // {
1627
- * // "accountId": "my_accountId",
1628
- * // "authorizationCode": "my_authorizationCode",
1629
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
1630
- * // "containerId": "my_containerId",
1631
- * // "containerVersionId": "my_containerVersionId",
1632
- * // "description": "my_description",
1633
- * // "enableDebug": false,
1634
- * // "environmentId": "my_environmentId",
1635
- * // "fingerprint": "my_fingerprint",
1636
- * // "name": "my_name",
1637
- * // "type": "my_type",
1638
- * // "url": "my_url"
1639
- * // }
1640
- * }
1641
- *
1642
- * main().catch(e => {
1643
- * console.error(e);
1644
- * throw e;
1645
- * });
1646
- *
1647
- * ```
1648
1139
  *
1649
1140
  * @param params - Parameters for request
1650
1141
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1659,47 +1150,6 @@ export declare namespace tagmanager_v1 {
1659
1150
  create(callback: BodyResponseCallback<Schema$Environment>): void;
1660
1151
  /**
1661
1152
  * Deletes a GTM Environment.
1662
- * @example
1663
- * ```js
1664
- * // Before running the sample:
1665
- * // - Enable the API at:
1666
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1667
- * // - Login into gcloud by running:
1668
- * // `$ gcloud auth application-default login`
1669
- * // - Install the npm module by running:
1670
- * // `$ npm install googleapis`
1671
- *
1672
- * const {google} = require('googleapis');
1673
- * const tagmanager = google.tagmanager('v1');
1674
- *
1675
- * async function main() {
1676
- * const auth = new google.auth.GoogleAuth({
1677
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1678
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
1679
- * });
1680
- *
1681
- * // Acquire an auth client, and bind it to all future calls
1682
- * const authClient = await auth.getClient();
1683
- * google.options({auth: authClient});
1684
- *
1685
- * // Do the magic
1686
- * const res = await tagmanager.accounts.containers.environments.delete({
1687
- * // The GTM Account ID.
1688
- * accountId: 'placeholder-value',
1689
- * // The GTM Container ID.
1690
- * containerId: 'placeholder-value',
1691
- * // The GTM Environment ID.
1692
- * environmentId: 'placeholder-value',
1693
- * });
1694
- * console.log(res.data);
1695
- * }
1696
- *
1697
- * main().catch(e => {
1698
- * console.error(e);
1699
- * throw e;
1700
- * });
1701
- *
1702
- * ```
1703
1153
  *
1704
1154
  * @param params - Parameters for request
1705
1155
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1714,66 +1164,6 @@ export declare namespace tagmanager_v1 {
1714
1164
  delete(callback: BodyResponseCallback<void>): void;
1715
1165
  /**
1716
1166
  * Gets a GTM Environment.
1717
- * @example
1718
- * ```js
1719
- * // Before running the sample:
1720
- * // - Enable the API at:
1721
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1722
- * // - Login into gcloud by running:
1723
- * // `$ gcloud auth application-default login`
1724
- * // - Install the npm module by running:
1725
- * // `$ npm install googleapis`
1726
- *
1727
- * const {google} = require('googleapis');
1728
- * const tagmanager = google.tagmanager('v1');
1729
- *
1730
- * async function main() {
1731
- * const auth = new google.auth.GoogleAuth({
1732
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1733
- * scopes: [
1734
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
1735
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
1736
- * ],
1737
- * });
1738
- *
1739
- * // Acquire an auth client, and bind it to all future calls
1740
- * const authClient = await auth.getClient();
1741
- * google.options({auth: authClient});
1742
- *
1743
- * // Do the magic
1744
- * const res = await tagmanager.accounts.containers.environments.get({
1745
- * // The GTM Account ID.
1746
- * accountId: 'placeholder-value',
1747
- * // The GTM Container ID.
1748
- * containerId: 'placeholder-value',
1749
- * // The GTM Environment ID.
1750
- * environmentId: 'placeholder-value',
1751
- * });
1752
- * console.log(res.data);
1753
- *
1754
- * // Example response
1755
- * // {
1756
- * // "accountId": "my_accountId",
1757
- * // "authorizationCode": "my_authorizationCode",
1758
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
1759
- * // "containerId": "my_containerId",
1760
- * // "containerVersionId": "my_containerVersionId",
1761
- * // "description": "my_description",
1762
- * // "enableDebug": false,
1763
- * // "environmentId": "my_environmentId",
1764
- * // "fingerprint": "my_fingerprint",
1765
- * // "name": "my_name",
1766
- * // "type": "my_type",
1767
- * // "url": "my_url"
1768
- * // }
1769
- * }
1770
- *
1771
- * main().catch(e => {
1772
- * console.error(e);
1773
- * throw e;
1774
- * });
1775
- *
1776
- * ```
1777
1167
  *
1778
1168
  * @param params - Parameters for request
1779
1169
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1788,53 +1178,6 @@ export declare namespace tagmanager_v1 {
1788
1178
  get(callback: BodyResponseCallback<Schema$Environment>): void;
1789
1179
  /**
1790
1180
  * Lists all GTM Environments of a GTM Container.
1791
- * @example
1792
- * ```js
1793
- * // Before running the sample:
1794
- * // - Enable the API at:
1795
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1796
- * // - Login into gcloud by running:
1797
- * // `$ gcloud auth application-default login`
1798
- * // - Install the npm module by running:
1799
- * // `$ npm install googleapis`
1800
- *
1801
- * const {google} = require('googleapis');
1802
- * const tagmanager = google.tagmanager('v1');
1803
- *
1804
- * async function main() {
1805
- * const auth = new google.auth.GoogleAuth({
1806
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1807
- * scopes: [
1808
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
1809
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
1810
- * ],
1811
- * });
1812
- *
1813
- * // Acquire an auth client, and bind it to all future calls
1814
- * const authClient = await auth.getClient();
1815
- * google.options({auth: authClient});
1816
- *
1817
- * // Do the magic
1818
- * const res = await tagmanager.accounts.containers.environments.list({
1819
- * // The GTM Account ID.
1820
- * accountId: 'placeholder-value',
1821
- * // The GTM Container ID.
1822
- * containerId: 'placeholder-value',
1823
- * });
1824
- * console.log(res.data);
1825
- *
1826
- * // Example response
1827
- * // {
1828
- * // "environments": []
1829
- * // }
1830
- * }
1831
- *
1832
- * main().catch(e => {
1833
- * console.error(e);
1834
- * throw e;
1835
- * });
1836
- *
1837
- * ```
1838
1181
  *
1839
1182
  * @param params - Parameters for request
1840
1183
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1849,84 +1192,6 @@ export declare namespace tagmanager_v1 {
1849
1192
  list(callback: BodyResponseCallback<Schema$ListEnvironmentsResponse>): void;
1850
1193
  /**
1851
1194
  * Updates a GTM Environment.
1852
- * @example
1853
- * ```js
1854
- * // Before running the sample:
1855
- * // - Enable the API at:
1856
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
1857
- * // - Login into gcloud by running:
1858
- * // `$ gcloud auth application-default login`
1859
- * // - Install the npm module by running:
1860
- * // `$ npm install googleapis`
1861
- *
1862
- * const {google} = require('googleapis');
1863
- * const tagmanager = google.tagmanager('v1');
1864
- *
1865
- * async function main() {
1866
- * const auth = new google.auth.GoogleAuth({
1867
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1868
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
1869
- * });
1870
- *
1871
- * // Acquire an auth client, and bind it to all future calls
1872
- * const authClient = await auth.getClient();
1873
- * google.options({auth: authClient});
1874
- *
1875
- * // Do the magic
1876
- * const res = await tagmanager.accounts.containers.environments.update({
1877
- * // The GTM Account ID.
1878
- * accountId: 'placeholder-value',
1879
- * // The GTM Container ID.
1880
- * containerId: 'placeholder-value',
1881
- * // The GTM Environment ID.
1882
- * environmentId: 'placeholder-value',
1883
- * // When provided, this fingerprint must match the fingerprint of the environment in storage.
1884
- * fingerprint: 'placeholder-value',
1885
- *
1886
- * // Request body metadata
1887
- * requestBody: {
1888
- * // request body parameters
1889
- * // {
1890
- * // "accountId": "my_accountId",
1891
- * // "authorizationCode": "my_authorizationCode",
1892
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
1893
- * // "containerId": "my_containerId",
1894
- * // "containerVersionId": "my_containerVersionId",
1895
- * // "description": "my_description",
1896
- * // "enableDebug": false,
1897
- * // "environmentId": "my_environmentId",
1898
- * // "fingerprint": "my_fingerprint",
1899
- * // "name": "my_name",
1900
- * // "type": "my_type",
1901
- * // "url": "my_url"
1902
- * // }
1903
- * },
1904
- * });
1905
- * console.log(res.data);
1906
- *
1907
- * // Example response
1908
- * // {
1909
- * // "accountId": "my_accountId",
1910
- * // "authorizationCode": "my_authorizationCode",
1911
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
1912
- * // "containerId": "my_containerId",
1913
- * // "containerVersionId": "my_containerVersionId",
1914
- * // "description": "my_description",
1915
- * // "enableDebug": false,
1916
- * // "environmentId": "my_environmentId",
1917
- * // "fingerprint": "my_fingerprint",
1918
- * // "name": "my_name",
1919
- * // "type": "my_type",
1920
- * // "url": "my_url"
1921
- * // }
1922
- * }
1923
- *
1924
- * main().catch(e => {
1925
- * console.error(e);
1926
- * throw e;
1927
- * });
1928
- *
1929
- * ```
1930
1195
  *
1931
1196
  * @param params - Parameters for request
1932
1197
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2020,66 +1285,6 @@ export declare namespace tagmanager_v1 {
2020
1285
  constructor(context: APIRequestContext);
2021
1286
  /**
2022
1287
  * Creates a GTM Folder.
2023
- * @example
2024
- * ```js
2025
- * // Before running the sample:
2026
- * // - Enable the API at:
2027
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2028
- * // - Login into gcloud by running:
2029
- * // `$ gcloud auth application-default login`
2030
- * // - Install the npm module by running:
2031
- * // `$ npm install googleapis`
2032
- *
2033
- * const {google} = require('googleapis');
2034
- * const tagmanager = google.tagmanager('v1');
2035
- *
2036
- * async function main() {
2037
- * const auth = new google.auth.GoogleAuth({
2038
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2039
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2040
- * });
2041
- *
2042
- * // Acquire an auth client, and bind it to all future calls
2043
- * const authClient = await auth.getClient();
2044
- * google.options({auth: authClient});
2045
- *
2046
- * // Do the magic
2047
- * const res = await tagmanager.accounts.containers.folders.create({
2048
- * // The GTM Account ID.
2049
- * accountId: 'placeholder-value',
2050
- * // The GTM Container ID.
2051
- * containerId: 'placeholder-value',
2052
- *
2053
- * // Request body metadata
2054
- * requestBody: {
2055
- * // request body parameters
2056
- * // {
2057
- * // "accountId": "my_accountId",
2058
- * // "containerId": "my_containerId",
2059
- * // "fingerprint": "my_fingerprint",
2060
- * // "folderId": "my_folderId",
2061
- * // "name": "my_name"
2062
- * // }
2063
- * },
2064
- * });
2065
- * console.log(res.data);
2066
- *
2067
- * // Example response
2068
- * // {
2069
- * // "accountId": "my_accountId",
2070
- * // "containerId": "my_containerId",
2071
- * // "fingerprint": "my_fingerprint",
2072
- * // "folderId": "my_folderId",
2073
- * // "name": "my_name"
2074
- * // }
2075
- * }
2076
- *
2077
- * main().catch(e => {
2078
- * console.error(e);
2079
- * throw e;
2080
- * });
2081
- *
2082
- * ```
2083
1288
  *
2084
1289
  * @param params - Parameters for request
2085
1290
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2094,47 +1299,6 @@ export declare namespace tagmanager_v1 {
2094
1299
  create(callback: BodyResponseCallback<Schema$Folder>): void;
2095
1300
  /**
2096
1301
  * Deletes a GTM Folder.
2097
- * @example
2098
- * ```js
2099
- * // Before running the sample:
2100
- * // - Enable the API at:
2101
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2102
- * // - Login into gcloud by running:
2103
- * // `$ gcloud auth application-default login`
2104
- * // - Install the npm module by running:
2105
- * // `$ npm install googleapis`
2106
- *
2107
- * const {google} = require('googleapis');
2108
- * const tagmanager = google.tagmanager('v1');
2109
- *
2110
- * async function main() {
2111
- * const auth = new google.auth.GoogleAuth({
2112
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2113
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2114
- * });
2115
- *
2116
- * // Acquire an auth client, and bind it to all future calls
2117
- * const authClient = await auth.getClient();
2118
- * google.options({auth: authClient});
2119
- *
2120
- * // Do the magic
2121
- * const res = await tagmanager.accounts.containers.folders.delete({
2122
- * // The GTM Account ID.
2123
- * accountId: 'placeholder-value',
2124
- * // The GTM Container ID.
2125
- * containerId: 'placeholder-value',
2126
- * // The GTM Folder ID.
2127
- * folderId: 'placeholder-value',
2128
- * });
2129
- * console.log(res.data);
2130
- * }
2131
- *
2132
- * main().catch(e => {
2133
- * console.error(e);
2134
- * throw e;
2135
- * });
2136
- *
2137
- * ```
2138
1302
  *
2139
1303
  * @param params - Parameters for request
2140
1304
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2149,59 +1313,6 @@ export declare namespace tagmanager_v1 {
2149
1313
  delete(callback: BodyResponseCallback<void>): void;
2150
1314
  /**
2151
1315
  * Gets a GTM Folder.
2152
- * @example
2153
- * ```js
2154
- * // Before running the sample:
2155
- * // - Enable the API at:
2156
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2157
- * // - Login into gcloud by running:
2158
- * // `$ gcloud auth application-default login`
2159
- * // - Install the npm module by running:
2160
- * // `$ npm install googleapis`
2161
- *
2162
- * const {google} = require('googleapis');
2163
- * const tagmanager = google.tagmanager('v1');
2164
- *
2165
- * async function main() {
2166
- * const auth = new google.auth.GoogleAuth({
2167
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2168
- * scopes: [
2169
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
2170
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
2171
- * ],
2172
- * });
2173
- *
2174
- * // Acquire an auth client, and bind it to all future calls
2175
- * const authClient = await auth.getClient();
2176
- * google.options({auth: authClient});
2177
- *
2178
- * // Do the magic
2179
- * const res = await tagmanager.accounts.containers.folders.get({
2180
- * // The GTM Account ID.
2181
- * accountId: 'placeholder-value',
2182
- * // The GTM Container ID.
2183
- * containerId: 'placeholder-value',
2184
- * // The GTM Folder ID.
2185
- * folderId: 'placeholder-value',
2186
- * });
2187
- * console.log(res.data);
2188
- *
2189
- * // Example response
2190
- * // {
2191
- * // "accountId": "my_accountId",
2192
- * // "containerId": "my_containerId",
2193
- * // "fingerprint": "my_fingerprint",
2194
- * // "folderId": "my_folderId",
2195
- * // "name": "my_name"
2196
- * // }
2197
- * }
2198
- *
2199
- * main().catch(e => {
2200
- * console.error(e);
2201
- * throw e;
2202
- * });
2203
- *
2204
- * ```
2205
1316
  *
2206
1317
  * @param params - Parameters for request
2207
1318
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2216,53 +1327,6 @@ export declare namespace tagmanager_v1 {
2216
1327
  get(callback: BodyResponseCallback<Schema$Folder>): void;
2217
1328
  /**
2218
1329
  * Lists all GTM Folders of a Container.
2219
- * @example
2220
- * ```js
2221
- * // Before running the sample:
2222
- * // - Enable the API at:
2223
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2224
- * // - Login into gcloud by running:
2225
- * // `$ gcloud auth application-default login`
2226
- * // - Install the npm module by running:
2227
- * // `$ npm install googleapis`
2228
- *
2229
- * const {google} = require('googleapis');
2230
- * const tagmanager = google.tagmanager('v1');
2231
- *
2232
- * async function main() {
2233
- * const auth = new google.auth.GoogleAuth({
2234
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2235
- * scopes: [
2236
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
2237
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
2238
- * ],
2239
- * });
2240
- *
2241
- * // Acquire an auth client, and bind it to all future calls
2242
- * const authClient = await auth.getClient();
2243
- * google.options({auth: authClient});
2244
- *
2245
- * // Do the magic
2246
- * const res = await tagmanager.accounts.containers.folders.list({
2247
- * // The GTM Account ID.
2248
- * accountId: 'placeholder-value',
2249
- * // The GTM Container ID.
2250
- * containerId: 'placeholder-value',
2251
- * });
2252
- * console.log(res.data);
2253
- *
2254
- * // Example response
2255
- * // {
2256
- * // "folders": []
2257
- * // }
2258
- * }
2259
- *
2260
- * main().catch(e => {
2261
- * console.error(e);
2262
- * throw e;
2263
- * });
2264
- *
2265
- * ```
2266
1330
  *
2267
1331
  * @param params - Parameters for request
2268
1332
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2277,70 +1341,6 @@ export declare namespace tagmanager_v1 {
2277
1341
  list(callback: BodyResponseCallback<Schema$ListFoldersResponse>): void;
2278
1342
  /**
2279
1343
  * Updates a GTM Folder.
2280
- * @example
2281
- * ```js
2282
- * // Before running the sample:
2283
- * // - Enable the API at:
2284
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2285
- * // - Login into gcloud by running:
2286
- * // `$ gcloud auth application-default login`
2287
- * // - Install the npm module by running:
2288
- * // `$ npm install googleapis`
2289
- *
2290
- * const {google} = require('googleapis');
2291
- * const tagmanager = google.tagmanager('v1');
2292
- *
2293
- * async function main() {
2294
- * const auth = new google.auth.GoogleAuth({
2295
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2296
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2297
- * });
2298
- *
2299
- * // Acquire an auth client, and bind it to all future calls
2300
- * const authClient = await auth.getClient();
2301
- * google.options({auth: authClient});
2302
- *
2303
- * // Do the magic
2304
- * const res = await tagmanager.accounts.containers.folders.update({
2305
- * // The GTM Account ID.
2306
- * accountId: 'placeholder-value',
2307
- * // The GTM Container ID.
2308
- * containerId: 'placeholder-value',
2309
- * // When provided, this fingerprint must match the fingerprint of the folder in storage.
2310
- * fingerprint: 'placeholder-value',
2311
- * // The GTM Folder ID.
2312
- * folderId: 'placeholder-value',
2313
- *
2314
- * // Request body metadata
2315
- * requestBody: {
2316
- * // request body parameters
2317
- * // {
2318
- * // "accountId": "my_accountId",
2319
- * // "containerId": "my_containerId",
2320
- * // "fingerprint": "my_fingerprint",
2321
- * // "folderId": "my_folderId",
2322
- * // "name": "my_name"
2323
- * // }
2324
- * },
2325
- * });
2326
- * console.log(res.data);
2327
- *
2328
- * // Example response
2329
- * // {
2330
- * // "accountId": "my_accountId",
2331
- * // "containerId": "my_containerId",
2332
- * // "fingerprint": "my_fingerprint",
2333
- * // "folderId": "my_folderId",
2334
- * // "name": "my_name"
2335
- * // }
2336
- * }
2337
- *
2338
- * main().catch(e => {
2339
- * console.error(e);
2340
- * throw e;
2341
- * });
2342
- *
2343
- * ```
2344
1344
  *
2345
1345
  * @param params - Parameters for request
2346
1346
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2433,57 +1433,6 @@ export declare namespace tagmanager_v1 {
2433
1433
  constructor(context: APIRequestContext);
2434
1434
  /**
2435
1435
  * List all entities in a GTM Folder.
2436
- * @example
2437
- * ```js
2438
- * // Before running the sample:
2439
- * // - Enable the API at:
2440
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2441
- * // - Login into gcloud by running:
2442
- * // `$ gcloud auth application-default login`
2443
- * // - Install the npm module by running:
2444
- * // `$ npm install googleapis`
2445
- *
2446
- * const {google} = require('googleapis');
2447
- * const tagmanager = google.tagmanager('v1');
2448
- *
2449
- * async function main() {
2450
- * const auth = new google.auth.GoogleAuth({
2451
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2452
- * scopes: [
2453
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
2454
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
2455
- * ],
2456
- * });
2457
- *
2458
- * // Acquire an auth client, and bind it to all future calls
2459
- * const authClient = await auth.getClient();
2460
- * google.options({auth: authClient});
2461
- *
2462
- * // Do the magic
2463
- * const res = await tagmanager.accounts.containers.folders.entities.list({
2464
- * // The GTM Account ID.
2465
- * accountId: 'placeholder-value',
2466
- * // The GTM Container ID.
2467
- * containerId: 'placeholder-value',
2468
- * // The GTM Folder ID.
2469
- * folderId: 'placeholder-value',
2470
- * });
2471
- * console.log(res.data);
2472
- *
2473
- * // Example response
2474
- * // {
2475
- * // "tag": [],
2476
- * // "trigger": [],
2477
- * // "variable": []
2478
- * // }
2479
- * }
2480
- *
2481
- * main().catch(e => {
2482
- * console.error(e);
2483
- * throw e;
2484
- * });
2485
- *
2486
- * ```
2487
1436
  *
2488
1437
  * @param params - Parameters for request
2489
1438
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2516,65 +1465,6 @@ export declare namespace tagmanager_v1 {
2516
1465
  constructor(context: APIRequestContext);
2517
1466
  /**
2518
1467
  * Moves entities to a GTM Folder.
2519
- * @example
2520
- * ```js
2521
- * // Before running the sample:
2522
- * // - Enable the API at:
2523
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2524
- * // - Login into gcloud by running:
2525
- * // `$ gcloud auth application-default login`
2526
- * // - Install the npm module by running:
2527
- * // `$ npm install googleapis`
2528
- *
2529
- * const {google} = require('googleapis');
2530
- * const tagmanager = google.tagmanager('v1');
2531
- *
2532
- * async function main() {
2533
- * const auth = new google.auth.GoogleAuth({
2534
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2535
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2536
- * });
2537
- *
2538
- * // Acquire an auth client, and bind it to all future calls
2539
- * const authClient = await auth.getClient();
2540
- * google.options({auth: authClient});
2541
- *
2542
- * // Do the magic
2543
- * const res = await tagmanager.accounts.containers.move_folders.update({
2544
- * // The GTM Account ID.
2545
- * accountId: 'placeholder-value',
2546
- * // The GTM Container ID.
2547
- * containerId: 'placeholder-value',
2548
- * // The GTM Folder ID.
2549
- * folderId: 'placeholder-value',
2550
- * // The tags to be moved to the folder.
2551
- * tagId: 'placeholder-value',
2552
- * // The triggers to be moved to the folder.
2553
- * triggerId: 'placeholder-value',
2554
- * // The variables to be moved to the folder.
2555
- * variableId: 'placeholder-value',
2556
- *
2557
- * // Request body metadata
2558
- * requestBody: {
2559
- * // request body parameters
2560
- * // {
2561
- * // "accountId": "my_accountId",
2562
- * // "containerId": "my_containerId",
2563
- * // "fingerprint": "my_fingerprint",
2564
- * // "folderId": "my_folderId",
2565
- * // "name": "my_name"
2566
- * // }
2567
- * },
2568
- * });
2569
- * console.log(res.data);
2570
- * }
2571
- *
2572
- * main().catch(e => {
2573
- * console.error(e);
2574
- * throw e;
2575
- * });
2576
- *
2577
- * ```
2578
1468
  *
2579
1469
  * @param params - Parameters for request
2580
1470
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2623,83 +1513,6 @@ export declare namespace tagmanager_v1 {
2623
1513
  constructor(context: APIRequestContext);
2624
1514
  /**
2625
1515
  * Re-generates the authorization code for a GTM Environment.
2626
- * @example
2627
- * ```js
2628
- * // Before running the sample:
2629
- * // - Enable the API at:
2630
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2631
- * // - Login into gcloud by running:
2632
- * // `$ gcloud auth application-default login`
2633
- * // - Install the npm module by running:
2634
- * // `$ npm install googleapis`
2635
- *
2636
- * const {google} = require('googleapis');
2637
- * const tagmanager = google.tagmanager('v1');
2638
- *
2639
- * async function main() {
2640
- * const auth = new google.auth.GoogleAuth({
2641
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2642
- * scopes: ['https://www.googleapis.com/auth/tagmanager.publish'],
2643
- * });
2644
- *
2645
- * // Acquire an auth client, and bind it to all future calls
2646
- * const authClient = await auth.getClient();
2647
- * google.options({auth: authClient});
2648
- *
2649
- * // Do the magic
2650
- * const res =
2651
- * await tagmanager.accounts.containers.reauthorize_environments.update({
2652
- * // The GTM Account ID.
2653
- * accountId: 'placeholder-value',
2654
- * // The GTM Container ID.
2655
- * containerId: 'placeholder-value',
2656
- * // The GTM Environment ID.
2657
- * environmentId: 'placeholder-value',
2658
- *
2659
- * // Request body metadata
2660
- * requestBody: {
2661
- * // request body parameters
2662
- * // {
2663
- * // "accountId": "my_accountId",
2664
- * // "authorizationCode": "my_authorizationCode",
2665
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
2666
- * // "containerId": "my_containerId",
2667
- * // "containerVersionId": "my_containerVersionId",
2668
- * // "description": "my_description",
2669
- * // "enableDebug": false,
2670
- * // "environmentId": "my_environmentId",
2671
- * // "fingerprint": "my_fingerprint",
2672
- * // "name": "my_name",
2673
- * // "type": "my_type",
2674
- * // "url": "my_url"
2675
- * // }
2676
- * },
2677
- * });
2678
- * console.log(res.data);
2679
- *
2680
- * // Example response
2681
- * // {
2682
- * // "accountId": "my_accountId",
2683
- * // "authorizationCode": "my_authorizationCode",
2684
- * // "authorizationTimestampMs": "my_authorizationTimestampMs",
2685
- * // "containerId": "my_containerId",
2686
- * // "containerVersionId": "my_containerVersionId",
2687
- * // "description": "my_description",
2688
- * // "enableDebug": false,
2689
- * // "environmentId": "my_environmentId",
2690
- * // "fingerprint": "my_fingerprint",
2691
- * // "name": "my_name",
2692
- * // "type": "my_type",
2693
- * // "url": "my_url"
2694
- * // }
2695
- * }
2696
- *
2697
- * main().catch(e => {
2698
- * console.error(e);
2699
- * throw e;
2700
- * });
2701
- *
2702
- * ```
2703
1516
  *
2704
1517
  * @param params - Parameters for request
2705
1518
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2736,98 +1549,6 @@ export declare namespace tagmanager_v1 {
2736
1549
  constructor(context: APIRequestContext);
2737
1550
  /**
2738
1551
  * Creates a GTM Tag.
2739
- * @example
2740
- * ```js
2741
- * // Before running the sample:
2742
- * // - Enable the API at:
2743
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2744
- * // - Login into gcloud by running:
2745
- * // `$ gcloud auth application-default login`
2746
- * // - Install the npm module by running:
2747
- * // `$ npm install googleapis`
2748
- *
2749
- * const {google} = require('googleapis');
2750
- * const tagmanager = google.tagmanager('v1');
2751
- *
2752
- * async function main() {
2753
- * const auth = new google.auth.GoogleAuth({
2754
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2755
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2756
- * });
2757
- *
2758
- * // Acquire an auth client, and bind it to all future calls
2759
- * const authClient = await auth.getClient();
2760
- * google.options({auth: authClient});
2761
- *
2762
- * // Do the magic
2763
- * const res = await tagmanager.accounts.containers.tags.create({
2764
- * // The GTM Account ID.
2765
- * accountId: 'placeholder-value',
2766
- * // The GTM Container ID.
2767
- * containerId: 'placeholder-value',
2768
- *
2769
- * // Request body metadata
2770
- * requestBody: {
2771
- * // request body parameters
2772
- * // {
2773
- * // "accountId": "my_accountId",
2774
- * // "blockingRuleId": [],
2775
- * // "blockingTriggerId": [],
2776
- * // "containerId": "my_containerId",
2777
- * // "fingerprint": "my_fingerprint",
2778
- * // "firingRuleId": [],
2779
- * // "firingTriggerId": [],
2780
- * // "liveOnly": false,
2781
- * // "name": "my_name",
2782
- * // "notes": "my_notes",
2783
- * // "parameter": [],
2784
- * // "parentFolderId": "my_parentFolderId",
2785
- * // "paused": false,
2786
- * // "priority": {},
2787
- * // "scheduleEndMs": "my_scheduleEndMs",
2788
- * // "scheduleStartMs": "my_scheduleStartMs",
2789
- * // "setupTag": [],
2790
- * // "tagFiringOption": "my_tagFiringOption",
2791
- * // "tagId": "my_tagId",
2792
- * // "teardownTag": [],
2793
- * // "type": "my_type"
2794
- * // }
2795
- * },
2796
- * });
2797
- * console.log(res.data);
2798
- *
2799
- * // Example response
2800
- * // {
2801
- * // "accountId": "my_accountId",
2802
- * // "blockingRuleId": [],
2803
- * // "blockingTriggerId": [],
2804
- * // "containerId": "my_containerId",
2805
- * // "fingerprint": "my_fingerprint",
2806
- * // "firingRuleId": [],
2807
- * // "firingTriggerId": [],
2808
- * // "liveOnly": false,
2809
- * // "name": "my_name",
2810
- * // "notes": "my_notes",
2811
- * // "parameter": [],
2812
- * // "parentFolderId": "my_parentFolderId",
2813
- * // "paused": false,
2814
- * // "priority": {},
2815
- * // "scheduleEndMs": "my_scheduleEndMs",
2816
- * // "scheduleStartMs": "my_scheduleStartMs",
2817
- * // "setupTag": [],
2818
- * // "tagFiringOption": "my_tagFiringOption",
2819
- * // "tagId": "my_tagId",
2820
- * // "teardownTag": [],
2821
- * // "type": "my_type"
2822
- * // }
2823
- * }
2824
- *
2825
- * main().catch(e => {
2826
- * console.error(e);
2827
- * throw e;
2828
- * });
2829
- *
2830
- * ```
2831
1552
  *
2832
1553
  * @param params - Parameters for request
2833
1554
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2842,47 +1563,6 @@ export declare namespace tagmanager_v1 {
2842
1563
  create(callback: BodyResponseCallback<Schema$Tag>): void;
2843
1564
  /**
2844
1565
  * Deletes a GTM Tag.
2845
- * @example
2846
- * ```js
2847
- * // Before running the sample:
2848
- * // - Enable the API at:
2849
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2850
- * // - Login into gcloud by running:
2851
- * // `$ gcloud auth application-default login`
2852
- * // - Install the npm module by running:
2853
- * // `$ npm install googleapis`
2854
- *
2855
- * const {google} = require('googleapis');
2856
- * const tagmanager = google.tagmanager('v1');
2857
- *
2858
- * async function main() {
2859
- * const auth = new google.auth.GoogleAuth({
2860
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2861
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
2862
- * });
2863
- *
2864
- * // Acquire an auth client, and bind it to all future calls
2865
- * const authClient = await auth.getClient();
2866
- * google.options({auth: authClient});
2867
- *
2868
- * // Do the magic
2869
- * const res = await tagmanager.accounts.containers.tags.delete({
2870
- * // The GTM Account ID.
2871
- * accountId: 'placeholder-value',
2872
- * // The GTM Container ID.
2873
- * containerId: 'placeholder-value',
2874
- * // The GTM Tag ID.
2875
- * tagId: 'placeholder-value',
2876
- * });
2877
- * console.log(res.data);
2878
- * }
2879
- *
2880
- * main().catch(e => {
2881
- * console.error(e);
2882
- * throw e;
2883
- * });
2884
- *
2885
- * ```
2886
1566
  *
2887
1567
  * @param params - Parameters for request
2888
1568
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2897,75 +1577,6 @@ export declare namespace tagmanager_v1 {
2897
1577
  delete(callback: BodyResponseCallback<void>): void;
2898
1578
  /**
2899
1579
  * Gets a GTM Tag.
2900
- * @example
2901
- * ```js
2902
- * // Before running the sample:
2903
- * // - Enable the API at:
2904
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2905
- * // - Login into gcloud by running:
2906
- * // `$ gcloud auth application-default login`
2907
- * // - Install the npm module by running:
2908
- * // `$ npm install googleapis`
2909
- *
2910
- * const {google} = require('googleapis');
2911
- * const tagmanager = google.tagmanager('v1');
2912
- *
2913
- * async function main() {
2914
- * const auth = new google.auth.GoogleAuth({
2915
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2916
- * scopes: [
2917
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
2918
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
2919
- * ],
2920
- * });
2921
- *
2922
- * // Acquire an auth client, and bind it to all future calls
2923
- * const authClient = await auth.getClient();
2924
- * google.options({auth: authClient});
2925
- *
2926
- * // Do the magic
2927
- * const res = await tagmanager.accounts.containers.tags.get({
2928
- * // The GTM Account ID.
2929
- * accountId: 'placeholder-value',
2930
- * // The GTM Container ID.
2931
- * containerId: 'placeholder-value',
2932
- * // The GTM Tag ID.
2933
- * tagId: 'placeholder-value',
2934
- * });
2935
- * console.log(res.data);
2936
- *
2937
- * // Example response
2938
- * // {
2939
- * // "accountId": "my_accountId",
2940
- * // "blockingRuleId": [],
2941
- * // "blockingTriggerId": [],
2942
- * // "containerId": "my_containerId",
2943
- * // "fingerprint": "my_fingerprint",
2944
- * // "firingRuleId": [],
2945
- * // "firingTriggerId": [],
2946
- * // "liveOnly": false,
2947
- * // "name": "my_name",
2948
- * // "notes": "my_notes",
2949
- * // "parameter": [],
2950
- * // "parentFolderId": "my_parentFolderId",
2951
- * // "paused": false,
2952
- * // "priority": {},
2953
- * // "scheduleEndMs": "my_scheduleEndMs",
2954
- * // "scheduleStartMs": "my_scheduleStartMs",
2955
- * // "setupTag": [],
2956
- * // "tagFiringOption": "my_tagFiringOption",
2957
- * // "tagId": "my_tagId",
2958
- * // "teardownTag": [],
2959
- * // "type": "my_type"
2960
- * // }
2961
- * }
2962
- *
2963
- * main().catch(e => {
2964
- * console.error(e);
2965
- * throw e;
2966
- * });
2967
- *
2968
- * ```
2969
1580
  *
2970
1581
  * @param params - Parameters for request
2971
1582
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2980,53 +1591,6 @@ export declare namespace tagmanager_v1 {
2980
1591
  get(callback: BodyResponseCallback<Schema$Tag>): void;
2981
1592
  /**
2982
1593
  * Lists all GTM Tags of a Container.
2983
- * @example
2984
- * ```js
2985
- * // Before running the sample:
2986
- * // - Enable the API at:
2987
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
2988
- * // - Login into gcloud by running:
2989
- * // `$ gcloud auth application-default login`
2990
- * // - Install the npm module by running:
2991
- * // `$ npm install googleapis`
2992
- *
2993
- * const {google} = require('googleapis');
2994
- * const tagmanager = google.tagmanager('v1');
2995
- *
2996
- * async function main() {
2997
- * const auth = new google.auth.GoogleAuth({
2998
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2999
- * scopes: [
3000
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
3001
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
3002
- * ],
3003
- * });
3004
- *
3005
- * // Acquire an auth client, and bind it to all future calls
3006
- * const authClient = await auth.getClient();
3007
- * google.options({auth: authClient});
3008
- *
3009
- * // Do the magic
3010
- * const res = await tagmanager.accounts.containers.tags.list({
3011
- * // The GTM Account ID.
3012
- * accountId: 'placeholder-value',
3013
- * // The GTM Container ID.
3014
- * containerId: 'placeholder-value',
3015
- * });
3016
- * console.log(res.data);
3017
- *
3018
- * // Example response
3019
- * // {
3020
- * // "tags": []
3021
- * // }
3022
- * }
3023
- *
3024
- * main().catch(e => {
3025
- * console.error(e);
3026
- * throw e;
3027
- * });
3028
- *
3029
- * ```
3030
1594
  *
3031
1595
  * @param params - Parameters for request
3032
1596
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3041,102 +1605,6 @@ export declare namespace tagmanager_v1 {
3041
1605
  list(callback: BodyResponseCallback<Schema$ListTagsResponse>): void;
3042
1606
  /**
3043
1607
  * Updates a GTM Tag.
3044
- * @example
3045
- * ```js
3046
- * // Before running the sample:
3047
- * // - Enable the API at:
3048
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3049
- * // - Login into gcloud by running:
3050
- * // `$ gcloud auth application-default login`
3051
- * // - Install the npm module by running:
3052
- * // `$ npm install googleapis`
3053
- *
3054
- * const {google} = require('googleapis');
3055
- * const tagmanager = google.tagmanager('v1');
3056
- *
3057
- * async function main() {
3058
- * const auth = new google.auth.GoogleAuth({
3059
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3060
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3061
- * });
3062
- *
3063
- * // Acquire an auth client, and bind it to all future calls
3064
- * const authClient = await auth.getClient();
3065
- * google.options({auth: authClient});
3066
- *
3067
- * // Do the magic
3068
- * const res = await tagmanager.accounts.containers.tags.update({
3069
- * // The GTM Account ID.
3070
- * accountId: 'placeholder-value',
3071
- * // The GTM Container ID.
3072
- * containerId: 'placeholder-value',
3073
- * // When provided, this fingerprint must match the fingerprint of the tag in storage.
3074
- * fingerprint: 'placeholder-value',
3075
- * // The GTM Tag ID.
3076
- * tagId: 'placeholder-value',
3077
- *
3078
- * // Request body metadata
3079
- * requestBody: {
3080
- * // request body parameters
3081
- * // {
3082
- * // "accountId": "my_accountId",
3083
- * // "blockingRuleId": [],
3084
- * // "blockingTriggerId": [],
3085
- * // "containerId": "my_containerId",
3086
- * // "fingerprint": "my_fingerprint",
3087
- * // "firingRuleId": [],
3088
- * // "firingTriggerId": [],
3089
- * // "liveOnly": false,
3090
- * // "name": "my_name",
3091
- * // "notes": "my_notes",
3092
- * // "parameter": [],
3093
- * // "parentFolderId": "my_parentFolderId",
3094
- * // "paused": false,
3095
- * // "priority": {},
3096
- * // "scheduleEndMs": "my_scheduleEndMs",
3097
- * // "scheduleStartMs": "my_scheduleStartMs",
3098
- * // "setupTag": [],
3099
- * // "tagFiringOption": "my_tagFiringOption",
3100
- * // "tagId": "my_tagId",
3101
- * // "teardownTag": [],
3102
- * // "type": "my_type"
3103
- * // }
3104
- * },
3105
- * });
3106
- * console.log(res.data);
3107
- *
3108
- * // Example response
3109
- * // {
3110
- * // "accountId": "my_accountId",
3111
- * // "blockingRuleId": [],
3112
- * // "blockingTriggerId": [],
3113
- * // "containerId": "my_containerId",
3114
- * // "fingerprint": "my_fingerprint",
3115
- * // "firingRuleId": [],
3116
- * // "firingTriggerId": [],
3117
- * // "liveOnly": false,
3118
- * // "name": "my_name",
3119
- * // "notes": "my_notes",
3120
- * // "parameter": [],
3121
- * // "parentFolderId": "my_parentFolderId",
3122
- * // "paused": false,
3123
- * // "priority": {},
3124
- * // "scheduleEndMs": "my_scheduleEndMs",
3125
- * // "scheduleStartMs": "my_scheduleStartMs",
3126
- * // "setupTag": [],
3127
- * // "tagFiringOption": "my_tagFiringOption",
3128
- * // "tagId": "my_tagId",
3129
- * // "teardownTag": [],
3130
- * // "type": "my_type"
3131
- * // }
3132
- * }
3133
- *
3134
- * main().catch(e => {
3135
- * console.error(e);
3136
- * throw e;
3137
- * });
3138
- *
3139
- * ```
3140
1608
  *
3141
1609
  * @param params - Parameters for request
3142
1610
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3229,112 +1697,6 @@ export declare namespace tagmanager_v1 {
3229
1697
  constructor(context: APIRequestContext);
3230
1698
  /**
3231
1699
  * Creates a GTM Trigger.
3232
- * @example
3233
- * ```js
3234
- * // Before running the sample:
3235
- * // - Enable the API at:
3236
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3237
- * // - Login into gcloud by running:
3238
- * // `$ gcloud auth application-default login`
3239
- * // - Install the npm module by running:
3240
- * // `$ npm install googleapis`
3241
- *
3242
- * const {google} = require('googleapis');
3243
- * const tagmanager = google.tagmanager('v1');
3244
- *
3245
- * async function main() {
3246
- * const auth = new google.auth.GoogleAuth({
3247
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3248
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3249
- * });
3250
- *
3251
- * // Acquire an auth client, and bind it to all future calls
3252
- * const authClient = await auth.getClient();
3253
- * google.options({auth: authClient});
3254
- *
3255
- * // Do the magic
3256
- * const res = await tagmanager.accounts.containers.triggers.create({
3257
- * // The GTM Account ID.
3258
- * accountId: 'placeholder-value',
3259
- * // The GTM Container ID.
3260
- * containerId: 'placeholder-value',
3261
- *
3262
- * // Request body metadata
3263
- * requestBody: {
3264
- * // request body parameters
3265
- * // {
3266
- * // "accountId": "my_accountId",
3267
- * // "autoEventFilter": [],
3268
- * // "checkValidation": {},
3269
- * // "containerId": "my_containerId",
3270
- * // "continuousTimeMinMilliseconds": {},
3271
- * // "customEventFilter": [],
3272
- * // "eventName": {},
3273
- * // "filter": [],
3274
- * // "fingerprint": "my_fingerprint",
3275
- * // "horizontalScrollPercentageList": {},
3276
- * // "interval": {},
3277
- * // "intervalSeconds": {},
3278
- * // "limit": {},
3279
- * // "maxTimerLengthSeconds": {},
3280
- * // "name": "my_name",
3281
- * // "parameter": [],
3282
- * // "parentFolderId": "my_parentFolderId",
3283
- * // "selector": {},
3284
- * // "totalTimeMinMilliseconds": {},
3285
- * // "triggerId": "my_triggerId",
3286
- * // "type": "my_type",
3287
- * // "uniqueTriggerId": {},
3288
- * // "verticalScrollPercentageList": {},
3289
- * // "visibilitySelector": {},
3290
- * // "visiblePercentageMax": {},
3291
- * // "visiblePercentageMin": {},
3292
- * // "waitForTags": {},
3293
- * // "waitForTagsTimeout": {}
3294
- * // }
3295
- * },
3296
- * });
3297
- * console.log(res.data);
3298
- *
3299
- * // Example response
3300
- * // {
3301
- * // "accountId": "my_accountId",
3302
- * // "autoEventFilter": [],
3303
- * // "checkValidation": {},
3304
- * // "containerId": "my_containerId",
3305
- * // "continuousTimeMinMilliseconds": {},
3306
- * // "customEventFilter": [],
3307
- * // "eventName": {},
3308
- * // "filter": [],
3309
- * // "fingerprint": "my_fingerprint",
3310
- * // "horizontalScrollPercentageList": {},
3311
- * // "interval": {},
3312
- * // "intervalSeconds": {},
3313
- * // "limit": {},
3314
- * // "maxTimerLengthSeconds": {},
3315
- * // "name": "my_name",
3316
- * // "parameter": [],
3317
- * // "parentFolderId": "my_parentFolderId",
3318
- * // "selector": {},
3319
- * // "totalTimeMinMilliseconds": {},
3320
- * // "triggerId": "my_triggerId",
3321
- * // "type": "my_type",
3322
- * // "uniqueTriggerId": {},
3323
- * // "verticalScrollPercentageList": {},
3324
- * // "visibilitySelector": {},
3325
- * // "visiblePercentageMax": {},
3326
- * // "visiblePercentageMin": {},
3327
- * // "waitForTags": {},
3328
- * // "waitForTagsTimeout": {}
3329
- * // }
3330
- * }
3331
- *
3332
- * main().catch(e => {
3333
- * console.error(e);
3334
- * throw e;
3335
- * });
3336
- *
3337
- * ```
3338
1700
  *
3339
1701
  * @param params - Parameters for request
3340
1702
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3349,47 +1711,6 @@ export declare namespace tagmanager_v1 {
3349
1711
  create(callback: BodyResponseCallback<Schema$Trigger>): void;
3350
1712
  /**
3351
1713
  * Deletes a GTM Trigger.
3352
- * @example
3353
- * ```js
3354
- * // Before running the sample:
3355
- * // - Enable the API at:
3356
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3357
- * // - Login into gcloud by running:
3358
- * // `$ gcloud auth application-default login`
3359
- * // - Install the npm module by running:
3360
- * // `$ npm install googleapis`
3361
- *
3362
- * const {google} = require('googleapis');
3363
- * const tagmanager = google.tagmanager('v1');
3364
- *
3365
- * async function main() {
3366
- * const auth = new google.auth.GoogleAuth({
3367
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3368
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3369
- * });
3370
- *
3371
- * // Acquire an auth client, and bind it to all future calls
3372
- * const authClient = await auth.getClient();
3373
- * google.options({auth: authClient});
3374
- *
3375
- * // Do the magic
3376
- * const res = await tagmanager.accounts.containers.triggers.delete({
3377
- * // The GTM Account ID.
3378
- * accountId: 'placeholder-value',
3379
- * // The GTM Container ID.
3380
- * containerId: 'placeholder-value',
3381
- * // The GTM Trigger ID.
3382
- * triggerId: 'placeholder-value',
3383
- * });
3384
- * console.log(res.data);
3385
- * }
3386
- *
3387
- * main().catch(e => {
3388
- * console.error(e);
3389
- * throw e;
3390
- * });
3391
- *
3392
- * ```
3393
1714
  *
3394
1715
  * @param params - Parameters for request
3395
1716
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3404,82 +1725,6 @@ export declare namespace tagmanager_v1 {
3404
1725
  delete(callback: BodyResponseCallback<void>): void;
3405
1726
  /**
3406
1727
  * Gets a GTM Trigger.
3407
- * @example
3408
- * ```js
3409
- * // Before running the sample:
3410
- * // - Enable the API at:
3411
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3412
- * // - Login into gcloud by running:
3413
- * // `$ gcloud auth application-default login`
3414
- * // - Install the npm module by running:
3415
- * // `$ npm install googleapis`
3416
- *
3417
- * const {google} = require('googleapis');
3418
- * const tagmanager = google.tagmanager('v1');
3419
- *
3420
- * async function main() {
3421
- * const auth = new google.auth.GoogleAuth({
3422
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3423
- * scopes: [
3424
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
3425
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
3426
- * ],
3427
- * });
3428
- *
3429
- * // Acquire an auth client, and bind it to all future calls
3430
- * const authClient = await auth.getClient();
3431
- * google.options({auth: authClient});
3432
- *
3433
- * // Do the magic
3434
- * const res = await tagmanager.accounts.containers.triggers.get({
3435
- * // The GTM Account ID.
3436
- * accountId: 'placeholder-value',
3437
- * // The GTM Container ID.
3438
- * containerId: 'placeholder-value',
3439
- * // The GTM Trigger ID.
3440
- * triggerId: 'placeholder-value',
3441
- * });
3442
- * console.log(res.data);
3443
- *
3444
- * // Example response
3445
- * // {
3446
- * // "accountId": "my_accountId",
3447
- * // "autoEventFilter": [],
3448
- * // "checkValidation": {},
3449
- * // "containerId": "my_containerId",
3450
- * // "continuousTimeMinMilliseconds": {},
3451
- * // "customEventFilter": [],
3452
- * // "eventName": {},
3453
- * // "filter": [],
3454
- * // "fingerprint": "my_fingerprint",
3455
- * // "horizontalScrollPercentageList": {},
3456
- * // "interval": {},
3457
- * // "intervalSeconds": {},
3458
- * // "limit": {},
3459
- * // "maxTimerLengthSeconds": {},
3460
- * // "name": "my_name",
3461
- * // "parameter": [],
3462
- * // "parentFolderId": "my_parentFolderId",
3463
- * // "selector": {},
3464
- * // "totalTimeMinMilliseconds": {},
3465
- * // "triggerId": "my_triggerId",
3466
- * // "type": "my_type",
3467
- * // "uniqueTriggerId": {},
3468
- * // "verticalScrollPercentageList": {},
3469
- * // "visibilitySelector": {},
3470
- * // "visiblePercentageMax": {},
3471
- * // "visiblePercentageMin": {},
3472
- * // "waitForTags": {},
3473
- * // "waitForTagsTimeout": {}
3474
- * // }
3475
- * }
3476
- *
3477
- * main().catch(e => {
3478
- * console.error(e);
3479
- * throw e;
3480
- * });
3481
- *
3482
- * ```
3483
1728
  *
3484
1729
  * @param params - Parameters for request
3485
1730
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3494,53 +1739,6 @@ export declare namespace tagmanager_v1 {
3494
1739
  get(callback: BodyResponseCallback<Schema$Trigger>): void;
3495
1740
  /**
3496
1741
  * Lists all GTM Triggers of a Container.
3497
- * @example
3498
- * ```js
3499
- * // Before running the sample:
3500
- * // - Enable the API at:
3501
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3502
- * // - Login into gcloud by running:
3503
- * // `$ gcloud auth application-default login`
3504
- * // - Install the npm module by running:
3505
- * // `$ npm install googleapis`
3506
- *
3507
- * const {google} = require('googleapis');
3508
- * const tagmanager = google.tagmanager('v1');
3509
- *
3510
- * async function main() {
3511
- * const auth = new google.auth.GoogleAuth({
3512
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3513
- * scopes: [
3514
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
3515
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
3516
- * ],
3517
- * });
3518
- *
3519
- * // Acquire an auth client, and bind it to all future calls
3520
- * const authClient = await auth.getClient();
3521
- * google.options({auth: authClient});
3522
- *
3523
- * // Do the magic
3524
- * const res = await tagmanager.accounts.containers.triggers.list({
3525
- * // The GTM Account ID.
3526
- * accountId: 'placeholder-value',
3527
- * // The GTM Container ID.
3528
- * containerId: 'placeholder-value',
3529
- * });
3530
- * console.log(res.data);
3531
- *
3532
- * // Example response
3533
- * // {
3534
- * // "triggers": []
3535
- * // }
3536
- * }
3537
- *
3538
- * main().catch(e => {
3539
- * console.error(e);
3540
- * throw e;
3541
- * });
3542
- *
3543
- * ```
3544
1742
  *
3545
1743
  * @param params - Parameters for request
3546
1744
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3555,116 +1753,6 @@ export declare namespace tagmanager_v1 {
3555
1753
  list(callback: BodyResponseCallback<Schema$ListTriggersResponse>): void;
3556
1754
  /**
3557
1755
  * Updates a GTM Trigger.
3558
- * @example
3559
- * ```js
3560
- * // Before running the sample:
3561
- * // - Enable the API at:
3562
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3563
- * // - Login into gcloud by running:
3564
- * // `$ gcloud auth application-default login`
3565
- * // - Install the npm module by running:
3566
- * // `$ npm install googleapis`
3567
- *
3568
- * const {google} = require('googleapis');
3569
- * const tagmanager = google.tagmanager('v1');
3570
- *
3571
- * async function main() {
3572
- * const auth = new google.auth.GoogleAuth({
3573
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3574
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3575
- * });
3576
- *
3577
- * // Acquire an auth client, and bind it to all future calls
3578
- * const authClient = await auth.getClient();
3579
- * google.options({auth: authClient});
3580
- *
3581
- * // Do the magic
3582
- * const res = await tagmanager.accounts.containers.triggers.update({
3583
- * // The GTM Account ID.
3584
- * accountId: 'placeholder-value',
3585
- * // The GTM Container ID.
3586
- * containerId: 'placeholder-value',
3587
- * // When provided, this fingerprint must match the fingerprint of the trigger in storage.
3588
- * fingerprint: 'placeholder-value',
3589
- * // The GTM Trigger ID.
3590
- * triggerId: 'placeholder-value',
3591
- *
3592
- * // Request body metadata
3593
- * requestBody: {
3594
- * // request body parameters
3595
- * // {
3596
- * // "accountId": "my_accountId",
3597
- * // "autoEventFilter": [],
3598
- * // "checkValidation": {},
3599
- * // "containerId": "my_containerId",
3600
- * // "continuousTimeMinMilliseconds": {},
3601
- * // "customEventFilter": [],
3602
- * // "eventName": {},
3603
- * // "filter": [],
3604
- * // "fingerprint": "my_fingerprint",
3605
- * // "horizontalScrollPercentageList": {},
3606
- * // "interval": {},
3607
- * // "intervalSeconds": {},
3608
- * // "limit": {},
3609
- * // "maxTimerLengthSeconds": {},
3610
- * // "name": "my_name",
3611
- * // "parameter": [],
3612
- * // "parentFolderId": "my_parentFolderId",
3613
- * // "selector": {},
3614
- * // "totalTimeMinMilliseconds": {},
3615
- * // "triggerId": "my_triggerId",
3616
- * // "type": "my_type",
3617
- * // "uniqueTriggerId": {},
3618
- * // "verticalScrollPercentageList": {},
3619
- * // "visibilitySelector": {},
3620
- * // "visiblePercentageMax": {},
3621
- * // "visiblePercentageMin": {},
3622
- * // "waitForTags": {},
3623
- * // "waitForTagsTimeout": {}
3624
- * // }
3625
- * },
3626
- * });
3627
- * console.log(res.data);
3628
- *
3629
- * // Example response
3630
- * // {
3631
- * // "accountId": "my_accountId",
3632
- * // "autoEventFilter": [],
3633
- * // "checkValidation": {},
3634
- * // "containerId": "my_containerId",
3635
- * // "continuousTimeMinMilliseconds": {},
3636
- * // "customEventFilter": [],
3637
- * // "eventName": {},
3638
- * // "filter": [],
3639
- * // "fingerprint": "my_fingerprint",
3640
- * // "horizontalScrollPercentageList": {},
3641
- * // "interval": {},
3642
- * // "intervalSeconds": {},
3643
- * // "limit": {},
3644
- * // "maxTimerLengthSeconds": {},
3645
- * // "name": "my_name",
3646
- * // "parameter": [],
3647
- * // "parentFolderId": "my_parentFolderId",
3648
- * // "selector": {},
3649
- * // "totalTimeMinMilliseconds": {},
3650
- * // "triggerId": "my_triggerId",
3651
- * // "type": "my_type",
3652
- * // "uniqueTriggerId": {},
3653
- * // "verticalScrollPercentageList": {},
3654
- * // "visibilitySelector": {},
3655
- * // "visiblePercentageMax": {},
3656
- * // "visiblePercentageMin": {},
3657
- * // "waitForTags": {},
3658
- * // "waitForTagsTimeout": {}
3659
- * // }
3660
- * }
3661
- *
3662
- * main().catch(e => {
3663
- * console.error(e);
3664
- * throw e;
3665
- * });
3666
- *
3667
- * ```
3668
1756
  *
3669
1757
  * @param params - Parameters for request
3670
1758
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3757,82 +1845,6 @@ export declare namespace tagmanager_v1 {
3757
1845
  constructor(context: APIRequestContext);
3758
1846
  /**
3759
1847
  * Creates a GTM Variable.
3760
- * @example
3761
- * ```js
3762
- * // Before running the sample:
3763
- * // - Enable the API at:
3764
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3765
- * // - Login into gcloud by running:
3766
- * // `$ gcloud auth application-default login`
3767
- * // - Install the npm module by running:
3768
- * // `$ npm install googleapis`
3769
- *
3770
- * const {google} = require('googleapis');
3771
- * const tagmanager = google.tagmanager('v1');
3772
- *
3773
- * async function main() {
3774
- * const auth = new google.auth.GoogleAuth({
3775
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3776
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3777
- * });
3778
- *
3779
- * // Acquire an auth client, and bind it to all future calls
3780
- * const authClient = await auth.getClient();
3781
- * google.options({auth: authClient});
3782
- *
3783
- * // Do the magic
3784
- * const res = await tagmanager.accounts.containers.variables.create({
3785
- * // The GTM Account ID.
3786
- * accountId: 'placeholder-value',
3787
- * // The GTM Container ID.
3788
- * containerId: 'placeholder-value',
3789
- *
3790
- * // Request body metadata
3791
- * requestBody: {
3792
- * // request body parameters
3793
- * // {
3794
- * // "accountId": "my_accountId",
3795
- * // "containerId": "my_containerId",
3796
- * // "disablingTriggerId": [],
3797
- * // "enablingTriggerId": [],
3798
- * // "fingerprint": "my_fingerprint",
3799
- * // "name": "my_name",
3800
- * // "notes": "my_notes",
3801
- * // "parameter": [],
3802
- * // "parentFolderId": "my_parentFolderId",
3803
- * // "scheduleEndMs": "my_scheduleEndMs",
3804
- * // "scheduleStartMs": "my_scheduleStartMs",
3805
- * // "type": "my_type",
3806
- * // "variableId": "my_variableId"
3807
- * // }
3808
- * },
3809
- * });
3810
- * console.log(res.data);
3811
- *
3812
- * // Example response
3813
- * // {
3814
- * // "accountId": "my_accountId",
3815
- * // "containerId": "my_containerId",
3816
- * // "disablingTriggerId": [],
3817
- * // "enablingTriggerId": [],
3818
- * // "fingerprint": "my_fingerprint",
3819
- * // "name": "my_name",
3820
- * // "notes": "my_notes",
3821
- * // "parameter": [],
3822
- * // "parentFolderId": "my_parentFolderId",
3823
- * // "scheduleEndMs": "my_scheduleEndMs",
3824
- * // "scheduleStartMs": "my_scheduleStartMs",
3825
- * // "type": "my_type",
3826
- * // "variableId": "my_variableId"
3827
- * // }
3828
- * }
3829
- *
3830
- * main().catch(e => {
3831
- * console.error(e);
3832
- * throw e;
3833
- * });
3834
- *
3835
- * ```
3836
1848
  *
3837
1849
  * @param params - Parameters for request
3838
1850
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3847,47 +1859,6 @@ export declare namespace tagmanager_v1 {
3847
1859
  create(callback: BodyResponseCallback<Schema$Variable>): void;
3848
1860
  /**
3849
1861
  * Deletes a GTM Variable.
3850
- * @example
3851
- * ```js
3852
- * // Before running the sample:
3853
- * // - Enable the API at:
3854
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3855
- * // - Login into gcloud by running:
3856
- * // `$ gcloud auth application-default login`
3857
- * // - Install the npm module by running:
3858
- * // `$ npm install googleapis`
3859
- *
3860
- * const {google} = require('googleapis');
3861
- * const tagmanager = google.tagmanager('v1');
3862
- *
3863
- * async function main() {
3864
- * const auth = new google.auth.GoogleAuth({
3865
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3866
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
3867
- * });
3868
- *
3869
- * // Acquire an auth client, and bind it to all future calls
3870
- * const authClient = await auth.getClient();
3871
- * google.options({auth: authClient});
3872
- *
3873
- * // Do the magic
3874
- * const res = await tagmanager.accounts.containers.variables.delete({
3875
- * // The GTM Account ID.
3876
- * accountId: 'placeholder-value',
3877
- * // The GTM Container ID.
3878
- * containerId: 'placeholder-value',
3879
- * // The GTM Variable ID.
3880
- * variableId: 'placeholder-value',
3881
- * });
3882
- * console.log(res.data);
3883
- * }
3884
- *
3885
- * main().catch(e => {
3886
- * console.error(e);
3887
- * throw e;
3888
- * });
3889
- *
3890
- * ```
3891
1862
  *
3892
1863
  * @param params - Parameters for request
3893
1864
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3902,67 +1873,6 @@ export declare namespace tagmanager_v1 {
3902
1873
  delete(callback: BodyResponseCallback<void>): void;
3903
1874
  /**
3904
1875
  * Gets a GTM Variable.
3905
- * @example
3906
- * ```js
3907
- * // Before running the sample:
3908
- * // - Enable the API at:
3909
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3910
- * // - Login into gcloud by running:
3911
- * // `$ gcloud auth application-default login`
3912
- * // - Install the npm module by running:
3913
- * // `$ npm install googleapis`
3914
- *
3915
- * const {google} = require('googleapis');
3916
- * const tagmanager = google.tagmanager('v1');
3917
- *
3918
- * async function main() {
3919
- * const auth = new google.auth.GoogleAuth({
3920
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3921
- * scopes: [
3922
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
3923
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
3924
- * ],
3925
- * });
3926
- *
3927
- * // Acquire an auth client, and bind it to all future calls
3928
- * const authClient = await auth.getClient();
3929
- * google.options({auth: authClient});
3930
- *
3931
- * // Do the magic
3932
- * const res = await tagmanager.accounts.containers.variables.get({
3933
- * // The GTM Account ID.
3934
- * accountId: 'placeholder-value',
3935
- * // The GTM Container ID.
3936
- * containerId: 'placeholder-value',
3937
- * // The GTM Variable ID.
3938
- * variableId: 'placeholder-value',
3939
- * });
3940
- * console.log(res.data);
3941
- *
3942
- * // Example response
3943
- * // {
3944
- * // "accountId": "my_accountId",
3945
- * // "containerId": "my_containerId",
3946
- * // "disablingTriggerId": [],
3947
- * // "enablingTriggerId": [],
3948
- * // "fingerprint": "my_fingerprint",
3949
- * // "name": "my_name",
3950
- * // "notes": "my_notes",
3951
- * // "parameter": [],
3952
- * // "parentFolderId": "my_parentFolderId",
3953
- * // "scheduleEndMs": "my_scheduleEndMs",
3954
- * // "scheduleStartMs": "my_scheduleStartMs",
3955
- * // "type": "my_type",
3956
- * // "variableId": "my_variableId"
3957
- * // }
3958
- * }
3959
- *
3960
- * main().catch(e => {
3961
- * console.error(e);
3962
- * throw e;
3963
- * });
3964
- *
3965
- * ```
3966
1876
  *
3967
1877
  * @param params - Parameters for request
3968
1878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3977,53 +1887,6 @@ export declare namespace tagmanager_v1 {
3977
1887
  get(callback: BodyResponseCallback<Schema$Variable>): void;
3978
1888
  /**
3979
1889
  * Lists all GTM Variables of a Container.
3980
- * @example
3981
- * ```js
3982
- * // Before running the sample:
3983
- * // - Enable the API at:
3984
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
3985
- * // - Login into gcloud by running:
3986
- * // `$ gcloud auth application-default login`
3987
- * // - Install the npm module by running:
3988
- * // `$ npm install googleapis`
3989
- *
3990
- * const {google} = require('googleapis');
3991
- * const tagmanager = google.tagmanager('v1');
3992
- *
3993
- * async function main() {
3994
- * const auth = new google.auth.GoogleAuth({
3995
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3996
- * scopes: [
3997
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
3998
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
3999
- * ],
4000
- * });
4001
- *
4002
- * // Acquire an auth client, and bind it to all future calls
4003
- * const authClient = await auth.getClient();
4004
- * google.options({auth: authClient});
4005
- *
4006
- * // Do the magic
4007
- * const res = await tagmanager.accounts.containers.variables.list({
4008
- * // The GTM Account ID.
4009
- * accountId: 'placeholder-value',
4010
- * // The GTM Container ID.
4011
- * containerId: 'placeholder-value',
4012
- * });
4013
- * console.log(res.data);
4014
- *
4015
- * // Example response
4016
- * // {
4017
- * // "variables": []
4018
- * // }
4019
- * }
4020
- *
4021
- * main().catch(e => {
4022
- * console.error(e);
4023
- * throw e;
4024
- * });
4025
- *
4026
- * ```
4027
1890
  *
4028
1891
  * @param params - Parameters for request
4029
1892
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4038,86 +1901,6 @@ export declare namespace tagmanager_v1 {
4038
1901
  list(callback: BodyResponseCallback<Schema$ListVariablesResponse>): void;
4039
1902
  /**
4040
1903
  * Updates a GTM Variable.
4041
- * @example
4042
- * ```js
4043
- * // Before running the sample:
4044
- * // - Enable the API at:
4045
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4046
- * // - Login into gcloud by running:
4047
- * // `$ gcloud auth application-default login`
4048
- * // - Install the npm module by running:
4049
- * // `$ npm install googleapis`
4050
- *
4051
- * const {google} = require('googleapis');
4052
- * const tagmanager = google.tagmanager('v1');
4053
- *
4054
- * async function main() {
4055
- * const auth = new google.auth.GoogleAuth({
4056
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4057
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
4058
- * });
4059
- *
4060
- * // Acquire an auth client, and bind it to all future calls
4061
- * const authClient = await auth.getClient();
4062
- * google.options({auth: authClient});
4063
- *
4064
- * // Do the magic
4065
- * const res = await tagmanager.accounts.containers.variables.update({
4066
- * // The GTM Account ID.
4067
- * accountId: 'placeholder-value',
4068
- * // The GTM Container ID.
4069
- * containerId: 'placeholder-value',
4070
- * // When provided, this fingerprint must match the fingerprint of the variable in storage.
4071
- * fingerprint: 'placeholder-value',
4072
- * // The GTM Variable ID.
4073
- * variableId: 'placeholder-value',
4074
- *
4075
- * // Request body metadata
4076
- * requestBody: {
4077
- * // request body parameters
4078
- * // {
4079
- * // "accountId": "my_accountId",
4080
- * // "containerId": "my_containerId",
4081
- * // "disablingTriggerId": [],
4082
- * // "enablingTriggerId": [],
4083
- * // "fingerprint": "my_fingerprint",
4084
- * // "name": "my_name",
4085
- * // "notes": "my_notes",
4086
- * // "parameter": [],
4087
- * // "parentFolderId": "my_parentFolderId",
4088
- * // "scheduleEndMs": "my_scheduleEndMs",
4089
- * // "scheduleStartMs": "my_scheduleStartMs",
4090
- * // "type": "my_type",
4091
- * // "variableId": "my_variableId"
4092
- * // }
4093
- * },
4094
- * });
4095
- * console.log(res.data);
4096
- *
4097
- * // Example response
4098
- * // {
4099
- * // "accountId": "my_accountId",
4100
- * // "containerId": "my_containerId",
4101
- * // "disablingTriggerId": [],
4102
- * // "enablingTriggerId": [],
4103
- * // "fingerprint": "my_fingerprint",
4104
- * // "name": "my_name",
4105
- * // "notes": "my_notes",
4106
- * // "parameter": [],
4107
- * // "parentFolderId": "my_parentFolderId",
4108
- * // "scheduleEndMs": "my_scheduleEndMs",
4109
- * // "scheduleStartMs": "my_scheduleStartMs",
4110
- * // "type": "my_type",
4111
- * // "variableId": "my_variableId"
4112
- * // }
4113
- * }
4114
- *
4115
- * main().catch(e => {
4116
- * console.error(e);
4117
- * throw e;
4118
- * });
4119
- *
4120
- * ```
4121
1904
  *
4122
1905
  * @param params - Parameters for request
4123
1906
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4210,63 +1993,6 @@ export declare namespace tagmanager_v1 {
4210
1993
  constructor(context: APIRequestContext);
4211
1994
  /**
4212
1995
  * Creates a Container Version.
4213
- * @example
4214
- * ```js
4215
- * // Before running the sample:
4216
- * // - Enable the API at:
4217
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4218
- * // - Login into gcloud by running:
4219
- * // `$ gcloud auth application-default login`
4220
- * // - Install the npm module by running:
4221
- * // `$ npm install googleapis`
4222
- *
4223
- * const {google} = require('googleapis');
4224
- * const tagmanager = google.tagmanager('v1');
4225
- *
4226
- * async function main() {
4227
- * const auth = new google.auth.GoogleAuth({
4228
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4229
- * scopes: [
4230
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4231
- * ],
4232
- * });
4233
- *
4234
- * // Acquire an auth client, and bind it to all future calls
4235
- * const authClient = await auth.getClient();
4236
- * google.options({auth: authClient});
4237
- *
4238
- * // Do the magic
4239
- * const res = await tagmanager.accounts.containers.versions.create({
4240
- * // The GTM Account ID.
4241
- * accountId: 'placeholder-value',
4242
- * // The GTM Container ID.
4243
- * containerId: 'placeholder-value',
4244
- *
4245
- * // Request body metadata
4246
- * requestBody: {
4247
- * // request body parameters
4248
- * // {
4249
- * // "name": "my_name",
4250
- * // "notes": "my_notes",
4251
- * // "quickPreview": false
4252
- * // }
4253
- * },
4254
- * });
4255
- * console.log(res.data);
4256
- *
4257
- * // Example response
4258
- * // {
4259
- * // "compilerError": false,
4260
- * // "containerVersion": {}
4261
- * // }
4262
- * }
4263
- *
4264
- * main().catch(e => {
4265
- * console.error(e);
4266
- * throw e;
4267
- * });
4268
- *
4269
- * ```
4270
1996
  *
4271
1997
  * @param params - Parameters for request
4272
1998
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4281,49 +2007,6 @@ export declare namespace tagmanager_v1 {
4281
2007
  create(callback: BodyResponseCallback<Schema$CreateContainerVersionResponse>): void;
4282
2008
  /**
4283
2009
  * Deletes a Container Version.
4284
- * @example
4285
- * ```js
4286
- * // Before running the sample:
4287
- * // - Enable the API at:
4288
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4289
- * // - Login into gcloud by running:
4290
- * // `$ gcloud auth application-default login`
4291
- * // - Install the npm module by running:
4292
- * // `$ npm install googleapis`
4293
- *
4294
- * const {google} = require('googleapis');
4295
- * const tagmanager = google.tagmanager('v1');
4296
- *
4297
- * async function main() {
4298
- * const auth = new google.auth.GoogleAuth({
4299
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4300
- * scopes: [
4301
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4302
- * ],
4303
- * });
4304
- *
4305
- * // Acquire an auth client, and bind it to all future calls
4306
- * const authClient = await auth.getClient();
4307
- * google.options({auth: authClient});
4308
- *
4309
- * // Do the magic
4310
- * const res = await tagmanager.accounts.containers.versions.delete({
4311
- * // The GTM Account ID.
4312
- * accountId: 'placeholder-value',
4313
- * // The GTM Container ID.
4314
- * containerId: 'placeholder-value',
4315
- * // The GTM Container Version ID.
4316
- * containerVersionId: 'placeholder-value',
4317
- * });
4318
- * console.log(res.data);
4319
- * }
4320
- *
4321
- * main().catch(e => {
4322
- * console.error(e);
4323
- * throw e;
4324
- * });
4325
- *
4326
- * ```
4327
2010
  *
4328
2011
  * @param params - Parameters for request
4329
2012
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4338,69 +2021,6 @@ export declare namespace tagmanager_v1 {
4338
2021
  delete(callback: BodyResponseCallback<void>): void;
4339
2022
  /**
4340
2023
  * Gets a Container Version.
4341
- * @example
4342
- * ```js
4343
- * // Before running the sample:
4344
- * // - Enable the API at:
4345
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4346
- * // - Login into gcloud by running:
4347
- * // `$ gcloud auth application-default login`
4348
- * // - Install the npm module by running:
4349
- * // `$ npm install googleapis`
4350
- *
4351
- * const {google} = require('googleapis');
4352
- * const tagmanager = google.tagmanager('v1');
4353
- *
4354
- * async function main() {
4355
- * const auth = new google.auth.GoogleAuth({
4356
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4357
- * scopes: [
4358
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
4359
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4360
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
4361
- * ],
4362
- * });
4363
- *
4364
- * // Acquire an auth client, and bind it to all future calls
4365
- * const authClient = await auth.getClient();
4366
- * google.options({auth: authClient});
4367
- *
4368
- * // Do the magic
4369
- * const res = await tagmanager.accounts.containers.versions.get({
4370
- * // The GTM Account ID.
4371
- * accountId: 'placeholder-value',
4372
- * // The GTM Container ID.
4373
- * containerId: 'placeholder-value',
4374
- * // The GTM Container Version ID. Specify published to retrieve the currently published version.
4375
- * containerVersionId: 'placeholder-value',
4376
- * });
4377
- * console.log(res.data);
4378
- *
4379
- * // Example response
4380
- * // {
4381
- * // "accountId": "my_accountId",
4382
- * // "container": {},
4383
- * // "containerId": "my_containerId",
4384
- * // "containerVersionId": "my_containerVersionId",
4385
- * // "deleted": false,
4386
- * // "fingerprint": "my_fingerprint",
4387
- * // "folder": [],
4388
- * // "macro": [],
4389
- * // "name": "my_name",
4390
- * // "notes": "my_notes",
4391
- * // "rule": [],
4392
- * // "tag": [],
4393
- * // "trigger": [],
4394
- * // "variable": []
4395
- * // }
4396
- * }
4397
- *
4398
- * main().catch(e => {
4399
- * console.error(e);
4400
- * throw e;
4401
- * });
4402
- *
4403
- * ```
4404
2024
  *
4405
2025
  * @param params - Parameters for request
4406
2026
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4415,59 +2035,6 @@ export declare namespace tagmanager_v1 {
4415
2035
  get(callback: BodyResponseCallback<Schema$ContainerVersion>): void;
4416
2036
  /**
4417
2037
  * Lists all Container Versions of a GTM Container.
4418
- * @example
4419
- * ```js
4420
- * // Before running the sample:
4421
- * // - Enable the API at:
4422
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4423
- * // - Login into gcloud by running:
4424
- * // `$ gcloud auth application-default login`
4425
- * // - Install the npm module by running:
4426
- * // `$ npm install googleapis`
4427
- *
4428
- * const {google} = require('googleapis');
4429
- * const tagmanager = google.tagmanager('v1');
4430
- *
4431
- * async function main() {
4432
- * const auth = new google.auth.GoogleAuth({
4433
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4434
- * scopes: [
4435
- * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
4436
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4437
- * 'https://www.googleapis.com/auth/tagmanager.readonly',
4438
- * ],
4439
- * });
4440
- *
4441
- * // Acquire an auth client, and bind it to all future calls
4442
- * const authClient = await auth.getClient();
4443
- * google.options({auth: authClient});
4444
- *
4445
- * // Do the magic
4446
- * const res = await tagmanager.accounts.containers.versions.list({
4447
- * // The GTM Account ID.
4448
- * accountId: 'placeholder-value',
4449
- * // The GTM Container ID.
4450
- * containerId: 'placeholder-value',
4451
- * // Retrieve headers only when true.
4452
- * headers: 'placeholder-value',
4453
- * // Also retrieve deleted (archived) versions when true.
4454
- * includeDeleted: 'placeholder-value',
4455
- * });
4456
- * console.log(res.data);
4457
- *
4458
- * // Example response
4459
- * // {
4460
- * // "containerVersion": [],
4461
- * // "containerVersionHeader": []
4462
- * // }
4463
- * }
4464
- *
4465
- * main().catch(e => {
4466
- * console.error(e);
4467
- * throw e;
4468
- * });
4469
- *
4470
- * ```
4471
2038
  *
4472
2039
  * @param params - Parameters for request
4473
2040
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4482,55 +2049,6 @@ export declare namespace tagmanager_v1 {
4482
2049
  list(callback: BodyResponseCallback<Schema$ListContainerVersionsResponse>): void;
4483
2050
  /**
4484
2051
  * Publishes a Container Version.
4485
- * @example
4486
- * ```js
4487
- * // Before running the sample:
4488
- * // - Enable the API at:
4489
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4490
- * // - Login into gcloud by running:
4491
- * // `$ gcloud auth application-default login`
4492
- * // - Install the npm module by running:
4493
- * // `$ npm install googleapis`
4494
- *
4495
- * const {google} = require('googleapis');
4496
- * const tagmanager = google.tagmanager('v1');
4497
- *
4498
- * async function main() {
4499
- * const auth = new google.auth.GoogleAuth({
4500
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4501
- * scopes: ['https://www.googleapis.com/auth/tagmanager.publish'],
4502
- * });
4503
- *
4504
- * // Acquire an auth client, and bind it to all future calls
4505
- * const authClient = await auth.getClient();
4506
- * google.options({auth: authClient});
4507
- *
4508
- * // Do the magic
4509
- * const res = await tagmanager.accounts.containers.versions.publish({
4510
- * // The GTM Account ID.
4511
- * accountId: 'placeholder-value',
4512
- * // The GTM Container ID.
4513
- * containerId: 'placeholder-value',
4514
- * // The GTM Container Version ID.
4515
- * containerVersionId: 'placeholder-value',
4516
- * // When provided, this fingerprint must match the fingerprint of the container version in storage.
4517
- * fingerprint: 'placeholder-value',
4518
- * });
4519
- * console.log(res.data);
4520
- *
4521
- * // Example response
4522
- * // {
4523
- * // "compilerError": false,
4524
- * // "containerVersion": {}
4525
- * // }
4526
- * }
4527
- *
4528
- * main().catch(e => {
4529
- * console.error(e);
4530
- * throw e;
4531
- * });
4532
- *
4533
- * ```
4534
2052
  *
4535
2053
  * @param params - Parameters for request
4536
2054
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4545,65 +2063,6 @@ export declare namespace tagmanager_v1 {
4545
2063
  publish(callback: BodyResponseCallback<Schema$PublishContainerVersionResponse>): void;
4546
2064
  /**
4547
2065
  * 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 version that is being served (i.e. the published version).
4548
- * @example
4549
- * ```js
4550
- * // Before running the sample:
4551
- * // - Enable the API at:
4552
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4553
- * // - Login into gcloud by running:
4554
- * // `$ gcloud auth application-default login`
4555
- * // - Install the npm module by running:
4556
- * // `$ npm install googleapis`
4557
- *
4558
- * const {google} = require('googleapis');
4559
- * const tagmanager = google.tagmanager('v1');
4560
- *
4561
- * async function main() {
4562
- * const auth = new google.auth.GoogleAuth({
4563
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4564
- * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
4565
- * });
4566
- *
4567
- * // Acquire an auth client, and bind it to all future calls
4568
- * const authClient = await auth.getClient();
4569
- * google.options({auth: authClient});
4570
- *
4571
- * // Do the magic
4572
- * const res = await tagmanager.accounts.containers.versions.restore({
4573
- * // The GTM Account ID.
4574
- * accountId: 'placeholder-value',
4575
- * // The GTM Container ID.
4576
- * containerId: 'placeholder-value',
4577
- * // The GTM Container Version ID.
4578
- * containerVersionId: 'placeholder-value',
4579
- * });
4580
- * console.log(res.data);
4581
- *
4582
- * // Example response
4583
- * // {
4584
- * // "accountId": "my_accountId",
4585
- * // "container": {},
4586
- * // "containerId": "my_containerId",
4587
- * // "containerVersionId": "my_containerVersionId",
4588
- * // "deleted": false,
4589
- * // "fingerprint": "my_fingerprint",
4590
- * // "folder": [],
4591
- * // "macro": [],
4592
- * // "name": "my_name",
4593
- * // "notes": "my_notes",
4594
- * // "rule": [],
4595
- * // "tag": [],
4596
- * // "trigger": [],
4597
- * // "variable": []
4598
- * // }
4599
- * }
4600
- *
4601
- * main().catch(e => {
4602
- * console.error(e);
4603
- * throw e;
4604
- * });
4605
- *
4606
- * ```
4607
2066
  *
4608
2067
  * @param params - Parameters for request
4609
2068
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4618,67 +2077,6 @@ export declare namespace tagmanager_v1 {
4618
2077
  restore(callback: BodyResponseCallback<Schema$ContainerVersion>): void;
4619
2078
  /**
4620
2079
  * Undeletes a Container Version.
4621
- * @example
4622
- * ```js
4623
- * // Before running the sample:
4624
- * // - Enable the API at:
4625
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4626
- * // - Login into gcloud by running:
4627
- * // `$ gcloud auth application-default login`
4628
- * // - Install the npm module by running:
4629
- * // `$ npm install googleapis`
4630
- *
4631
- * const {google} = require('googleapis');
4632
- * const tagmanager = google.tagmanager('v1');
4633
- *
4634
- * async function main() {
4635
- * const auth = new google.auth.GoogleAuth({
4636
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4637
- * scopes: [
4638
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4639
- * ],
4640
- * });
4641
- *
4642
- * // Acquire an auth client, and bind it to all future calls
4643
- * const authClient = await auth.getClient();
4644
- * google.options({auth: authClient});
4645
- *
4646
- * // Do the magic
4647
- * const res = await tagmanager.accounts.containers.versions.undelete({
4648
- * // The GTM Account ID.
4649
- * accountId: 'placeholder-value',
4650
- * // The GTM Container ID.
4651
- * containerId: 'placeholder-value',
4652
- * // The GTM Container Version ID.
4653
- * containerVersionId: 'placeholder-value',
4654
- * });
4655
- * console.log(res.data);
4656
- *
4657
- * // Example response
4658
- * // {
4659
- * // "accountId": "my_accountId",
4660
- * // "container": {},
4661
- * // "containerId": "my_containerId",
4662
- * // "containerVersionId": "my_containerVersionId",
4663
- * // "deleted": false,
4664
- * // "fingerprint": "my_fingerprint",
4665
- * // "folder": [],
4666
- * // "macro": [],
4667
- * // "name": "my_name",
4668
- * // "notes": "my_notes",
4669
- * // "rule": [],
4670
- * // "tag": [],
4671
- * // "trigger": [],
4672
- * // "variable": []
4673
- * // }
4674
- * }
4675
- *
4676
- * main().catch(e => {
4677
- * console.error(e);
4678
- * throw e;
4679
- * });
4680
- *
4681
- * ```
4682
2080
  *
4683
2081
  * @param params - Parameters for request
4684
2082
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4693,90 +2091,6 @@ export declare namespace tagmanager_v1 {
4693
2091
  undelete(callback: BodyResponseCallback<Schema$ContainerVersion>): void;
4694
2092
  /**
4695
2093
  * Updates a Container Version.
4696
- * @example
4697
- * ```js
4698
- * // Before running the sample:
4699
- * // - Enable the API at:
4700
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4701
- * // - Login into gcloud by running:
4702
- * // `$ gcloud auth application-default login`
4703
- * // - Install the npm module by running:
4704
- * // `$ npm install googleapis`
4705
- *
4706
- * const {google} = require('googleapis');
4707
- * const tagmanager = google.tagmanager('v1');
4708
- *
4709
- * async function main() {
4710
- * const auth = new google.auth.GoogleAuth({
4711
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4712
- * scopes: [
4713
- * 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
4714
- * ],
4715
- * });
4716
- *
4717
- * // Acquire an auth client, and bind it to all future calls
4718
- * const authClient = await auth.getClient();
4719
- * google.options({auth: authClient});
4720
- *
4721
- * // Do the magic
4722
- * const res = await tagmanager.accounts.containers.versions.update({
4723
- * // The GTM Account ID.
4724
- * accountId: 'placeholder-value',
4725
- * // The GTM Container ID.
4726
- * containerId: 'placeholder-value',
4727
- * // The GTM Container Version ID.
4728
- * containerVersionId: 'placeholder-value',
4729
- * // When provided, this fingerprint must match the fingerprint of the container version in storage.
4730
- * fingerprint: 'placeholder-value',
4731
- *
4732
- * // Request body metadata
4733
- * requestBody: {
4734
- * // request body parameters
4735
- * // {
4736
- * // "accountId": "my_accountId",
4737
- * // "container": {},
4738
- * // "containerId": "my_containerId",
4739
- * // "containerVersionId": "my_containerVersionId",
4740
- * // "deleted": false,
4741
- * // "fingerprint": "my_fingerprint",
4742
- * // "folder": [],
4743
- * // "macro": [],
4744
- * // "name": "my_name",
4745
- * // "notes": "my_notes",
4746
- * // "rule": [],
4747
- * // "tag": [],
4748
- * // "trigger": [],
4749
- * // "variable": []
4750
- * // }
4751
- * },
4752
- * });
4753
- * console.log(res.data);
4754
- *
4755
- * // Example response
4756
- * // {
4757
- * // "accountId": "my_accountId",
4758
- * // "container": {},
4759
- * // "containerId": "my_containerId",
4760
- * // "containerVersionId": "my_containerVersionId",
4761
- * // "deleted": false,
4762
- * // "fingerprint": "my_fingerprint",
4763
- * // "folder": [],
4764
- * // "macro": [],
4765
- * // "name": "my_name",
4766
- * // "notes": "my_notes",
4767
- * // "rule": [],
4768
- * // "tag": [],
4769
- * // "trigger": [],
4770
- * // "variable": []
4771
- * // }
4772
- * }
4773
- *
4774
- * main().catch(e => {
4775
- * console.error(e);
4776
- * throw e;
4777
- * });
4778
- *
4779
- * ```
4780
2094
  *
4781
2095
  * @param params - Parameters for request
4782
2096
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4923,64 +2237,6 @@ export declare namespace tagmanager_v1 {
4923
2237
  constructor(context: APIRequestContext);
4924
2238
  /**
4925
2239
  * Creates a user's Account & Container Permissions.
4926
- * @example
4927
- * ```js
4928
- * // Before running the sample:
4929
- * // - Enable the API at:
4930
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
4931
- * // - Login into gcloud by running:
4932
- * // `$ gcloud auth application-default login`
4933
- * // - Install the npm module by running:
4934
- * // `$ npm install googleapis`
4935
- *
4936
- * const {google} = require('googleapis');
4937
- * const tagmanager = google.tagmanager('v1');
4938
- *
4939
- * async function main() {
4940
- * const auth = new google.auth.GoogleAuth({
4941
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4942
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
4943
- * });
4944
- *
4945
- * // Acquire an auth client, and bind it to all future calls
4946
- * const authClient = await auth.getClient();
4947
- * google.options({auth: authClient});
4948
- *
4949
- * // Do the magic
4950
- * const res = await tagmanager.accounts.permissions.create({
4951
- * // The GTM Account ID.
4952
- * accountId: 'placeholder-value',
4953
- *
4954
- * // Request body metadata
4955
- * requestBody: {
4956
- * // request body parameters
4957
- * // {
4958
- * // "accountAccess": {},
4959
- * // "accountId": "my_accountId",
4960
- * // "containerAccess": [],
4961
- * // "emailAddress": "my_emailAddress",
4962
- * // "permissionId": "my_permissionId"
4963
- * // }
4964
- * },
4965
- * });
4966
- * console.log(res.data);
4967
- *
4968
- * // Example response
4969
- * // {
4970
- * // "accountAccess": {},
4971
- * // "accountId": "my_accountId",
4972
- * // "containerAccess": [],
4973
- * // "emailAddress": "my_emailAddress",
4974
- * // "permissionId": "my_permissionId"
4975
- * // }
4976
- * }
4977
- *
4978
- * main().catch(e => {
4979
- * console.error(e);
4980
- * throw e;
4981
- * });
4982
- *
4983
- * ```
4984
2240
  *
4985
2241
  * @param params - Parameters for request
4986
2242
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4995,45 +2251,6 @@ export declare namespace tagmanager_v1 {
4995
2251
  create(callback: BodyResponseCallback<Schema$UserAccess>): void;
4996
2252
  /**
4997
2253
  * Removes a user from the account, revoking access to it and all of its containers.
4998
- * @example
4999
- * ```js
5000
- * // Before running the sample:
5001
- * // - Enable the API at:
5002
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
5003
- * // - Login into gcloud by running:
5004
- * // `$ gcloud auth application-default login`
5005
- * // - Install the npm module by running:
5006
- * // `$ npm install googleapis`
5007
- *
5008
- * const {google} = require('googleapis');
5009
- * const tagmanager = google.tagmanager('v1');
5010
- *
5011
- * async function main() {
5012
- * const auth = new google.auth.GoogleAuth({
5013
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5014
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
5015
- * });
5016
- *
5017
- * // Acquire an auth client, and bind it to all future calls
5018
- * const authClient = await auth.getClient();
5019
- * google.options({auth: authClient});
5020
- *
5021
- * // Do the magic
5022
- * const res = await tagmanager.accounts.permissions.delete({
5023
- * // The GTM Account ID.
5024
- * accountId: 'placeholder-value',
5025
- * // The GTM User ID.
5026
- * permissionId: 'placeholder-value',
5027
- * });
5028
- * console.log(res.data);
5029
- * }
5030
- *
5031
- * main().catch(e => {
5032
- * console.error(e);
5033
- * throw e;
5034
- * });
5035
- *
5036
- * ```
5037
2254
  *
5038
2255
  * @param params - Parameters for request
5039
2256
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5048,54 +2265,6 @@ export declare namespace tagmanager_v1 {
5048
2265
  delete(callback: BodyResponseCallback<void>): void;
5049
2266
  /**
5050
2267
  * Gets a user's Account & Container Permissions.
5051
- * @example
5052
- * ```js
5053
- * // Before running the sample:
5054
- * // - Enable the API at:
5055
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
5056
- * // - Login into gcloud by running:
5057
- * // `$ gcloud auth application-default login`
5058
- * // - Install the npm module by running:
5059
- * // `$ npm install googleapis`
5060
- *
5061
- * const {google} = require('googleapis');
5062
- * const tagmanager = google.tagmanager('v1');
5063
- *
5064
- * async function main() {
5065
- * const auth = new google.auth.GoogleAuth({
5066
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5067
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
5068
- * });
5069
- *
5070
- * // Acquire an auth client, and bind it to all future calls
5071
- * const authClient = await auth.getClient();
5072
- * google.options({auth: authClient});
5073
- *
5074
- * // Do the magic
5075
- * const res = await tagmanager.accounts.permissions.get({
5076
- * // The GTM Account ID.
5077
- * accountId: 'placeholder-value',
5078
- * // The GTM User ID.
5079
- * permissionId: 'placeholder-value',
5080
- * });
5081
- * console.log(res.data);
5082
- *
5083
- * // Example response
5084
- * // {
5085
- * // "accountAccess": {},
5086
- * // "accountId": "my_accountId",
5087
- * // "containerAccess": [],
5088
- * // "emailAddress": "my_emailAddress",
5089
- * // "permissionId": "my_permissionId"
5090
- * // }
5091
- * }
5092
- *
5093
- * main().catch(e => {
5094
- * console.error(e);
5095
- * throw e;
5096
- * });
5097
- *
5098
- * ```
5099
2268
  *
5100
2269
  * @param params - Parameters for request
5101
2270
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5110,48 +2279,6 @@ export declare namespace tagmanager_v1 {
5110
2279
  get(callback: BodyResponseCallback<Schema$UserAccess>): void;
5111
2280
  /**
5112
2281
  * List all users that have access to the account along with Account and Container Permissions granted to each of them.
5113
- * @example
5114
- * ```js
5115
- * // Before running the sample:
5116
- * // - Enable the API at:
5117
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
5118
- * // - Login into gcloud by running:
5119
- * // `$ gcloud auth application-default login`
5120
- * // - Install the npm module by running:
5121
- * // `$ npm install googleapis`
5122
- *
5123
- * const {google} = require('googleapis');
5124
- * const tagmanager = google.tagmanager('v1');
5125
- *
5126
- * async function main() {
5127
- * const auth = new google.auth.GoogleAuth({
5128
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5129
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
5130
- * });
5131
- *
5132
- * // Acquire an auth client, and bind it to all future calls
5133
- * const authClient = await auth.getClient();
5134
- * google.options({auth: authClient});
5135
- *
5136
- * // Do the magic
5137
- * const res = await tagmanager.accounts.permissions.list({
5138
- * // The GTM Account ID.
5139
- * accountId: 'placeholder-value',
5140
- * });
5141
- * console.log(res.data);
5142
- *
5143
- * // Example response
5144
- * // {
5145
- * // "userAccess": []
5146
- * // }
5147
- * }
5148
- *
5149
- * main().catch(e => {
5150
- * console.error(e);
5151
- * throw e;
5152
- * });
5153
- *
5154
- * ```
5155
2282
  *
5156
2283
  * @param params - Parameters for request
5157
2284
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5166,66 +2293,6 @@ export declare namespace tagmanager_v1 {
5166
2293
  list(callback: BodyResponseCallback<Schema$ListAccountUsersResponse>): void;
5167
2294
  /**
5168
2295
  * Updates a user's Account & Container Permissions.
5169
- * @example
5170
- * ```js
5171
- * // Before running the sample:
5172
- * // - Enable the API at:
5173
- * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
5174
- * // - Login into gcloud by running:
5175
- * // `$ gcloud auth application-default login`
5176
- * // - Install the npm module by running:
5177
- * // `$ npm install googleapis`
5178
- *
5179
- * const {google} = require('googleapis');
5180
- * const tagmanager = google.tagmanager('v1');
5181
- *
5182
- * async function main() {
5183
- * const auth = new google.auth.GoogleAuth({
5184
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5185
- * scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
5186
- * });
5187
- *
5188
- * // Acquire an auth client, and bind it to all future calls
5189
- * const authClient = await auth.getClient();
5190
- * google.options({auth: authClient});
5191
- *
5192
- * // Do the magic
5193
- * const res = await tagmanager.accounts.permissions.update({
5194
- * // The GTM Account ID.
5195
- * accountId: 'placeholder-value',
5196
- * // The GTM User ID.
5197
- * permissionId: 'placeholder-value',
5198
- *
5199
- * // Request body metadata
5200
- * requestBody: {
5201
- * // request body parameters
5202
- * // {
5203
- * // "accountAccess": {},
5204
- * // "accountId": "my_accountId",
5205
- * // "containerAccess": [],
5206
- * // "emailAddress": "my_emailAddress",
5207
- * // "permissionId": "my_permissionId"
5208
- * // }
5209
- * },
5210
- * });
5211
- * console.log(res.data);
5212
- *
5213
- * // Example response
5214
- * // {
5215
- * // "accountAccess": {},
5216
- * // "accountId": "my_accountId",
5217
- * // "containerAccess": [],
5218
- * // "emailAddress": "my_emailAddress",
5219
- * // "permissionId": "my_permissionId"
5220
- * // }
5221
- * }
5222
- *
5223
- * main().catch(e => {
5224
- * console.error(e);
5225
- * throw e;
5226
- * });
5227
- *
5228
- * ```
5229
2296
  *
5230
2297
  * @param params - Parameters for request
5231
2298
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.