@googleapis/tagmanager 4.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/CHANGELOG.md +7 -0
- package/build/v1.d.ts +0 -2933
- package/build/v1.js.map +1 -1
- package/build/v2.d.ts +4 -5933
- package/build/v2.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/v1.ts +0 -2933
- package/v2.ts +4 -5933
package/v1.ts
CHANGED
|
@@ -991,55 +991,6 @@ export namespace tagmanager_v1 {
|
|
|
991
991
|
|
|
992
992
|
/**
|
|
993
993
|
* Gets a GTM Account.
|
|
994
|
-
* @example
|
|
995
|
-
* ```js
|
|
996
|
-
* // Before running the sample:
|
|
997
|
-
* // - Enable the API at:
|
|
998
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
999
|
-
* // - Login into gcloud by running:
|
|
1000
|
-
* // `$ gcloud auth application-default login`
|
|
1001
|
-
* // - Install the npm module by running:
|
|
1002
|
-
* // `$ npm install googleapis`
|
|
1003
|
-
*
|
|
1004
|
-
* const {google} = require('googleapis');
|
|
1005
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1006
|
-
*
|
|
1007
|
-
* async function main() {
|
|
1008
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1009
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1010
|
-
* scopes: [
|
|
1011
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
1012
|
-
* 'https://www.googleapis.com/auth/tagmanager.manage.accounts',
|
|
1013
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
1014
|
-
* ],
|
|
1015
|
-
* });
|
|
1016
|
-
*
|
|
1017
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1018
|
-
* const authClient = await auth.getClient();
|
|
1019
|
-
* google.options({auth: authClient});
|
|
1020
|
-
*
|
|
1021
|
-
* // Do the magic
|
|
1022
|
-
* const res = await tagmanager.accounts.get({
|
|
1023
|
-
* // The GTM Account ID.
|
|
1024
|
-
* accountId: 'placeholder-value',
|
|
1025
|
-
* });
|
|
1026
|
-
* console.log(res.data);
|
|
1027
|
-
*
|
|
1028
|
-
* // Example response
|
|
1029
|
-
* // {
|
|
1030
|
-
* // "accountId": "my_accountId",
|
|
1031
|
-
* // "fingerprint": "my_fingerprint",
|
|
1032
|
-
* // "name": "my_name",
|
|
1033
|
-
* // "shareData": false
|
|
1034
|
-
* // }
|
|
1035
|
-
* }
|
|
1036
|
-
*
|
|
1037
|
-
* main().catch(e => {
|
|
1038
|
-
* console.error(e);
|
|
1039
|
-
* throw e;
|
|
1040
|
-
* });
|
|
1041
|
-
*
|
|
1042
|
-
* ```
|
|
1043
994
|
*
|
|
1044
995
|
* @param params - Parameters for request
|
|
1045
996
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1126,49 +1077,6 @@ export namespace tagmanager_v1 {
|
|
|
1126
1077
|
|
|
1127
1078
|
/**
|
|
1128
1079
|
* Lists all GTM Accounts that a user has access to.
|
|
1129
|
-
* @example
|
|
1130
|
-
* ```js
|
|
1131
|
-
* // Before running the sample:
|
|
1132
|
-
* // - Enable the API at:
|
|
1133
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1134
|
-
* // - Login into gcloud by running:
|
|
1135
|
-
* // `$ gcloud auth application-default login`
|
|
1136
|
-
* // - Install the npm module by running:
|
|
1137
|
-
* // `$ npm install googleapis`
|
|
1138
|
-
*
|
|
1139
|
-
* const {google} = require('googleapis');
|
|
1140
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1141
|
-
*
|
|
1142
|
-
* async function main() {
|
|
1143
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1144
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1145
|
-
* scopes: [
|
|
1146
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
1147
|
-
* 'https://www.googleapis.com/auth/tagmanager.manage.accounts',
|
|
1148
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
1149
|
-
* ],
|
|
1150
|
-
* });
|
|
1151
|
-
*
|
|
1152
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1153
|
-
* const authClient = await auth.getClient();
|
|
1154
|
-
* google.options({auth: authClient});
|
|
1155
|
-
*
|
|
1156
|
-
* // Do the magic
|
|
1157
|
-
* const res = await tagmanager.accounts.list({});
|
|
1158
|
-
* console.log(res.data);
|
|
1159
|
-
*
|
|
1160
|
-
* // Example response
|
|
1161
|
-
* // {
|
|
1162
|
-
* // "accounts": []
|
|
1163
|
-
* // }
|
|
1164
|
-
* }
|
|
1165
|
-
*
|
|
1166
|
-
* main().catch(e => {
|
|
1167
|
-
* console.error(e);
|
|
1168
|
-
* throw e;
|
|
1169
|
-
* });
|
|
1170
|
-
*
|
|
1171
|
-
* ```
|
|
1172
1080
|
*
|
|
1173
1081
|
* @param params - Parameters for request
|
|
1174
1082
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1260,64 +1168,6 @@ export namespace tagmanager_v1 {
|
|
|
1260
1168
|
|
|
1261
1169
|
/**
|
|
1262
1170
|
* Updates a GTM Account.
|
|
1263
|
-
* @example
|
|
1264
|
-
* ```js
|
|
1265
|
-
* // Before running the sample:
|
|
1266
|
-
* // - Enable the API at:
|
|
1267
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1268
|
-
* // - Login into gcloud by running:
|
|
1269
|
-
* // `$ gcloud auth application-default login`
|
|
1270
|
-
* // - Install the npm module by running:
|
|
1271
|
-
* // `$ npm install googleapis`
|
|
1272
|
-
*
|
|
1273
|
-
* const {google} = require('googleapis');
|
|
1274
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1275
|
-
*
|
|
1276
|
-
* async function main() {
|
|
1277
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1278
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1279
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.accounts'],
|
|
1280
|
-
* });
|
|
1281
|
-
*
|
|
1282
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1283
|
-
* const authClient = await auth.getClient();
|
|
1284
|
-
* google.options({auth: authClient});
|
|
1285
|
-
*
|
|
1286
|
-
* // Do the magic
|
|
1287
|
-
* const res = await tagmanager.accounts.update({
|
|
1288
|
-
* // The GTM Account ID.
|
|
1289
|
-
* accountId: 'placeholder-value',
|
|
1290
|
-
* // When provided, this fingerprint must match the fingerprint of the account in storage.
|
|
1291
|
-
* fingerprint: 'placeholder-value',
|
|
1292
|
-
*
|
|
1293
|
-
* // Request body metadata
|
|
1294
|
-
* requestBody: {
|
|
1295
|
-
* // request body parameters
|
|
1296
|
-
* // {
|
|
1297
|
-
* // "accountId": "my_accountId",
|
|
1298
|
-
* // "fingerprint": "my_fingerprint",
|
|
1299
|
-
* // "name": "my_name",
|
|
1300
|
-
* // "shareData": false
|
|
1301
|
-
* // }
|
|
1302
|
-
* },
|
|
1303
|
-
* });
|
|
1304
|
-
* console.log(res.data);
|
|
1305
|
-
*
|
|
1306
|
-
* // Example response
|
|
1307
|
-
* // {
|
|
1308
|
-
* // "accountId": "my_accountId",
|
|
1309
|
-
* // "fingerprint": "my_fingerprint",
|
|
1310
|
-
* // "name": "my_name",
|
|
1311
|
-
* // "shareData": false
|
|
1312
|
-
* // }
|
|
1313
|
-
* }
|
|
1314
|
-
*
|
|
1315
|
-
* main().catch(e => {
|
|
1316
|
-
* console.error(e);
|
|
1317
|
-
* throw e;
|
|
1318
|
-
* });
|
|
1319
|
-
*
|
|
1320
|
-
* ```
|
|
1321
1171
|
*
|
|
1322
1172
|
* @param params - Parameters for request
|
|
1323
1173
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1455,76 +1305,6 @@ export namespace tagmanager_v1 {
|
|
|
1455
1305
|
|
|
1456
1306
|
/**
|
|
1457
1307
|
* Creates a Container.
|
|
1458
|
-
* @example
|
|
1459
|
-
* ```js
|
|
1460
|
-
* // Before running the sample:
|
|
1461
|
-
* // - Enable the API at:
|
|
1462
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1463
|
-
* // - Login into gcloud by running:
|
|
1464
|
-
* // `$ gcloud auth application-default login`
|
|
1465
|
-
* // - Install the npm module by running:
|
|
1466
|
-
* // `$ npm install googleapis`
|
|
1467
|
-
*
|
|
1468
|
-
* const {google} = require('googleapis');
|
|
1469
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1470
|
-
*
|
|
1471
|
-
* async function main() {
|
|
1472
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1473
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1474
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
1475
|
-
* });
|
|
1476
|
-
*
|
|
1477
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1478
|
-
* const authClient = await auth.getClient();
|
|
1479
|
-
* google.options({auth: authClient});
|
|
1480
|
-
*
|
|
1481
|
-
* // Do the magic
|
|
1482
|
-
* const res = await tagmanager.accounts.containers.create({
|
|
1483
|
-
* // The GTM Account ID.
|
|
1484
|
-
* accountId: 'placeholder-value',
|
|
1485
|
-
*
|
|
1486
|
-
* // Request body metadata
|
|
1487
|
-
* requestBody: {
|
|
1488
|
-
* // request body parameters
|
|
1489
|
-
* // {
|
|
1490
|
-
* // "accountId": "my_accountId",
|
|
1491
|
-
* // "containerId": "my_containerId",
|
|
1492
|
-
* // "domainName": [],
|
|
1493
|
-
* // "enabledBuiltInVariable": [],
|
|
1494
|
-
* // "fingerprint": "my_fingerprint",
|
|
1495
|
-
* // "name": "my_name",
|
|
1496
|
-
* // "notes": "my_notes",
|
|
1497
|
-
* // "publicId": "my_publicId",
|
|
1498
|
-
* // "timeZoneCountryId": "my_timeZoneCountryId",
|
|
1499
|
-
* // "timeZoneId": "my_timeZoneId",
|
|
1500
|
-
* // "usageContext": []
|
|
1501
|
-
* // }
|
|
1502
|
-
* },
|
|
1503
|
-
* });
|
|
1504
|
-
* console.log(res.data);
|
|
1505
|
-
*
|
|
1506
|
-
* // Example response
|
|
1507
|
-
* // {
|
|
1508
|
-
* // "accountId": "my_accountId",
|
|
1509
|
-
* // "containerId": "my_containerId",
|
|
1510
|
-
* // "domainName": [],
|
|
1511
|
-
* // "enabledBuiltInVariable": [],
|
|
1512
|
-
* // "fingerprint": "my_fingerprint",
|
|
1513
|
-
* // "name": "my_name",
|
|
1514
|
-
* // "notes": "my_notes",
|
|
1515
|
-
* // "publicId": "my_publicId",
|
|
1516
|
-
* // "timeZoneCountryId": "my_timeZoneCountryId",
|
|
1517
|
-
* // "timeZoneId": "my_timeZoneId",
|
|
1518
|
-
* // "usageContext": []
|
|
1519
|
-
* // }
|
|
1520
|
-
* }
|
|
1521
|
-
*
|
|
1522
|
-
* main().catch(e => {
|
|
1523
|
-
* console.error(e);
|
|
1524
|
-
* throw e;
|
|
1525
|
-
* });
|
|
1526
|
-
*
|
|
1527
|
-
* ```
|
|
1528
1308
|
*
|
|
1529
1309
|
* @param params - Parameters for request
|
|
1530
1310
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1611,45 +1391,6 @@ export namespace tagmanager_v1 {
|
|
|
1611
1391
|
|
|
1612
1392
|
/**
|
|
1613
1393
|
* Deletes a Container.
|
|
1614
|
-
* @example
|
|
1615
|
-
* ```js
|
|
1616
|
-
* // Before running the sample:
|
|
1617
|
-
* // - Enable the API at:
|
|
1618
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1619
|
-
* // - Login into gcloud by running:
|
|
1620
|
-
* // `$ gcloud auth application-default login`
|
|
1621
|
-
* // - Install the npm module by running:
|
|
1622
|
-
* // `$ npm install googleapis`
|
|
1623
|
-
*
|
|
1624
|
-
* const {google} = require('googleapis');
|
|
1625
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1626
|
-
*
|
|
1627
|
-
* async function main() {
|
|
1628
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1629
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1630
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.delete.containers'],
|
|
1631
|
-
* });
|
|
1632
|
-
*
|
|
1633
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1634
|
-
* const authClient = await auth.getClient();
|
|
1635
|
-
* google.options({auth: authClient});
|
|
1636
|
-
*
|
|
1637
|
-
* // Do the magic
|
|
1638
|
-
* const res = await tagmanager.accounts.containers.delete({
|
|
1639
|
-
* // The GTM Account ID.
|
|
1640
|
-
* accountId: 'placeholder-value',
|
|
1641
|
-
* // The GTM Container ID.
|
|
1642
|
-
* containerId: 'placeholder-value',
|
|
1643
|
-
* });
|
|
1644
|
-
* console.log(res.data);
|
|
1645
|
-
* }
|
|
1646
|
-
*
|
|
1647
|
-
* main().catch(e => {
|
|
1648
|
-
* console.error(e);
|
|
1649
|
-
* throw e;
|
|
1650
|
-
* });
|
|
1651
|
-
*
|
|
1652
|
-
* ```
|
|
1653
1394
|
*
|
|
1654
1395
|
* @param params - Parameters for request
|
|
1655
1396
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1735,63 +1476,6 @@ export namespace tagmanager_v1 {
|
|
|
1735
1476
|
|
|
1736
1477
|
/**
|
|
1737
1478
|
* Gets a Container.
|
|
1738
|
-
* @example
|
|
1739
|
-
* ```js
|
|
1740
|
-
* // Before running the sample:
|
|
1741
|
-
* // - Enable the API at:
|
|
1742
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1743
|
-
* // - Login into gcloud by running:
|
|
1744
|
-
* // `$ gcloud auth application-default login`
|
|
1745
|
-
* // - Install the npm module by running:
|
|
1746
|
-
* // `$ npm install googleapis`
|
|
1747
|
-
*
|
|
1748
|
-
* const {google} = require('googleapis');
|
|
1749
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1750
|
-
*
|
|
1751
|
-
* async function main() {
|
|
1752
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1753
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1754
|
-
* scopes: [
|
|
1755
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
1756
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
1757
|
-
* ],
|
|
1758
|
-
* });
|
|
1759
|
-
*
|
|
1760
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1761
|
-
* const authClient = await auth.getClient();
|
|
1762
|
-
* google.options({auth: authClient});
|
|
1763
|
-
*
|
|
1764
|
-
* // Do the magic
|
|
1765
|
-
* const res = await tagmanager.accounts.containers.get({
|
|
1766
|
-
* // The GTM Account ID.
|
|
1767
|
-
* accountId: 'placeholder-value',
|
|
1768
|
-
* // The GTM Container ID.
|
|
1769
|
-
* containerId: 'placeholder-value',
|
|
1770
|
-
* });
|
|
1771
|
-
* console.log(res.data);
|
|
1772
|
-
*
|
|
1773
|
-
* // Example response
|
|
1774
|
-
* // {
|
|
1775
|
-
* // "accountId": "my_accountId",
|
|
1776
|
-
* // "containerId": "my_containerId",
|
|
1777
|
-
* // "domainName": [],
|
|
1778
|
-
* // "enabledBuiltInVariable": [],
|
|
1779
|
-
* // "fingerprint": "my_fingerprint",
|
|
1780
|
-
* // "name": "my_name",
|
|
1781
|
-
* // "notes": "my_notes",
|
|
1782
|
-
* // "publicId": "my_publicId",
|
|
1783
|
-
* // "timeZoneCountryId": "my_timeZoneCountryId",
|
|
1784
|
-
* // "timeZoneId": "my_timeZoneId",
|
|
1785
|
-
* // "usageContext": []
|
|
1786
|
-
* // }
|
|
1787
|
-
* }
|
|
1788
|
-
*
|
|
1789
|
-
* main().catch(e => {
|
|
1790
|
-
* console.error(e);
|
|
1791
|
-
* throw e;
|
|
1792
|
-
* });
|
|
1793
|
-
*
|
|
1794
|
-
* ```
|
|
1795
1479
|
*
|
|
1796
1480
|
* @param params - Parameters for request
|
|
1797
1481
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1879,51 +1563,6 @@ export namespace tagmanager_v1 {
|
|
|
1879
1563
|
|
|
1880
1564
|
/**
|
|
1881
1565
|
* Lists all Containers that belongs to a GTM Account.
|
|
1882
|
-
* @example
|
|
1883
|
-
* ```js
|
|
1884
|
-
* // Before running the sample:
|
|
1885
|
-
* // - Enable the API at:
|
|
1886
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
1887
|
-
* // - Login into gcloud by running:
|
|
1888
|
-
* // `$ gcloud auth application-default login`
|
|
1889
|
-
* // - Install the npm module by running:
|
|
1890
|
-
* // `$ npm install googleapis`
|
|
1891
|
-
*
|
|
1892
|
-
* const {google} = require('googleapis');
|
|
1893
|
-
* const tagmanager = google.tagmanager('v1');
|
|
1894
|
-
*
|
|
1895
|
-
* async function main() {
|
|
1896
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1897
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1898
|
-
* scopes: [
|
|
1899
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
1900
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
1901
|
-
* ],
|
|
1902
|
-
* });
|
|
1903
|
-
*
|
|
1904
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1905
|
-
* const authClient = await auth.getClient();
|
|
1906
|
-
* google.options({auth: authClient});
|
|
1907
|
-
*
|
|
1908
|
-
* // Do the magic
|
|
1909
|
-
* const res = await tagmanager.accounts.containers.list({
|
|
1910
|
-
* // The GTM Account ID.
|
|
1911
|
-
* accountId: 'placeholder-value',
|
|
1912
|
-
* });
|
|
1913
|
-
* console.log(res.data);
|
|
1914
|
-
*
|
|
1915
|
-
* // Example response
|
|
1916
|
-
* // {
|
|
1917
|
-
* // "containers": []
|
|
1918
|
-
* // }
|
|
1919
|
-
* }
|
|
1920
|
-
*
|
|
1921
|
-
* main().catch(e => {
|
|
1922
|
-
* console.error(e);
|
|
1923
|
-
* throw e;
|
|
1924
|
-
* });
|
|
1925
|
-
*
|
|
1926
|
-
* ```
|
|
1927
1566
|
*
|
|
1928
1567
|
* @param params - Parameters for request
|
|
1929
1568
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2015,80 +1654,6 @@ export namespace tagmanager_v1 {
|
|
|
2015
1654
|
|
|
2016
1655
|
/**
|
|
2017
1656
|
* Updates a Container.
|
|
2018
|
-
* @example
|
|
2019
|
-
* ```js
|
|
2020
|
-
* // Before running the sample:
|
|
2021
|
-
* // - Enable the API at:
|
|
2022
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2023
|
-
* // - Login into gcloud by running:
|
|
2024
|
-
* // `$ gcloud auth application-default login`
|
|
2025
|
-
* // - Install the npm module by running:
|
|
2026
|
-
* // `$ npm install googleapis`
|
|
2027
|
-
*
|
|
2028
|
-
* const {google} = require('googleapis');
|
|
2029
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2030
|
-
*
|
|
2031
|
-
* async function main() {
|
|
2032
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2033
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2034
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
2035
|
-
* });
|
|
2036
|
-
*
|
|
2037
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2038
|
-
* const authClient = await auth.getClient();
|
|
2039
|
-
* google.options({auth: authClient});
|
|
2040
|
-
*
|
|
2041
|
-
* // Do the magic
|
|
2042
|
-
* const res = await tagmanager.accounts.containers.update({
|
|
2043
|
-
* // The GTM Account ID.
|
|
2044
|
-
* accountId: 'placeholder-value',
|
|
2045
|
-
* // The GTM Container ID.
|
|
2046
|
-
* containerId: 'placeholder-value',
|
|
2047
|
-
* // When provided, this fingerprint must match the fingerprint of the container in storage.
|
|
2048
|
-
* fingerprint: 'placeholder-value',
|
|
2049
|
-
*
|
|
2050
|
-
* // Request body metadata
|
|
2051
|
-
* requestBody: {
|
|
2052
|
-
* // request body parameters
|
|
2053
|
-
* // {
|
|
2054
|
-
* // "accountId": "my_accountId",
|
|
2055
|
-
* // "containerId": "my_containerId",
|
|
2056
|
-
* // "domainName": [],
|
|
2057
|
-
* // "enabledBuiltInVariable": [],
|
|
2058
|
-
* // "fingerprint": "my_fingerprint",
|
|
2059
|
-
* // "name": "my_name",
|
|
2060
|
-
* // "notes": "my_notes",
|
|
2061
|
-
* // "publicId": "my_publicId",
|
|
2062
|
-
* // "timeZoneCountryId": "my_timeZoneCountryId",
|
|
2063
|
-
* // "timeZoneId": "my_timeZoneId",
|
|
2064
|
-
* // "usageContext": []
|
|
2065
|
-
* // }
|
|
2066
|
-
* },
|
|
2067
|
-
* });
|
|
2068
|
-
* console.log(res.data);
|
|
2069
|
-
*
|
|
2070
|
-
* // Example response
|
|
2071
|
-
* // {
|
|
2072
|
-
* // "accountId": "my_accountId",
|
|
2073
|
-
* // "containerId": "my_containerId",
|
|
2074
|
-
* // "domainName": [],
|
|
2075
|
-
* // "enabledBuiltInVariable": [],
|
|
2076
|
-
* // "fingerprint": "my_fingerprint",
|
|
2077
|
-
* // "name": "my_name",
|
|
2078
|
-
* // "notes": "my_notes",
|
|
2079
|
-
* // "publicId": "my_publicId",
|
|
2080
|
-
* // "timeZoneCountryId": "my_timeZoneCountryId",
|
|
2081
|
-
* // "timeZoneId": "my_timeZoneId",
|
|
2082
|
-
* // "usageContext": []
|
|
2083
|
-
* // }
|
|
2084
|
-
* }
|
|
2085
|
-
*
|
|
2086
|
-
* main().catch(e => {
|
|
2087
|
-
* console.error(e);
|
|
2088
|
-
* throw e;
|
|
2089
|
-
* });
|
|
2090
|
-
*
|
|
2091
|
-
* ```
|
|
2092
1657
|
*
|
|
2093
1658
|
* @param params - Parameters for request
|
|
2094
1659
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2245,80 +1810,6 @@ export namespace tagmanager_v1 {
|
|
|
2245
1810
|
|
|
2246
1811
|
/**
|
|
2247
1812
|
* Creates a GTM Environment.
|
|
2248
|
-
* @example
|
|
2249
|
-
* ```js
|
|
2250
|
-
* // Before running the sample:
|
|
2251
|
-
* // - Enable the API at:
|
|
2252
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2253
|
-
* // - Login into gcloud by running:
|
|
2254
|
-
* // `$ gcloud auth application-default login`
|
|
2255
|
-
* // - Install the npm module by running:
|
|
2256
|
-
* // `$ npm install googleapis`
|
|
2257
|
-
*
|
|
2258
|
-
* const {google} = require('googleapis');
|
|
2259
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2260
|
-
*
|
|
2261
|
-
* async function main() {
|
|
2262
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2263
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2264
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
2265
|
-
* });
|
|
2266
|
-
*
|
|
2267
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2268
|
-
* const authClient = await auth.getClient();
|
|
2269
|
-
* google.options({auth: authClient});
|
|
2270
|
-
*
|
|
2271
|
-
* // Do the magic
|
|
2272
|
-
* const res = await tagmanager.accounts.containers.environments.create({
|
|
2273
|
-
* // The GTM Account ID.
|
|
2274
|
-
* accountId: 'placeholder-value',
|
|
2275
|
-
* // The GTM Container ID.
|
|
2276
|
-
* containerId: 'placeholder-value',
|
|
2277
|
-
*
|
|
2278
|
-
* // Request body metadata
|
|
2279
|
-
* requestBody: {
|
|
2280
|
-
* // request body parameters
|
|
2281
|
-
* // {
|
|
2282
|
-
* // "accountId": "my_accountId",
|
|
2283
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
2284
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
2285
|
-
* // "containerId": "my_containerId",
|
|
2286
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
2287
|
-
* // "description": "my_description",
|
|
2288
|
-
* // "enableDebug": false,
|
|
2289
|
-
* // "environmentId": "my_environmentId",
|
|
2290
|
-
* // "fingerprint": "my_fingerprint",
|
|
2291
|
-
* // "name": "my_name",
|
|
2292
|
-
* // "type": "my_type",
|
|
2293
|
-
* // "url": "my_url"
|
|
2294
|
-
* // }
|
|
2295
|
-
* },
|
|
2296
|
-
* });
|
|
2297
|
-
* console.log(res.data);
|
|
2298
|
-
*
|
|
2299
|
-
* // Example response
|
|
2300
|
-
* // {
|
|
2301
|
-
* // "accountId": "my_accountId",
|
|
2302
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
2303
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
2304
|
-
* // "containerId": "my_containerId",
|
|
2305
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
2306
|
-
* // "description": "my_description",
|
|
2307
|
-
* // "enableDebug": false,
|
|
2308
|
-
* // "environmentId": "my_environmentId",
|
|
2309
|
-
* // "fingerprint": "my_fingerprint",
|
|
2310
|
-
* // "name": "my_name",
|
|
2311
|
-
* // "type": "my_type",
|
|
2312
|
-
* // "url": "my_url"
|
|
2313
|
-
* // }
|
|
2314
|
-
* }
|
|
2315
|
-
*
|
|
2316
|
-
* main().catch(e => {
|
|
2317
|
-
* console.error(e);
|
|
2318
|
-
* throw e;
|
|
2319
|
-
* });
|
|
2320
|
-
*
|
|
2321
|
-
* ```
|
|
2322
1813
|
*
|
|
2323
1814
|
* @param params - Parameters for request
|
|
2324
1815
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2406,47 +1897,6 @@ export namespace tagmanager_v1 {
|
|
|
2406
1897
|
|
|
2407
1898
|
/**
|
|
2408
1899
|
* Deletes a GTM Environment.
|
|
2409
|
-
* @example
|
|
2410
|
-
* ```js
|
|
2411
|
-
* // Before running the sample:
|
|
2412
|
-
* // - Enable the API at:
|
|
2413
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2414
|
-
* // - Login into gcloud by running:
|
|
2415
|
-
* // `$ gcloud auth application-default login`
|
|
2416
|
-
* // - Install the npm module by running:
|
|
2417
|
-
* // `$ npm install googleapis`
|
|
2418
|
-
*
|
|
2419
|
-
* const {google} = require('googleapis');
|
|
2420
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2421
|
-
*
|
|
2422
|
-
* async function main() {
|
|
2423
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2424
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2425
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
2426
|
-
* });
|
|
2427
|
-
*
|
|
2428
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2429
|
-
* const authClient = await auth.getClient();
|
|
2430
|
-
* google.options({auth: authClient});
|
|
2431
|
-
*
|
|
2432
|
-
* // Do the magic
|
|
2433
|
-
* const res = await tagmanager.accounts.containers.environments.delete({
|
|
2434
|
-
* // The GTM Account ID.
|
|
2435
|
-
* accountId: 'placeholder-value',
|
|
2436
|
-
* // The GTM Container ID.
|
|
2437
|
-
* containerId: 'placeholder-value',
|
|
2438
|
-
* // The GTM Environment ID.
|
|
2439
|
-
* environmentId: 'placeholder-value',
|
|
2440
|
-
* });
|
|
2441
|
-
* console.log(res.data);
|
|
2442
|
-
* }
|
|
2443
|
-
*
|
|
2444
|
-
* main().catch(e => {
|
|
2445
|
-
* console.error(e);
|
|
2446
|
-
* throw e;
|
|
2447
|
-
* });
|
|
2448
|
-
*
|
|
2449
|
-
* ```
|
|
2450
1900
|
*
|
|
2451
1901
|
* @param params - Parameters for request
|
|
2452
1902
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2532,66 +1982,6 @@ export namespace tagmanager_v1 {
|
|
|
2532
1982
|
|
|
2533
1983
|
/**
|
|
2534
1984
|
* Gets a GTM Environment.
|
|
2535
|
-
* @example
|
|
2536
|
-
* ```js
|
|
2537
|
-
* // Before running the sample:
|
|
2538
|
-
* // - Enable the API at:
|
|
2539
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2540
|
-
* // - Login into gcloud by running:
|
|
2541
|
-
* // `$ gcloud auth application-default login`
|
|
2542
|
-
* // - Install the npm module by running:
|
|
2543
|
-
* // `$ npm install googleapis`
|
|
2544
|
-
*
|
|
2545
|
-
* const {google} = require('googleapis');
|
|
2546
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2547
|
-
*
|
|
2548
|
-
* async function main() {
|
|
2549
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2550
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2551
|
-
* scopes: [
|
|
2552
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
2553
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
2554
|
-
* ],
|
|
2555
|
-
* });
|
|
2556
|
-
*
|
|
2557
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2558
|
-
* const authClient = await auth.getClient();
|
|
2559
|
-
* google.options({auth: authClient});
|
|
2560
|
-
*
|
|
2561
|
-
* // Do the magic
|
|
2562
|
-
* const res = await tagmanager.accounts.containers.environments.get({
|
|
2563
|
-
* // The GTM Account ID.
|
|
2564
|
-
* accountId: 'placeholder-value',
|
|
2565
|
-
* // The GTM Container ID.
|
|
2566
|
-
* containerId: 'placeholder-value',
|
|
2567
|
-
* // The GTM Environment ID.
|
|
2568
|
-
* environmentId: 'placeholder-value',
|
|
2569
|
-
* });
|
|
2570
|
-
* console.log(res.data);
|
|
2571
|
-
*
|
|
2572
|
-
* // Example response
|
|
2573
|
-
* // {
|
|
2574
|
-
* // "accountId": "my_accountId",
|
|
2575
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
2576
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
2577
|
-
* // "containerId": "my_containerId",
|
|
2578
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
2579
|
-
* // "description": "my_description",
|
|
2580
|
-
* // "enableDebug": false,
|
|
2581
|
-
* // "environmentId": "my_environmentId",
|
|
2582
|
-
* // "fingerprint": "my_fingerprint",
|
|
2583
|
-
* // "name": "my_name",
|
|
2584
|
-
* // "type": "my_type",
|
|
2585
|
-
* // "url": "my_url"
|
|
2586
|
-
* // }
|
|
2587
|
-
* }
|
|
2588
|
-
*
|
|
2589
|
-
* main().catch(e => {
|
|
2590
|
-
* console.error(e);
|
|
2591
|
-
* throw e;
|
|
2592
|
-
* });
|
|
2593
|
-
*
|
|
2594
|
-
* ```
|
|
2595
1985
|
*
|
|
2596
1986
|
* @param params - Parameters for request
|
|
2597
1987
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2679,53 +2069,6 @@ export namespace tagmanager_v1 {
|
|
|
2679
2069
|
|
|
2680
2070
|
/**
|
|
2681
2071
|
* Lists all GTM Environments of a GTM Container.
|
|
2682
|
-
* @example
|
|
2683
|
-
* ```js
|
|
2684
|
-
* // Before running the sample:
|
|
2685
|
-
* // - Enable the API at:
|
|
2686
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2687
|
-
* // - Login into gcloud by running:
|
|
2688
|
-
* // `$ gcloud auth application-default login`
|
|
2689
|
-
* // - Install the npm module by running:
|
|
2690
|
-
* // `$ npm install googleapis`
|
|
2691
|
-
*
|
|
2692
|
-
* const {google} = require('googleapis');
|
|
2693
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2694
|
-
*
|
|
2695
|
-
* async function main() {
|
|
2696
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2697
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2698
|
-
* scopes: [
|
|
2699
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
2700
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
2701
|
-
* ],
|
|
2702
|
-
* });
|
|
2703
|
-
*
|
|
2704
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2705
|
-
* const authClient = await auth.getClient();
|
|
2706
|
-
* google.options({auth: authClient});
|
|
2707
|
-
*
|
|
2708
|
-
* // Do the magic
|
|
2709
|
-
* const res = await tagmanager.accounts.containers.environments.list({
|
|
2710
|
-
* // The GTM Account ID.
|
|
2711
|
-
* accountId: 'placeholder-value',
|
|
2712
|
-
* // The GTM Container ID.
|
|
2713
|
-
* containerId: 'placeholder-value',
|
|
2714
|
-
* });
|
|
2715
|
-
* console.log(res.data);
|
|
2716
|
-
*
|
|
2717
|
-
* // Example response
|
|
2718
|
-
* // {
|
|
2719
|
-
* // "environments": []
|
|
2720
|
-
* // }
|
|
2721
|
-
* }
|
|
2722
|
-
*
|
|
2723
|
-
* main().catch(e => {
|
|
2724
|
-
* console.error(e);
|
|
2725
|
-
* throw e;
|
|
2726
|
-
* });
|
|
2727
|
-
*
|
|
2728
|
-
* ```
|
|
2729
2072
|
*
|
|
2730
2073
|
* @param params - Parameters for request
|
|
2731
2074
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2818,84 +2161,6 @@ export namespace tagmanager_v1 {
|
|
|
2818
2161
|
|
|
2819
2162
|
/**
|
|
2820
2163
|
* Updates a GTM Environment.
|
|
2821
|
-
* @example
|
|
2822
|
-
* ```js
|
|
2823
|
-
* // Before running the sample:
|
|
2824
|
-
* // - Enable the API at:
|
|
2825
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
2826
|
-
* // - Login into gcloud by running:
|
|
2827
|
-
* // `$ gcloud auth application-default login`
|
|
2828
|
-
* // - Install the npm module by running:
|
|
2829
|
-
* // `$ npm install googleapis`
|
|
2830
|
-
*
|
|
2831
|
-
* const {google} = require('googleapis');
|
|
2832
|
-
* const tagmanager = google.tagmanager('v1');
|
|
2833
|
-
*
|
|
2834
|
-
* async function main() {
|
|
2835
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2836
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2837
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
2838
|
-
* });
|
|
2839
|
-
*
|
|
2840
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2841
|
-
* const authClient = await auth.getClient();
|
|
2842
|
-
* google.options({auth: authClient});
|
|
2843
|
-
*
|
|
2844
|
-
* // Do the magic
|
|
2845
|
-
* const res = await tagmanager.accounts.containers.environments.update({
|
|
2846
|
-
* // The GTM Account ID.
|
|
2847
|
-
* accountId: 'placeholder-value',
|
|
2848
|
-
* // The GTM Container ID.
|
|
2849
|
-
* containerId: 'placeholder-value',
|
|
2850
|
-
* // The GTM Environment ID.
|
|
2851
|
-
* environmentId: 'placeholder-value',
|
|
2852
|
-
* // When provided, this fingerprint must match the fingerprint of the environment in storage.
|
|
2853
|
-
* fingerprint: 'placeholder-value',
|
|
2854
|
-
*
|
|
2855
|
-
* // Request body metadata
|
|
2856
|
-
* requestBody: {
|
|
2857
|
-
* // request body parameters
|
|
2858
|
-
* // {
|
|
2859
|
-
* // "accountId": "my_accountId",
|
|
2860
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
2861
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
2862
|
-
* // "containerId": "my_containerId",
|
|
2863
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
2864
|
-
* // "description": "my_description",
|
|
2865
|
-
* // "enableDebug": false,
|
|
2866
|
-
* // "environmentId": "my_environmentId",
|
|
2867
|
-
* // "fingerprint": "my_fingerprint",
|
|
2868
|
-
* // "name": "my_name",
|
|
2869
|
-
* // "type": "my_type",
|
|
2870
|
-
* // "url": "my_url"
|
|
2871
|
-
* // }
|
|
2872
|
-
* },
|
|
2873
|
-
* });
|
|
2874
|
-
* console.log(res.data);
|
|
2875
|
-
*
|
|
2876
|
-
* // Example response
|
|
2877
|
-
* // {
|
|
2878
|
-
* // "accountId": "my_accountId",
|
|
2879
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
2880
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
2881
|
-
* // "containerId": "my_containerId",
|
|
2882
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
2883
|
-
* // "description": "my_description",
|
|
2884
|
-
* // "enableDebug": false,
|
|
2885
|
-
* // "environmentId": "my_environmentId",
|
|
2886
|
-
* // "fingerprint": "my_fingerprint",
|
|
2887
|
-
* // "name": "my_name",
|
|
2888
|
-
* // "type": "my_type",
|
|
2889
|
-
* // "url": "my_url"
|
|
2890
|
-
* // }
|
|
2891
|
-
* }
|
|
2892
|
-
*
|
|
2893
|
-
* main().catch(e => {
|
|
2894
|
-
* console.error(e);
|
|
2895
|
-
* throw e;
|
|
2896
|
-
* });
|
|
2897
|
-
*
|
|
2898
|
-
* ```
|
|
2899
2164
|
*
|
|
2900
2165
|
* @param params - Parameters for request
|
|
2901
2166
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3076,66 +2341,6 @@ export namespace tagmanager_v1 {
|
|
|
3076
2341
|
|
|
3077
2342
|
/**
|
|
3078
2343
|
* Creates a GTM Folder.
|
|
3079
|
-
* @example
|
|
3080
|
-
* ```js
|
|
3081
|
-
* // Before running the sample:
|
|
3082
|
-
* // - Enable the API at:
|
|
3083
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
3084
|
-
* // - Login into gcloud by running:
|
|
3085
|
-
* // `$ gcloud auth application-default login`
|
|
3086
|
-
* // - Install the npm module by running:
|
|
3087
|
-
* // `$ npm install googleapis`
|
|
3088
|
-
*
|
|
3089
|
-
* const {google} = require('googleapis');
|
|
3090
|
-
* const tagmanager = google.tagmanager('v1');
|
|
3091
|
-
*
|
|
3092
|
-
* async function main() {
|
|
3093
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3094
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3095
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
3096
|
-
* });
|
|
3097
|
-
*
|
|
3098
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3099
|
-
* const authClient = await auth.getClient();
|
|
3100
|
-
* google.options({auth: authClient});
|
|
3101
|
-
*
|
|
3102
|
-
* // Do the magic
|
|
3103
|
-
* const res = await tagmanager.accounts.containers.folders.create({
|
|
3104
|
-
* // The GTM Account ID.
|
|
3105
|
-
* accountId: 'placeholder-value',
|
|
3106
|
-
* // The GTM Container ID.
|
|
3107
|
-
* containerId: 'placeholder-value',
|
|
3108
|
-
*
|
|
3109
|
-
* // Request body metadata
|
|
3110
|
-
* requestBody: {
|
|
3111
|
-
* // request body parameters
|
|
3112
|
-
* // {
|
|
3113
|
-
* // "accountId": "my_accountId",
|
|
3114
|
-
* // "containerId": "my_containerId",
|
|
3115
|
-
* // "fingerprint": "my_fingerprint",
|
|
3116
|
-
* // "folderId": "my_folderId",
|
|
3117
|
-
* // "name": "my_name"
|
|
3118
|
-
* // }
|
|
3119
|
-
* },
|
|
3120
|
-
* });
|
|
3121
|
-
* console.log(res.data);
|
|
3122
|
-
*
|
|
3123
|
-
* // Example response
|
|
3124
|
-
* // {
|
|
3125
|
-
* // "accountId": "my_accountId",
|
|
3126
|
-
* // "containerId": "my_containerId",
|
|
3127
|
-
* // "fingerprint": "my_fingerprint",
|
|
3128
|
-
* // "folderId": "my_folderId",
|
|
3129
|
-
* // "name": "my_name"
|
|
3130
|
-
* // }
|
|
3131
|
-
* }
|
|
3132
|
-
*
|
|
3133
|
-
* main().catch(e => {
|
|
3134
|
-
* console.error(e);
|
|
3135
|
-
* throw e;
|
|
3136
|
-
* });
|
|
3137
|
-
*
|
|
3138
|
-
* ```
|
|
3139
2344
|
*
|
|
3140
2345
|
* @param params - Parameters for request
|
|
3141
2346
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3223,47 +2428,6 @@ export namespace tagmanager_v1 {
|
|
|
3223
2428
|
|
|
3224
2429
|
/**
|
|
3225
2430
|
* Deletes a GTM Folder.
|
|
3226
|
-
* @example
|
|
3227
|
-
* ```js
|
|
3228
|
-
* // Before running the sample:
|
|
3229
|
-
* // - Enable the API at:
|
|
3230
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
3231
|
-
* // - Login into gcloud by running:
|
|
3232
|
-
* // `$ gcloud auth application-default login`
|
|
3233
|
-
* // - Install the npm module by running:
|
|
3234
|
-
* // `$ npm install googleapis`
|
|
3235
|
-
*
|
|
3236
|
-
* const {google} = require('googleapis');
|
|
3237
|
-
* const tagmanager = google.tagmanager('v1');
|
|
3238
|
-
*
|
|
3239
|
-
* async function main() {
|
|
3240
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3241
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3242
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
3243
|
-
* });
|
|
3244
|
-
*
|
|
3245
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3246
|
-
* const authClient = await auth.getClient();
|
|
3247
|
-
* google.options({auth: authClient});
|
|
3248
|
-
*
|
|
3249
|
-
* // Do the magic
|
|
3250
|
-
* const res = await tagmanager.accounts.containers.folders.delete({
|
|
3251
|
-
* // The GTM Account ID.
|
|
3252
|
-
* accountId: 'placeholder-value',
|
|
3253
|
-
* // The GTM Container ID.
|
|
3254
|
-
* containerId: 'placeholder-value',
|
|
3255
|
-
* // The GTM Folder ID.
|
|
3256
|
-
* folderId: 'placeholder-value',
|
|
3257
|
-
* });
|
|
3258
|
-
* console.log(res.data);
|
|
3259
|
-
* }
|
|
3260
|
-
*
|
|
3261
|
-
* main().catch(e => {
|
|
3262
|
-
* console.error(e);
|
|
3263
|
-
* throw e;
|
|
3264
|
-
* });
|
|
3265
|
-
*
|
|
3266
|
-
* ```
|
|
3267
2431
|
*
|
|
3268
2432
|
* @param params - Parameters for request
|
|
3269
2433
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3349,59 +2513,6 @@ export namespace tagmanager_v1 {
|
|
|
3349
2513
|
|
|
3350
2514
|
/**
|
|
3351
2515
|
* Gets a GTM Folder.
|
|
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: [
|
|
3369
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
3370
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
3371
|
-
* ],
|
|
3372
|
-
* });
|
|
3373
|
-
*
|
|
3374
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3375
|
-
* const authClient = await auth.getClient();
|
|
3376
|
-
* google.options({auth: authClient});
|
|
3377
|
-
*
|
|
3378
|
-
* // Do the magic
|
|
3379
|
-
* const res = await tagmanager.accounts.containers.folders.get({
|
|
3380
|
-
* // The GTM Account ID.
|
|
3381
|
-
* accountId: 'placeholder-value',
|
|
3382
|
-
* // The GTM Container ID.
|
|
3383
|
-
* containerId: 'placeholder-value',
|
|
3384
|
-
* // The GTM Folder ID.
|
|
3385
|
-
* folderId: 'placeholder-value',
|
|
3386
|
-
* });
|
|
3387
|
-
* console.log(res.data);
|
|
3388
|
-
*
|
|
3389
|
-
* // Example response
|
|
3390
|
-
* // {
|
|
3391
|
-
* // "accountId": "my_accountId",
|
|
3392
|
-
* // "containerId": "my_containerId",
|
|
3393
|
-
* // "fingerprint": "my_fingerprint",
|
|
3394
|
-
* // "folderId": "my_folderId",
|
|
3395
|
-
* // "name": "my_name"
|
|
3396
|
-
* // }
|
|
3397
|
-
* }
|
|
3398
|
-
*
|
|
3399
|
-
* main().catch(e => {
|
|
3400
|
-
* console.error(e);
|
|
3401
|
-
* throw e;
|
|
3402
|
-
* });
|
|
3403
|
-
*
|
|
3404
|
-
* ```
|
|
3405
2516
|
*
|
|
3406
2517
|
* @param params - Parameters for request
|
|
3407
2518
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3489,53 +2600,6 @@ export namespace tagmanager_v1 {
|
|
|
3489
2600
|
|
|
3490
2601
|
/**
|
|
3491
2602
|
* Lists all GTM Folders of a Container.
|
|
3492
|
-
* @example
|
|
3493
|
-
* ```js
|
|
3494
|
-
* // Before running the sample:
|
|
3495
|
-
* // - Enable the API at:
|
|
3496
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
3497
|
-
* // - Login into gcloud by running:
|
|
3498
|
-
* // `$ gcloud auth application-default login`
|
|
3499
|
-
* // - Install the npm module by running:
|
|
3500
|
-
* // `$ npm install googleapis`
|
|
3501
|
-
*
|
|
3502
|
-
* const {google} = require('googleapis');
|
|
3503
|
-
* const tagmanager = google.tagmanager('v1');
|
|
3504
|
-
*
|
|
3505
|
-
* async function main() {
|
|
3506
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3507
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3508
|
-
* scopes: [
|
|
3509
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
3510
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
3511
|
-
* ],
|
|
3512
|
-
* });
|
|
3513
|
-
*
|
|
3514
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3515
|
-
* const authClient = await auth.getClient();
|
|
3516
|
-
* google.options({auth: authClient});
|
|
3517
|
-
*
|
|
3518
|
-
* // Do the magic
|
|
3519
|
-
* const res = await tagmanager.accounts.containers.folders.list({
|
|
3520
|
-
* // The GTM Account ID.
|
|
3521
|
-
* accountId: 'placeholder-value',
|
|
3522
|
-
* // The GTM Container ID.
|
|
3523
|
-
* containerId: 'placeholder-value',
|
|
3524
|
-
* });
|
|
3525
|
-
* console.log(res.data);
|
|
3526
|
-
*
|
|
3527
|
-
* // Example response
|
|
3528
|
-
* // {
|
|
3529
|
-
* // "folders": []
|
|
3530
|
-
* // }
|
|
3531
|
-
* }
|
|
3532
|
-
*
|
|
3533
|
-
* main().catch(e => {
|
|
3534
|
-
* console.error(e);
|
|
3535
|
-
* throw e;
|
|
3536
|
-
* });
|
|
3537
|
-
*
|
|
3538
|
-
* ```
|
|
3539
2603
|
*
|
|
3540
2604
|
* @param params - Parameters for request
|
|
3541
2605
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3626,70 +2690,6 @@ export namespace tagmanager_v1 {
|
|
|
3626
2690
|
|
|
3627
2691
|
/**
|
|
3628
2692
|
* Updates a GTM Folder.
|
|
3629
|
-
* @example
|
|
3630
|
-
* ```js
|
|
3631
|
-
* // Before running the sample:
|
|
3632
|
-
* // - Enable the API at:
|
|
3633
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
3634
|
-
* // - Login into gcloud by running:
|
|
3635
|
-
* // `$ gcloud auth application-default login`
|
|
3636
|
-
* // - Install the npm module by running:
|
|
3637
|
-
* // `$ npm install googleapis`
|
|
3638
|
-
*
|
|
3639
|
-
* const {google} = require('googleapis');
|
|
3640
|
-
* const tagmanager = google.tagmanager('v1');
|
|
3641
|
-
*
|
|
3642
|
-
* async function main() {
|
|
3643
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3644
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3645
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
3646
|
-
* });
|
|
3647
|
-
*
|
|
3648
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3649
|
-
* const authClient = await auth.getClient();
|
|
3650
|
-
* google.options({auth: authClient});
|
|
3651
|
-
*
|
|
3652
|
-
* // Do the magic
|
|
3653
|
-
* const res = await tagmanager.accounts.containers.folders.update({
|
|
3654
|
-
* // The GTM Account ID.
|
|
3655
|
-
* accountId: 'placeholder-value',
|
|
3656
|
-
* // The GTM Container ID.
|
|
3657
|
-
* containerId: 'placeholder-value',
|
|
3658
|
-
* // When provided, this fingerprint must match the fingerprint of the folder in storage.
|
|
3659
|
-
* fingerprint: 'placeholder-value',
|
|
3660
|
-
* // The GTM Folder ID.
|
|
3661
|
-
* folderId: 'placeholder-value',
|
|
3662
|
-
*
|
|
3663
|
-
* // Request body metadata
|
|
3664
|
-
* requestBody: {
|
|
3665
|
-
* // request body parameters
|
|
3666
|
-
* // {
|
|
3667
|
-
* // "accountId": "my_accountId",
|
|
3668
|
-
* // "containerId": "my_containerId",
|
|
3669
|
-
* // "fingerprint": "my_fingerprint",
|
|
3670
|
-
* // "folderId": "my_folderId",
|
|
3671
|
-
* // "name": "my_name"
|
|
3672
|
-
* // }
|
|
3673
|
-
* },
|
|
3674
|
-
* });
|
|
3675
|
-
* console.log(res.data);
|
|
3676
|
-
*
|
|
3677
|
-
* // Example response
|
|
3678
|
-
* // {
|
|
3679
|
-
* // "accountId": "my_accountId",
|
|
3680
|
-
* // "containerId": "my_containerId",
|
|
3681
|
-
* // "fingerprint": "my_fingerprint",
|
|
3682
|
-
* // "folderId": "my_folderId",
|
|
3683
|
-
* // "name": "my_name"
|
|
3684
|
-
* // }
|
|
3685
|
-
* }
|
|
3686
|
-
*
|
|
3687
|
-
* main().catch(e => {
|
|
3688
|
-
* console.error(e);
|
|
3689
|
-
* throw e;
|
|
3690
|
-
* });
|
|
3691
|
-
*
|
|
3692
|
-
* ```
|
|
3693
2693
|
*
|
|
3694
2694
|
* @param params - Parameters for request
|
|
3695
2695
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3866,57 +2866,6 @@ export namespace tagmanager_v1 {
|
|
|
3866
2866
|
|
|
3867
2867
|
/**
|
|
3868
2868
|
* List all entities in a GTM Folder.
|
|
3869
|
-
* @example
|
|
3870
|
-
* ```js
|
|
3871
|
-
* // Before running the sample:
|
|
3872
|
-
* // - Enable the API at:
|
|
3873
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
3874
|
-
* // - Login into gcloud by running:
|
|
3875
|
-
* // `$ gcloud auth application-default login`
|
|
3876
|
-
* // - Install the npm module by running:
|
|
3877
|
-
* // `$ npm install googleapis`
|
|
3878
|
-
*
|
|
3879
|
-
* const {google} = require('googleapis');
|
|
3880
|
-
* const tagmanager = google.tagmanager('v1');
|
|
3881
|
-
*
|
|
3882
|
-
* async function main() {
|
|
3883
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3884
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3885
|
-
* scopes: [
|
|
3886
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
3887
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
3888
|
-
* ],
|
|
3889
|
-
* });
|
|
3890
|
-
*
|
|
3891
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3892
|
-
* const authClient = await auth.getClient();
|
|
3893
|
-
* google.options({auth: authClient});
|
|
3894
|
-
*
|
|
3895
|
-
* // Do the magic
|
|
3896
|
-
* const res = await tagmanager.accounts.containers.folders.entities.list({
|
|
3897
|
-
* // The GTM Account ID.
|
|
3898
|
-
* accountId: 'placeholder-value',
|
|
3899
|
-
* // The GTM Container ID.
|
|
3900
|
-
* containerId: 'placeholder-value',
|
|
3901
|
-
* // The GTM Folder ID.
|
|
3902
|
-
* folderId: 'placeholder-value',
|
|
3903
|
-
* });
|
|
3904
|
-
* console.log(res.data);
|
|
3905
|
-
*
|
|
3906
|
-
* // Example response
|
|
3907
|
-
* // {
|
|
3908
|
-
* // "tag": [],
|
|
3909
|
-
* // "trigger": [],
|
|
3910
|
-
* // "variable": []
|
|
3911
|
-
* // }
|
|
3912
|
-
* }
|
|
3913
|
-
*
|
|
3914
|
-
* main().catch(e => {
|
|
3915
|
-
* console.error(e);
|
|
3916
|
-
* throw e;
|
|
3917
|
-
* });
|
|
3918
|
-
*
|
|
3919
|
-
* ```
|
|
3920
2869
|
*
|
|
3921
2870
|
* @param params - Parameters for request
|
|
3922
2871
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4028,65 +2977,6 @@ export namespace tagmanager_v1 {
|
|
|
4028
2977
|
|
|
4029
2978
|
/**
|
|
4030
2979
|
* Moves entities to a GTM Folder.
|
|
4031
|
-
* @example
|
|
4032
|
-
* ```js
|
|
4033
|
-
* // Before running the sample:
|
|
4034
|
-
* // - Enable the API at:
|
|
4035
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4036
|
-
* // - Login into gcloud by running:
|
|
4037
|
-
* // `$ gcloud auth application-default login`
|
|
4038
|
-
* // - Install the npm module by running:
|
|
4039
|
-
* // `$ npm install googleapis`
|
|
4040
|
-
*
|
|
4041
|
-
* const {google} = require('googleapis');
|
|
4042
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4043
|
-
*
|
|
4044
|
-
* async function main() {
|
|
4045
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4046
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4047
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
4048
|
-
* });
|
|
4049
|
-
*
|
|
4050
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4051
|
-
* const authClient = await auth.getClient();
|
|
4052
|
-
* google.options({auth: authClient});
|
|
4053
|
-
*
|
|
4054
|
-
* // Do the magic
|
|
4055
|
-
* const res = await tagmanager.accounts.containers.move_folders.update({
|
|
4056
|
-
* // The GTM Account ID.
|
|
4057
|
-
* accountId: 'placeholder-value',
|
|
4058
|
-
* // The GTM Container ID.
|
|
4059
|
-
* containerId: 'placeholder-value',
|
|
4060
|
-
* // The GTM Folder ID.
|
|
4061
|
-
* folderId: 'placeholder-value',
|
|
4062
|
-
* // The tags to be moved to the folder.
|
|
4063
|
-
* tagId: 'placeholder-value',
|
|
4064
|
-
* // The triggers to be moved to the folder.
|
|
4065
|
-
* triggerId: 'placeholder-value',
|
|
4066
|
-
* // The variables to be moved to the folder.
|
|
4067
|
-
* variableId: 'placeholder-value',
|
|
4068
|
-
*
|
|
4069
|
-
* // Request body metadata
|
|
4070
|
-
* requestBody: {
|
|
4071
|
-
* // request body parameters
|
|
4072
|
-
* // {
|
|
4073
|
-
* // "accountId": "my_accountId",
|
|
4074
|
-
* // "containerId": "my_containerId",
|
|
4075
|
-
* // "fingerprint": "my_fingerprint",
|
|
4076
|
-
* // "folderId": "my_folderId",
|
|
4077
|
-
* // "name": "my_name"
|
|
4078
|
-
* // }
|
|
4079
|
-
* },
|
|
4080
|
-
* });
|
|
4081
|
-
* console.log(res.data);
|
|
4082
|
-
* }
|
|
4083
|
-
*
|
|
4084
|
-
* main().catch(e => {
|
|
4085
|
-
* console.error(e);
|
|
4086
|
-
* throw e;
|
|
4087
|
-
* });
|
|
4088
|
-
*
|
|
4089
|
-
* ```
|
|
4090
2980
|
*
|
|
4091
2981
|
* @param params - Parameters for request
|
|
4092
2982
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4212,83 +3102,6 @@ export namespace tagmanager_v1 {
|
|
|
4212
3102
|
|
|
4213
3103
|
/**
|
|
4214
3104
|
* Re-generates the authorization code for a GTM Environment.
|
|
4215
|
-
* @example
|
|
4216
|
-
* ```js
|
|
4217
|
-
* // Before running the sample:
|
|
4218
|
-
* // - Enable the API at:
|
|
4219
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4220
|
-
* // - Login into gcloud by running:
|
|
4221
|
-
* // `$ gcloud auth application-default login`
|
|
4222
|
-
* // - Install the npm module by running:
|
|
4223
|
-
* // `$ npm install googleapis`
|
|
4224
|
-
*
|
|
4225
|
-
* const {google} = require('googleapis');
|
|
4226
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4227
|
-
*
|
|
4228
|
-
* async function main() {
|
|
4229
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4230
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4231
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.publish'],
|
|
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 =
|
|
4240
|
-
* await tagmanager.accounts.containers.reauthorize_environments.update({
|
|
4241
|
-
* // The GTM Account ID.
|
|
4242
|
-
* accountId: 'placeholder-value',
|
|
4243
|
-
* // The GTM Container ID.
|
|
4244
|
-
* containerId: 'placeholder-value',
|
|
4245
|
-
* // The GTM Environment ID.
|
|
4246
|
-
* environmentId: 'placeholder-value',
|
|
4247
|
-
*
|
|
4248
|
-
* // Request body metadata
|
|
4249
|
-
* requestBody: {
|
|
4250
|
-
* // request body parameters
|
|
4251
|
-
* // {
|
|
4252
|
-
* // "accountId": "my_accountId",
|
|
4253
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
4254
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
4255
|
-
* // "containerId": "my_containerId",
|
|
4256
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
4257
|
-
* // "description": "my_description",
|
|
4258
|
-
* // "enableDebug": false,
|
|
4259
|
-
* // "environmentId": "my_environmentId",
|
|
4260
|
-
* // "fingerprint": "my_fingerprint",
|
|
4261
|
-
* // "name": "my_name",
|
|
4262
|
-
* // "type": "my_type",
|
|
4263
|
-
* // "url": "my_url"
|
|
4264
|
-
* // }
|
|
4265
|
-
* },
|
|
4266
|
-
* });
|
|
4267
|
-
* console.log(res.data);
|
|
4268
|
-
*
|
|
4269
|
-
* // Example response
|
|
4270
|
-
* // {
|
|
4271
|
-
* // "accountId": "my_accountId",
|
|
4272
|
-
* // "authorizationCode": "my_authorizationCode",
|
|
4273
|
-
* // "authorizationTimestampMs": "my_authorizationTimestampMs",
|
|
4274
|
-
* // "containerId": "my_containerId",
|
|
4275
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
4276
|
-
* // "description": "my_description",
|
|
4277
|
-
* // "enableDebug": false,
|
|
4278
|
-
* // "environmentId": "my_environmentId",
|
|
4279
|
-
* // "fingerprint": "my_fingerprint",
|
|
4280
|
-
* // "name": "my_name",
|
|
4281
|
-
* // "type": "my_type",
|
|
4282
|
-
* // "url": "my_url"
|
|
4283
|
-
* // }
|
|
4284
|
-
* }
|
|
4285
|
-
*
|
|
4286
|
-
* main().catch(e => {
|
|
4287
|
-
* console.error(e);
|
|
4288
|
-
* throw e;
|
|
4289
|
-
* });
|
|
4290
|
-
*
|
|
4291
|
-
* ```
|
|
4292
3105
|
*
|
|
4293
3106
|
* @param params - Parameters for request
|
|
4294
3107
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4405,98 +3218,6 @@ export namespace tagmanager_v1 {
|
|
|
4405
3218
|
|
|
4406
3219
|
/**
|
|
4407
3220
|
* Creates a GTM Tag.
|
|
4408
|
-
* @example
|
|
4409
|
-
* ```js
|
|
4410
|
-
* // Before running the sample:
|
|
4411
|
-
* // - Enable the API at:
|
|
4412
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4413
|
-
* // - Login into gcloud by running:
|
|
4414
|
-
* // `$ gcloud auth application-default login`
|
|
4415
|
-
* // - Install the npm module by running:
|
|
4416
|
-
* // `$ npm install googleapis`
|
|
4417
|
-
*
|
|
4418
|
-
* const {google} = require('googleapis');
|
|
4419
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4420
|
-
*
|
|
4421
|
-
* async function main() {
|
|
4422
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4423
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4424
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
4425
|
-
* });
|
|
4426
|
-
*
|
|
4427
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4428
|
-
* const authClient = await auth.getClient();
|
|
4429
|
-
* google.options({auth: authClient});
|
|
4430
|
-
*
|
|
4431
|
-
* // Do the magic
|
|
4432
|
-
* const res = await tagmanager.accounts.containers.tags.create({
|
|
4433
|
-
* // The GTM Account ID.
|
|
4434
|
-
* accountId: 'placeholder-value',
|
|
4435
|
-
* // The GTM Container ID.
|
|
4436
|
-
* containerId: 'placeholder-value',
|
|
4437
|
-
*
|
|
4438
|
-
* // Request body metadata
|
|
4439
|
-
* requestBody: {
|
|
4440
|
-
* // request body parameters
|
|
4441
|
-
* // {
|
|
4442
|
-
* // "accountId": "my_accountId",
|
|
4443
|
-
* // "blockingRuleId": [],
|
|
4444
|
-
* // "blockingTriggerId": [],
|
|
4445
|
-
* // "containerId": "my_containerId",
|
|
4446
|
-
* // "fingerprint": "my_fingerprint",
|
|
4447
|
-
* // "firingRuleId": [],
|
|
4448
|
-
* // "firingTriggerId": [],
|
|
4449
|
-
* // "liveOnly": false,
|
|
4450
|
-
* // "name": "my_name",
|
|
4451
|
-
* // "notes": "my_notes",
|
|
4452
|
-
* // "parameter": [],
|
|
4453
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
4454
|
-
* // "paused": false,
|
|
4455
|
-
* // "priority": {},
|
|
4456
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
4457
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
4458
|
-
* // "setupTag": [],
|
|
4459
|
-
* // "tagFiringOption": "my_tagFiringOption",
|
|
4460
|
-
* // "tagId": "my_tagId",
|
|
4461
|
-
* // "teardownTag": [],
|
|
4462
|
-
* // "type": "my_type"
|
|
4463
|
-
* // }
|
|
4464
|
-
* },
|
|
4465
|
-
* });
|
|
4466
|
-
* console.log(res.data);
|
|
4467
|
-
*
|
|
4468
|
-
* // Example response
|
|
4469
|
-
* // {
|
|
4470
|
-
* // "accountId": "my_accountId",
|
|
4471
|
-
* // "blockingRuleId": [],
|
|
4472
|
-
* // "blockingTriggerId": [],
|
|
4473
|
-
* // "containerId": "my_containerId",
|
|
4474
|
-
* // "fingerprint": "my_fingerprint",
|
|
4475
|
-
* // "firingRuleId": [],
|
|
4476
|
-
* // "firingTriggerId": [],
|
|
4477
|
-
* // "liveOnly": false,
|
|
4478
|
-
* // "name": "my_name",
|
|
4479
|
-
* // "notes": "my_notes",
|
|
4480
|
-
* // "parameter": [],
|
|
4481
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
4482
|
-
* // "paused": false,
|
|
4483
|
-
* // "priority": {},
|
|
4484
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
4485
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
4486
|
-
* // "setupTag": [],
|
|
4487
|
-
* // "tagFiringOption": "my_tagFiringOption",
|
|
4488
|
-
* // "tagId": "my_tagId",
|
|
4489
|
-
* // "teardownTag": [],
|
|
4490
|
-
* // "type": "my_type"
|
|
4491
|
-
* // }
|
|
4492
|
-
* }
|
|
4493
|
-
*
|
|
4494
|
-
* main().catch(e => {
|
|
4495
|
-
* console.error(e);
|
|
4496
|
-
* throw e;
|
|
4497
|
-
* });
|
|
4498
|
-
*
|
|
4499
|
-
* ```
|
|
4500
3221
|
*
|
|
4501
3222
|
* @param params - Parameters for request
|
|
4502
3223
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4584,47 +3305,6 @@ export namespace tagmanager_v1 {
|
|
|
4584
3305
|
|
|
4585
3306
|
/**
|
|
4586
3307
|
* Deletes a GTM Tag.
|
|
4587
|
-
* @example
|
|
4588
|
-
* ```js
|
|
4589
|
-
* // Before running the sample:
|
|
4590
|
-
* // - Enable the API at:
|
|
4591
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4592
|
-
* // - Login into gcloud by running:
|
|
4593
|
-
* // `$ gcloud auth application-default login`
|
|
4594
|
-
* // - Install the npm module by running:
|
|
4595
|
-
* // `$ npm install googleapis`
|
|
4596
|
-
*
|
|
4597
|
-
* const {google} = require('googleapis');
|
|
4598
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4599
|
-
*
|
|
4600
|
-
* async function main() {
|
|
4601
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4602
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4603
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
4604
|
-
* });
|
|
4605
|
-
*
|
|
4606
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4607
|
-
* const authClient = await auth.getClient();
|
|
4608
|
-
* google.options({auth: authClient});
|
|
4609
|
-
*
|
|
4610
|
-
* // Do the magic
|
|
4611
|
-
* const res = await tagmanager.accounts.containers.tags.delete({
|
|
4612
|
-
* // The GTM Account ID.
|
|
4613
|
-
* accountId: 'placeholder-value',
|
|
4614
|
-
* // The GTM Container ID.
|
|
4615
|
-
* containerId: 'placeholder-value',
|
|
4616
|
-
* // The GTM Tag ID.
|
|
4617
|
-
* tagId: 'placeholder-value',
|
|
4618
|
-
* });
|
|
4619
|
-
* console.log(res.data);
|
|
4620
|
-
* }
|
|
4621
|
-
*
|
|
4622
|
-
* main().catch(e => {
|
|
4623
|
-
* console.error(e);
|
|
4624
|
-
* throw e;
|
|
4625
|
-
* });
|
|
4626
|
-
*
|
|
4627
|
-
* ```
|
|
4628
3308
|
*
|
|
4629
3309
|
* @param params - Parameters for request
|
|
4630
3310
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4710,75 +3390,6 @@ export namespace tagmanager_v1 {
|
|
|
4710
3390
|
|
|
4711
3391
|
/**
|
|
4712
3392
|
* Gets a GTM Tag.
|
|
4713
|
-
* @example
|
|
4714
|
-
* ```js
|
|
4715
|
-
* // Before running the sample:
|
|
4716
|
-
* // - Enable the API at:
|
|
4717
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4718
|
-
* // - Login into gcloud by running:
|
|
4719
|
-
* // `$ gcloud auth application-default login`
|
|
4720
|
-
* // - Install the npm module by running:
|
|
4721
|
-
* // `$ npm install googleapis`
|
|
4722
|
-
*
|
|
4723
|
-
* const {google} = require('googleapis');
|
|
4724
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4725
|
-
*
|
|
4726
|
-
* async function main() {
|
|
4727
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4728
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4729
|
-
* scopes: [
|
|
4730
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
4731
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
4732
|
-
* ],
|
|
4733
|
-
* });
|
|
4734
|
-
*
|
|
4735
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4736
|
-
* const authClient = await auth.getClient();
|
|
4737
|
-
* google.options({auth: authClient});
|
|
4738
|
-
*
|
|
4739
|
-
* // Do the magic
|
|
4740
|
-
* const res = await tagmanager.accounts.containers.tags.get({
|
|
4741
|
-
* // The GTM Account ID.
|
|
4742
|
-
* accountId: 'placeholder-value',
|
|
4743
|
-
* // The GTM Container ID.
|
|
4744
|
-
* containerId: 'placeholder-value',
|
|
4745
|
-
* // The GTM Tag ID.
|
|
4746
|
-
* tagId: 'placeholder-value',
|
|
4747
|
-
* });
|
|
4748
|
-
* console.log(res.data);
|
|
4749
|
-
*
|
|
4750
|
-
* // Example response
|
|
4751
|
-
* // {
|
|
4752
|
-
* // "accountId": "my_accountId",
|
|
4753
|
-
* // "blockingRuleId": [],
|
|
4754
|
-
* // "blockingTriggerId": [],
|
|
4755
|
-
* // "containerId": "my_containerId",
|
|
4756
|
-
* // "fingerprint": "my_fingerprint",
|
|
4757
|
-
* // "firingRuleId": [],
|
|
4758
|
-
* // "firingTriggerId": [],
|
|
4759
|
-
* // "liveOnly": false,
|
|
4760
|
-
* // "name": "my_name",
|
|
4761
|
-
* // "notes": "my_notes",
|
|
4762
|
-
* // "parameter": [],
|
|
4763
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
4764
|
-
* // "paused": false,
|
|
4765
|
-
* // "priority": {},
|
|
4766
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
4767
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
4768
|
-
* // "setupTag": [],
|
|
4769
|
-
* // "tagFiringOption": "my_tagFiringOption",
|
|
4770
|
-
* // "tagId": "my_tagId",
|
|
4771
|
-
* // "teardownTag": [],
|
|
4772
|
-
* // "type": "my_type"
|
|
4773
|
-
* // }
|
|
4774
|
-
* }
|
|
4775
|
-
*
|
|
4776
|
-
* main().catch(e => {
|
|
4777
|
-
* console.error(e);
|
|
4778
|
-
* throw e;
|
|
4779
|
-
* });
|
|
4780
|
-
*
|
|
4781
|
-
* ```
|
|
4782
3393
|
*
|
|
4783
3394
|
* @param params - Parameters for request
|
|
4784
3395
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4866,53 +3477,6 @@ export namespace tagmanager_v1 {
|
|
|
4866
3477
|
|
|
4867
3478
|
/**
|
|
4868
3479
|
* Lists all GTM Tags of a Container.
|
|
4869
|
-
* @example
|
|
4870
|
-
* ```js
|
|
4871
|
-
* // Before running the sample:
|
|
4872
|
-
* // - Enable the API at:
|
|
4873
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
4874
|
-
* // - Login into gcloud by running:
|
|
4875
|
-
* // `$ gcloud auth application-default login`
|
|
4876
|
-
* // - Install the npm module by running:
|
|
4877
|
-
* // `$ npm install googleapis`
|
|
4878
|
-
*
|
|
4879
|
-
* const {google} = require('googleapis');
|
|
4880
|
-
* const tagmanager = google.tagmanager('v1');
|
|
4881
|
-
*
|
|
4882
|
-
* async function main() {
|
|
4883
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4884
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4885
|
-
* scopes: [
|
|
4886
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
4887
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
4888
|
-
* ],
|
|
4889
|
-
* });
|
|
4890
|
-
*
|
|
4891
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4892
|
-
* const authClient = await auth.getClient();
|
|
4893
|
-
* google.options({auth: authClient});
|
|
4894
|
-
*
|
|
4895
|
-
* // Do the magic
|
|
4896
|
-
* const res = await tagmanager.accounts.containers.tags.list({
|
|
4897
|
-
* // The GTM Account ID.
|
|
4898
|
-
* accountId: 'placeholder-value',
|
|
4899
|
-
* // The GTM Container ID.
|
|
4900
|
-
* containerId: 'placeholder-value',
|
|
4901
|
-
* });
|
|
4902
|
-
* console.log(res.data);
|
|
4903
|
-
*
|
|
4904
|
-
* // Example response
|
|
4905
|
-
* // {
|
|
4906
|
-
* // "tags": []
|
|
4907
|
-
* // }
|
|
4908
|
-
* }
|
|
4909
|
-
*
|
|
4910
|
-
* main().catch(e => {
|
|
4911
|
-
* console.error(e);
|
|
4912
|
-
* throw e;
|
|
4913
|
-
* });
|
|
4914
|
-
*
|
|
4915
|
-
* ```
|
|
4916
3480
|
*
|
|
4917
3481
|
* @param params - Parameters for request
|
|
4918
3482
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5000,102 +3564,6 @@ export namespace tagmanager_v1 {
|
|
|
5000
3564
|
|
|
5001
3565
|
/**
|
|
5002
3566
|
* Updates a GTM Tag.
|
|
5003
|
-
* @example
|
|
5004
|
-
* ```js
|
|
5005
|
-
* // Before running the sample:
|
|
5006
|
-
* // - Enable the API at:
|
|
5007
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5008
|
-
* // - Login into gcloud by running:
|
|
5009
|
-
* // `$ gcloud auth application-default login`
|
|
5010
|
-
* // - Install the npm module by running:
|
|
5011
|
-
* // `$ npm install googleapis`
|
|
5012
|
-
*
|
|
5013
|
-
* const {google} = require('googleapis');
|
|
5014
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5015
|
-
*
|
|
5016
|
-
* async function main() {
|
|
5017
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5018
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5019
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
5020
|
-
* });
|
|
5021
|
-
*
|
|
5022
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5023
|
-
* const authClient = await auth.getClient();
|
|
5024
|
-
* google.options({auth: authClient});
|
|
5025
|
-
*
|
|
5026
|
-
* // Do the magic
|
|
5027
|
-
* const res = await tagmanager.accounts.containers.tags.update({
|
|
5028
|
-
* // The GTM Account ID.
|
|
5029
|
-
* accountId: 'placeholder-value',
|
|
5030
|
-
* // The GTM Container ID.
|
|
5031
|
-
* containerId: 'placeholder-value',
|
|
5032
|
-
* // When provided, this fingerprint must match the fingerprint of the tag in storage.
|
|
5033
|
-
* fingerprint: 'placeholder-value',
|
|
5034
|
-
* // The GTM Tag ID.
|
|
5035
|
-
* tagId: 'placeholder-value',
|
|
5036
|
-
*
|
|
5037
|
-
* // Request body metadata
|
|
5038
|
-
* requestBody: {
|
|
5039
|
-
* // request body parameters
|
|
5040
|
-
* // {
|
|
5041
|
-
* // "accountId": "my_accountId",
|
|
5042
|
-
* // "blockingRuleId": [],
|
|
5043
|
-
* // "blockingTriggerId": [],
|
|
5044
|
-
* // "containerId": "my_containerId",
|
|
5045
|
-
* // "fingerprint": "my_fingerprint",
|
|
5046
|
-
* // "firingRuleId": [],
|
|
5047
|
-
* // "firingTriggerId": [],
|
|
5048
|
-
* // "liveOnly": false,
|
|
5049
|
-
* // "name": "my_name",
|
|
5050
|
-
* // "notes": "my_notes",
|
|
5051
|
-
* // "parameter": [],
|
|
5052
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5053
|
-
* // "paused": false,
|
|
5054
|
-
* // "priority": {},
|
|
5055
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
5056
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
5057
|
-
* // "setupTag": [],
|
|
5058
|
-
* // "tagFiringOption": "my_tagFiringOption",
|
|
5059
|
-
* // "tagId": "my_tagId",
|
|
5060
|
-
* // "teardownTag": [],
|
|
5061
|
-
* // "type": "my_type"
|
|
5062
|
-
* // }
|
|
5063
|
-
* },
|
|
5064
|
-
* });
|
|
5065
|
-
* console.log(res.data);
|
|
5066
|
-
*
|
|
5067
|
-
* // Example response
|
|
5068
|
-
* // {
|
|
5069
|
-
* // "accountId": "my_accountId",
|
|
5070
|
-
* // "blockingRuleId": [],
|
|
5071
|
-
* // "blockingTriggerId": [],
|
|
5072
|
-
* // "containerId": "my_containerId",
|
|
5073
|
-
* // "fingerprint": "my_fingerprint",
|
|
5074
|
-
* // "firingRuleId": [],
|
|
5075
|
-
* // "firingTriggerId": [],
|
|
5076
|
-
* // "liveOnly": false,
|
|
5077
|
-
* // "name": "my_name",
|
|
5078
|
-
* // "notes": "my_notes",
|
|
5079
|
-
* // "parameter": [],
|
|
5080
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5081
|
-
* // "paused": false,
|
|
5082
|
-
* // "priority": {},
|
|
5083
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
5084
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
5085
|
-
* // "setupTag": [],
|
|
5086
|
-
* // "tagFiringOption": "my_tagFiringOption",
|
|
5087
|
-
* // "tagId": "my_tagId",
|
|
5088
|
-
* // "teardownTag": [],
|
|
5089
|
-
* // "type": "my_type"
|
|
5090
|
-
* // }
|
|
5091
|
-
* }
|
|
5092
|
-
*
|
|
5093
|
-
* main().catch(e => {
|
|
5094
|
-
* console.error(e);
|
|
5095
|
-
* throw e;
|
|
5096
|
-
* });
|
|
5097
|
-
*
|
|
5098
|
-
* ```
|
|
5099
3567
|
*
|
|
5100
3568
|
* @param params - Parameters for request
|
|
5101
3569
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5272,112 +3740,6 @@ export namespace tagmanager_v1 {
|
|
|
5272
3740
|
|
|
5273
3741
|
/**
|
|
5274
3742
|
* Creates a GTM Trigger.
|
|
5275
|
-
* @example
|
|
5276
|
-
* ```js
|
|
5277
|
-
* // Before running the sample:
|
|
5278
|
-
* // - Enable the API at:
|
|
5279
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5280
|
-
* // - Login into gcloud by running:
|
|
5281
|
-
* // `$ gcloud auth application-default login`
|
|
5282
|
-
* // - Install the npm module by running:
|
|
5283
|
-
* // `$ npm install googleapis`
|
|
5284
|
-
*
|
|
5285
|
-
* const {google} = require('googleapis');
|
|
5286
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5287
|
-
*
|
|
5288
|
-
* async function main() {
|
|
5289
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5290
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5291
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
5292
|
-
* });
|
|
5293
|
-
*
|
|
5294
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5295
|
-
* const authClient = await auth.getClient();
|
|
5296
|
-
* google.options({auth: authClient});
|
|
5297
|
-
*
|
|
5298
|
-
* // Do the magic
|
|
5299
|
-
* const res = await tagmanager.accounts.containers.triggers.create({
|
|
5300
|
-
* // The GTM Account ID.
|
|
5301
|
-
* accountId: 'placeholder-value',
|
|
5302
|
-
* // The GTM Container ID.
|
|
5303
|
-
* containerId: 'placeholder-value',
|
|
5304
|
-
*
|
|
5305
|
-
* // Request body metadata
|
|
5306
|
-
* requestBody: {
|
|
5307
|
-
* // request body parameters
|
|
5308
|
-
* // {
|
|
5309
|
-
* // "accountId": "my_accountId",
|
|
5310
|
-
* // "autoEventFilter": [],
|
|
5311
|
-
* // "checkValidation": {},
|
|
5312
|
-
* // "containerId": "my_containerId",
|
|
5313
|
-
* // "continuousTimeMinMilliseconds": {},
|
|
5314
|
-
* // "customEventFilter": [],
|
|
5315
|
-
* // "eventName": {},
|
|
5316
|
-
* // "filter": [],
|
|
5317
|
-
* // "fingerprint": "my_fingerprint",
|
|
5318
|
-
* // "horizontalScrollPercentageList": {},
|
|
5319
|
-
* // "interval": {},
|
|
5320
|
-
* // "intervalSeconds": {},
|
|
5321
|
-
* // "limit": {},
|
|
5322
|
-
* // "maxTimerLengthSeconds": {},
|
|
5323
|
-
* // "name": "my_name",
|
|
5324
|
-
* // "parameter": [],
|
|
5325
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5326
|
-
* // "selector": {},
|
|
5327
|
-
* // "totalTimeMinMilliseconds": {},
|
|
5328
|
-
* // "triggerId": "my_triggerId",
|
|
5329
|
-
* // "type": "my_type",
|
|
5330
|
-
* // "uniqueTriggerId": {},
|
|
5331
|
-
* // "verticalScrollPercentageList": {},
|
|
5332
|
-
* // "visibilitySelector": {},
|
|
5333
|
-
* // "visiblePercentageMax": {},
|
|
5334
|
-
* // "visiblePercentageMin": {},
|
|
5335
|
-
* // "waitForTags": {},
|
|
5336
|
-
* // "waitForTagsTimeout": {}
|
|
5337
|
-
* // }
|
|
5338
|
-
* },
|
|
5339
|
-
* });
|
|
5340
|
-
* console.log(res.data);
|
|
5341
|
-
*
|
|
5342
|
-
* // Example response
|
|
5343
|
-
* // {
|
|
5344
|
-
* // "accountId": "my_accountId",
|
|
5345
|
-
* // "autoEventFilter": [],
|
|
5346
|
-
* // "checkValidation": {},
|
|
5347
|
-
* // "containerId": "my_containerId",
|
|
5348
|
-
* // "continuousTimeMinMilliseconds": {},
|
|
5349
|
-
* // "customEventFilter": [],
|
|
5350
|
-
* // "eventName": {},
|
|
5351
|
-
* // "filter": [],
|
|
5352
|
-
* // "fingerprint": "my_fingerprint",
|
|
5353
|
-
* // "horizontalScrollPercentageList": {},
|
|
5354
|
-
* // "interval": {},
|
|
5355
|
-
* // "intervalSeconds": {},
|
|
5356
|
-
* // "limit": {},
|
|
5357
|
-
* // "maxTimerLengthSeconds": {},
|
|
5358
|
-
* // "name": "my_name",
|
|
5359
|
-
* // "parameter": [],
|
|
5360
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5361
|
-
* // "selector": {},
|
|
5362
|
-
* // "totalTimeMinMilliseconds": {},
|
|
5363
|
-
* // "triggerId": "my_triggerId",
|
|
5364
|
-
* // "type": "my_type",
|
|
5365
|
-
* // "uniqueTriggerId": {},
|
|
5366
|
-
* // "verticalScrollPercentageList": {},
|
|
5367
|
-
* // "visibilitySelector": {},
|
|
5368
|
-
* // "visiblePercentageMax": {},
|
|
5369
|
-
* // "visiblePercentageMin": {},
|
|
5370
|
-
* // "waitForTags": {},
|
|
5371
|
-
* // "waitForTagsTimeout": {}
|
|
5372
|
-
* // }
|
|
5373
|
-
* }
|
|
5374
|
-
*
|
|
5375
|
-
* main().catch(e => {
|
|
5376
|
-
* console.error(e);
|
|
5377
|
-
* throw e;
|
|
5378
|
-
* });
|
|
5379
|
-
*
|
|
5380
|
-
* ```
|
|
5381
3743
|
*
|
|
5382
3744
|
* @param params - Parameters for request
|
|
5383
3745
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5465,47 +3827,6 @@ export namespace tagmanager_v1 {
|
|
|
5465
3827
|
|
|
5466
3828
|
/**
|
|
5467
3829
|
* Deletes a GTM Trigger.
|
|
5468
|
-
* @example
|
|
5469
|
-
* ```js
|
|
5470
|
-
* // Before running the sample:
|
|
5471
|
-
* // - Enable the API at:
|
|
5472
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5473
|
-
* // - Login into gcloud by running:
|
|
5474
|
-
* // `$ gcloud auth application-default login`
|
|
5475
|
-
* // - Install the npm module by running:
|
|
5476
|
-
* // `$ npm install googleapis`
|
|
5477
|
-
*
|
|
5478
|
-
* const {google} = require('googleapis');
|
|
5479
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5480
|
-
*
|
|
5481
|
-
* async function main() {
|
|
5482
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5483
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5484
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
5485
|
-
* });
|
|
5486
|
-
*
|
|
5487
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5488
|
-
* const authClient = await auth.getClient();
|
|
5489
|
-
* google.options({auth: authClient});
|
|
5490
|
-
*
|
|
5491
|
-
* // Do the magic
|
|
5492
|
-
* const res = await tagmanager.accounts.containers.triggers.delete({
|
|
5493
|
-
* // The GTM Account ID.
|
|
5494
|
-
* accountId: 'placeholder-value',
|
|
5495
|
-
* // The GTM Container ID.
|
|
5496
|
-
* containerId: 'placeholder-value',
|
|
5497
|
-
* // The GTM Trigger ID.
|
|
5498
|
-
* triggerId: 'placeholder-value',
|
|
5499
|
-
* });
|
|
5500
|
-
* console.log(res.data);
|
|
5501
|
-
* }
|
|
5502
|
-
*
|
|
5503
|
-
* main().catch(e => {
|
|
5504
|
-
* console.error(e);
|
|
5505
|
-
* throw e;
|
|
5506
|
-
* });
|
|
5507
|
-
*
|
|
5508
|
-
* ```
|
|
5509
3830
|
*
|
|
5510
3831
|
* @param params - Parameters for request
|
|
5511
3832
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5591,82 +3912,6 @@ export namespace tagmanager_v1 {
|
|
|
5591
3912
|
|
|
5592
3913
|
/**
|
|
5593
3914
|
* Gets a GTM Trigger.
|
|
5594
|
-
* @example
|
|
5595
|
-
* ```js
|
|
5596
|
-
* // Before running the sample:
|
|
5597
|
-
* // - Enable the API at:
|
|
5598
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5599
|
-
* // - Login into gcloud by running:
|
|
5600
|
-
* // `$ gcloud auth application-default login`
|
|
5601
|
-
* // - Install the npm module by running:
|
|
5602
|
-
* // `$ npm install googleapis`
|
|
5603
|
-
*
|
|
5604
|
-
* const {google} = require('googleapis');
|
|
5605
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5606
|
-
*
|
|
5607
|
-
* async function main() {
|
|
5608
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5609
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5610
|
-
* scopes: [
|
|
5611
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
5612
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
5613
|
-
* ],
|
|
5614
|
-
* });
|
|
5615
|
-
*
|
|
5616
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5617
|
-
* const authClient = await auth.getClient();
|
|
5618
|
-
* google.options({auth: authClient});
|
|
5619
|
-
*
|
|
5620
|
-
* // Do the magic
|
|
5621
|
-
* const res = await tagmanager.accounts.containers.triggers.get({
|
|
5622
|
-
* // The GTM Account ID.
|
|
5623
|
-
* accountId: 'placeholder-value',
|
|
5624
|
-
* // The GTM Container ID.
|
|
5625
|
-
* containerId: 'placeholder-value',
|
|
5626
|
-
* // The GTM Trigger ID.
|
|
5627
|
-
* triggerId: 'placeholder-value',
|
|
5628
|
-
* });
|
|
5629
|
-
* console.log(res.data);
|
|
5630
|
-
*
|
|
5631
|
-
* // Example response
|
|
5632
|
-
* // {
|
|
5633
|
-
* // "accountId": "my_accountId",
|
|
5634
|
-
* // "autoEventFilter": [],
|
|
5635
|
-
* // "checkValidation": {},
|
|
5636
|
-
* // "containerId": "my_containerId",
|
|
5637
|
-
* // "continuousTimeMinMilliseconds": {},
|
|
5638
|
-
* // "customEventFilter": [],
|
|
5639
|
-
* // "eventName": {},
|
|
5640
|
-
* // "filter": [],
|
|
5641
|
-
* // "fingerprint": "my_fingerprint",
|
|
5642
|
-
* // "horizontalScrollPercentageList": {},
|
|
5643
|
-
* // "interval": {},
|
|
5644
|
-
* // "intervalSeconds": {},
|
|
5645
|
-
* // "limit": {},
|
|
5646
|
-
* // "maxTimerLengthSeconds": {},
|
|
5647
|
-
* // "name": "my_name",
|
|
5648
|
-
* // "parameter": [],
|
|
5649
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5650
|
-
* // "selector": {},
|
|
5651
|
-
* // "totalTimeMinMilliseconds": {},
|
|
5652
|
-
* // "triggerId": "my_triggerId",
|
|
5653
|
-
* // "type": "my_type",
|
|
5654
|
-
* // "uniqueTriggerId": {},
|
|
5655
|
-
* // "verticalScrollPercentageList": {},
|
|
5656
|
-
* // "visibilitySelector": {},
|
|
5657
|
-
* // "visiblePercentageMax": {},
|
|
5658
|
-
* // "visiblePercentageMin": {},
|
|
5659
|
-
* // "waitForTags": {},
|
|
5660
|
-
* // "waitForTagsTimeout": {}
|
|
5661
|
-
* // }
|
|
5662
|
-
* }
|
|
5663
|
-
*
|
|
5664
|
-
* main().catch(e => {
|
|
5665
|
-
* console.error(e);
|
|
5666
|
-
* throw e;
|
|
5667
|
-
* });
|
|
5668
|
-
*
|
|
5669
|
-
* ```
|
|
5670
3915
|
*
|
|
5671
3916
|
* @param params - Parameters for request
|
|
5672
3917
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5754,53 +3999,6 @@ export namespace tagmanager_v1 {
|
|
|
5754
3999
|
|
|
5755
4000
|
/**
|
|
5756
4001
|
* Lists all GTM Triggers of a Container.
|
|
5757
|
-
* @example
|
|
5758
|
-
* ```js
|
|
5759
|
-
* // Before running the sample:
|
|
5760
|
-
* // - Enable the API at:
|
|
5761
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5762
|
-
* // - Login into gcloud by running:
|
|
5763
|
-
* // `$ gcloud auth application-default login`
|
|
5764
|
-
* // - Install the npm module by running:
|
|
5765
|
-
* // `$ npm install googleapis`
|
|
5766
|
-
*
|
|
5767
|
-
* const {google} = require('googleapis');
|
|
5768
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5769
|
-
*
|
|
5770
|
-
* async function main() {
|
|
5771
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5772
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5773
|
-
* scopes: [
|
|
5774
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
5775
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
5776
|
-
* ],
|
|
5777
|
-
* });
|
|
5778
|
-
*
|
|
5779
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5780
|
-
* const authClient = await auth.getClient();
|
|
5781
|
-
* google.options({auth: authClient});
|
|
5782
|
-
*
|
|
5783
|
-
* // Do the magic
|
|
5784
|
-
* const res = await tagmanager.accounts.containers.triggers.list({
|
|
5785
|
-
* // The GTM Account ID.
|
|
5786
|
-
* accountId: 'placeholder-value',
|
|
5787
|
-
* // The GTM Container ID.
|
|
5788
|
-
* containerId: 'placeholder-value',
|
|
5789
|
-
* });
|
|
5790
|
-
* console.log(res.data);
|
|
5791
|
-
*
|
|
5792
|
-
* // Example response
|
|
5793
|
-
* // {
|
|
5794
|
-
* // "triggers": []
|
|
5795
|
-
* // }
|
|
5796
|
-
* }
|
|
5797
|
-
*
|
|
5798
|
-
* main().catch(e => {
|
|
5799
|
-
* console.error(e);
|
|
5800
|
-
* throw e;
|
|
5801
|
-
* });
|
|
5802
|
-
*
|
|
5803
|
-
* ```
|
|
5804
4002
|
*
|
|
5805
4003
|
* @param params - Parameters for request
|
|
5806
4004
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5893,116 +4091,6 @@ export namespace tagmanager_v1 {
|
|
|
5893
4091
|
|
|
5894
4092
|
/**
|
|
5895
4093
|
* Updates a GTM Trigger.
|
|
5896
|
-
* @example
|
|
5897
|
-
* ```js
|
|
5898
|
-
* // Before running the sample:
|
|
5899
|
-
* // - Enable the API at:
|
|
5900
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
5901
|
-
* // - Login into gcloud by running:
|
|
5902
|
-
* // `$ gcloud auth application-default login`
|
|
5903
|
-
* // - Install the npm module by running:
|
|
5904
|
-
* // `$ npm install googleapis`
|
|
5905
|
-
*
|
|
5906
|
-
* const {google} = require('googleapis');
|
|
5907
|
-
* const tagmanager = google.tagmanager('v1');
|
|
5908
|
-
*
|
|
5909
|
-
* async function main() {
|
|
5910
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5911
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5912
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
5913
|
-
* });
|
|
5914
|
-
*
|
|
5915
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5916
|
-
* const authClient = await auth.getClient();
|
|
5917
|
-
* google.options({auth: authClient});
|
|
5918
|
-
*
|
|
5919
|
-
* // Do the magic
|
|
5920
|
-
* const res = await tagmanager.accounts.containers.triggers.update({
|
|
5921
|
-
* // The GTM Account ID.
|
|
5922
|
-
* accountId: 'placeholder-value',
|
|
5923
|
-
* // The GTM Container ID.
|
|
5924
|
-
* containerId: 'placeholder-value',
|
|
5925
|
-
* // When provided, this fingerprint must match the fingerprint of the trigger in storage.
|
|
5926
|
-
* fingerprint: 'placeholder-value',
|
|
5927
|
-
* // The GTM Trigger ID.
|
|
5928
|
-
* triggerId: 'placeholder-value',
|
|
5929
|
-
*
|
|
5930
|
-
* // Request body metadata
|
|
5931
|
-
* requestBody: {
|
|
5932
|
-
* // request body parameters
|
|
5933
|
-
* // {
|
|
5934
|
-
* // "accountId": "my_accountId",
|
|
5935
|
-
* // "autoEventFilter": [],
|
|
5936
|
-
* // "checkValidation": {},
|
|
5937
|
-
* // "containerId": "my_containerId",
|
|
5938
|
-
* // "continuousTimeMinMilliseconds": {},
|
|
5939
|
-
* // "customEventFilter": [],
|
|
5940
|
-
* // "eventName": {},
|
|
5941
|
-
* // "filter": [],
|
|
5942
|
-
* // "fingerprint": "my_fingerprint",
|
|
5943
|
-
* // "horizontalScrollPercentageList": {},
|
|
5944
|
-
* // "interval": {},
|
|
5945
|
-
* // "intervalSeconds": {},
|
|
5946
|
-
* // "limit": {},
|
|
5947
|
-
* // "maxTimerLengthSeconds": {},
|
|
5948
|
-
* // "name": "my_name",
|
|
5949
|
-
* // "parameter": [],
|
|
5950
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5951
|
-
* // "selector": {},
|
|
5952
|
-
* // "totalTimeMinMilliseconds": {},
|
|
5953
|
-
* // "triggerId": "my_triggerId",
|
|
5954
|
-
* // "type": "my_type",
|
|
5955
|
-
* // "uniqueTriggerId": {},
|
|
5956
|
-
* // "verticalScrollPercentageList": {},
|
|
5957
|
-
* // "visibilitySelector": {},
|
|
5958
|
-
* // "visiblePercentageMax": {},
|
|
5959
|
-
* // "visiblePercentageMin": {},
|
|
5960
|
-
* // "waitForTags": {},
|
|
5961
|
-
* // "waitForTagsTimeout": {}
|
|
5962
|
-
* // }
|
|
5963
|
-
* },
|
|
5964
|
-
* });
|
|
5965
|
-
* console.log(res.data);
|
|
5966
|
-
*
|
|
5967
|
-
* // Example response
|
|
5968
|
-
* // {
|
|
5969
|
-
* // "accountId": "my_accountId",
|
|
5970
|
-
* // "autoEventFilter": [],
|
|
5971
|
-
* // "checkValidation": {},
|
|
5972
|
-
* // "containerId": "my_containerId",
|
|
5973
|
-
* // "continuousTimeMinMilliseconds": {},
|
|
5974
|
-
* // "customEventFilter": [],
|
|
5975
|
-
* // "eventName": {},
|
|
5976
|
-
* // "filter": [],
|
|
5977
|
-
* // "fingerprint": "my_fingerprint",
|
|
5978
|
-
* // "horizontalScrollPercentageList": {},
|
|
5979
|
-
* // "interval": {},
|
|
5980
|
-
* // "intervalSeconds": {},
|
|
5981
|
-
* // "limit": {},
|
|
5982
|
-
* // "maxTimerLengthSeconds": {},
|
|
5983
|
-
* // "name": "my_name",
|
|
5984
|
-
* // "parameter": [],
|
|
5985
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
5986
|
-
* // "selector": {},
|
|
5987
|
-
* // "totalTimeMinMilliseconds": {},
|
|
5988
|
-
* // "triggerId": "my_triggerId",
|
|
5989
|
-
* // "type": "my_type",
|
|
5990
|
-
* // "uniqueTriggerId": {},
|
|
5991
|
-
* // "verticalScrollPercentageList": {},
|
|
5992
|
-
* // "visibilitySelector": {},
|
|
5993
|
-
* // "visiblePercentageMax": {},
|
|
5994
|
-
* // "visiblePercentageMin": {},
|
|
5995
|
-
* // "waitForTags": {},
|
|
5996
|
-
* // "waitForTagsTimeout": {}
|
|
5997
|
-
* // }
|
|
5998
|
-
* }
|
|
5999
|
-
*
|
|
6000
|
-
* main().catch(e => {
|
|
6001
|
-
* console.error(e);
|
|
6002
|
-
* throw e;
|
|
6003
|
-
* });
|
|
6004
|
-
*
|
|
6005
|
-
* ```
|
|
6006
4094
|
*
|
|
6007
4095
|
* @param params - Parameters for request
|
|
6008
4096
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6179,82 +4267,6 @@ export namespace tagmanager_v1 {
|
|
|
6179
4267
|
|
|
6180
4268
|
/**
|
|
6181
4269
|
* Creates a GTM Variable.
|
|
6182
|
-
* @example
|
|
6183
|
-
* ```js
|
|
6184
|
-
* // Before running the sample:
|
|
6185
|
-
* // - Enable the API at:
|
|
6186
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
6187
|
-
* // - Login into gcloud by running:
|
|
6188
|
-
* // `$ gcloud auth application-default login`
|
|
6189
|
-
* // - Install the npm module by running:
|
|
6190
|
-
* // `$ npm install googleapis`
|
|
6191
|
-
*
|
|
6192
|
-
* const {google} = require('googleapis');
|
|
6193
|
-
* const tagmanager = google.tagmanager('v1');
|
|
6194
|
-
*
|
|
6195
|
-
* async function main() {
|
|
6196
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6197
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6198
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
6199
|
-
* });
|
|
6200
|
-
*
|
|
6201
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6202
|
-
* const authClient = await auth.getClient();
|
|
6203
|
-
* google.options({auth: authClient});
|
|
6204
|
-
*
|
|
6205
|
-
* // Do the magic
|
|
6206
|
-
* const res = await tagmanager.accounts.containers.variables.create({
|
|
6207
|
-
* // The GTM Account ID.
|
|
6208
|
-
* accountId: 'placeholder-value',
|
|
6209
|
-
* // The GTM Container ID.
|
|
6210
|
-
* containerId: 'placeholder-value',
|
|
6211
|
-
*
|
|
6212
|
-
* // Request body metadata
|
|
6213
|
-
* requestBody: {
|
|
6214
|
-
* // request body parameters
|
|
6215
|
-
* // {
|
|
6216
|
-
* // "accountId": "my_accountId",
|
|
6217
|
-
* // "containerId": "my_containerId",
|
|
6218
|
-
* // "disablingTriggerId": [],
|
|
6219
|
-
* // "enablingTriggerId": [],
|
|
6220
|
-
* // "fingerprint": "my_fingerprint",
|
|
6221
|
-
* // "name": "my_name",
|
|
6222
|
-
* // "notes": "my_notes",
|
|
6223
|
-
* // "parameter": [],
|
|
6224
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
6225
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
6226
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
6227
|
-
* // "type": "my_type",
|
|
6228
|
-
* // "variableId": "my_variableId"
|
|
6229
|
-
* // }
|
|
6230
|
-
* },
|
|
6231
|
-
* });
|
|
6232
|
-
* console.log(res.data);
|
|
6233
|
-
*
|
|
6234
|
-
* // Example response
|
|
6235
|
-
* // {
|
|
6236
|
-
* // "accountId": "my_accountId",
|
|
6237
|
-
* // "containerId": "my_containerId",
|
|
6238
|
-
* // "disablingTriggerId": [],
|
|
6239
|
-
* // "enablingTriggerId": [],
|
|
6240
|
-
* // "fingerprint": "my_fingerprint",
|
|
6241
|
-
* // "name": "my_name",
|
|
6242
|
-
* // "notes": "my_notes",
|
|
6243
|
-
* // "parameter": [],
|
|
6244
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
6245
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
6246
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
6247
|
-
* // "type": "my_type",
|
|
6248
|
-
* // "variableId": "my_variableId"
|
|
6249
|
-
* // }
|
|
6250
|
-
* }
|
|
6251
|
-
*
|
|
6252
|
-
* main().catch(e => {
|
|
6253
|
-
* console.error(e);
|
|
6254
|
-
* throw e;
|
|
6255
|
-
* });
|
|
6256
|
-
*
|
|
6257
|
-
* ```
|
|
6258
4270
|
*
|
|
6259
4271
|
* @param params - Parameters for request
|
|
6260
4272
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6342,47 +4354,6 @@ export namespace tagmanager_v1 {
|
|
|
6342
4354
|
|
|
6343
4355
|
/**
|
|
6344
4356
|
* Deletes a GTM Variable.
|
|
6345
|
-
* @example
|
|
6346
|
-
* ```js
|
|
6347
|
-
* // Before running the sample:
|
|
6348
|
-
* // - Enable the API at:
|
|
6349
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
6350
|
-
* // - Login into gcloud by running:
|
|
6351
|
-
* // `$ gcloud auth application-default login`
|
|
6352
|
-
* // - Install the npm module by running:
|
|
6353
|
-
* // `$ npm install googleapis`
|
|
6354
|
-
*
|
|
6355
|
-
* const {google} = require('googleapis');
|
|
6356
|
-
* const tagmanager = google.tagmanager('v1');
|
|
6357
|
-
*
|
|
6358
|
-
* async function main() {
|
|
6359
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6360
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6361
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
6362
|
-
* });
|
|
6363
|
-
*
|
|
6364
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6365
|
-
* const authClient = await auth.getClient();
|
|
6366
|
-
* google.options({auth: authClient});
|
|
6367
|
-
*
|
|
6368
|
-
* // Do the magic
|
|
6369
|
-
* const res = await tagmanager.accounts.containers.variables.delete({
|
|
6370
|
-
* // The GTM Account ID.
|
|
6371
|
-
* accountId: 'placeholder-value',
|
|
6372
|
-
* // The GTM Container ID.
|
|
6373
|
-
* containerId: 'placeholder-value',
|
|
6374
|
-
* // The GTM Variable ID.
|
|
6375
|
-
* variableId: 'placeholder-value',
|
|
6376
|
-
* });
|
|
6377
|
-
* console.log(res.data);
|
|
6378
|
-
* }
|
|
6379
|
-
*
|
|
6380
|
-
* main().catch(e => {
|
|
6381
|
-
* console.error(e);
|
|
6382
|
-
* throw e;
|
|
6383
|
-
* });
|
|
6384
|
-
*
|
|
6385
|
-
* ```
|
|
6386
4357
|
*
|
|
6387
4358
|
* @param params - Parameters for request
|
|
6388
4359
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6468,67 +4439,6 @@ export namespace tagmanager_v1 {
|
|
|
6468
4439
|
|
|
6469
4440
|
/**
|
|
6470
4441
|
* Gets a GTM Variable.
|
|
6471
|
-
* @example
|
|
6472
|
-
* ```js
|
|
6473
|
-
* // Before running the sample:
|
|
6474
|
-
* // - Enable the API at:
|
|
6475
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
6476
|
-
* // - Login into gcloud by running:
|
|
6477
|
-
* // `$ gcloud auth application-default login`
|
|
6478
|
-
* // - Install the npm module by running:
|
|
6479
|
-
* // `$ npm install googleapis`
|
|
6480
|
-
*
|
|
6481
|
-
* const {google} = require('googleapis');
|
|
6482
|
-
* const tagmanager = google.tagmanager('v1');
|
|
6483
|
-
*
|
|
6484
|
-
* async function main() {
|
|
6485
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6486
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6487
|
-
* scopes: [
|
|
6488
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
6489
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
6490
|
-
* ],
|
|
6491
|
-
* });
|
|
6492
|
-
*
|
|
6493
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6494
|
-
* const authClient = await auth.getClient();
|
|
6495
|
-
* google.options({auth: authClient});
|
|
6496
|
-
*
|
|
6497
|
-
* // Do the magic
|
|
6498
|
-
* const res = await tagmanager.accounts.containers.variables.get({
|
|
6499
|
-
* // The GTM Account ID.
|
|
6500
|
-
* accountId: 'placeholder-value',
|
|
6501
|
-
* // The GTM Container ID.
|
|
6502
|
-
* containerId: 'placeholder-value',
|
|
6503
|
-
* // The GTM Variable ID.
|
|
6504
|
-
* variableId: 'placeholder-value',
|
|
6505
|
-
* });
|
|
6506
|
-
* console.log(res.data);
|
|
6507
|
-
*
|
|
6508
|
-
* // Example response
|
|
6509
|
-
* // {
|
|
6510
|
-
* // "accountId": "my_accountId",
|
|
6511
|
-
* // "containerId": "my_containerId",
|
|
6512
|
-
* // "disablingTriggerId": [],
|
|
6513
|
-
* // "enablingTriggerId": [],
|
|
6514
|
-
* // "fingerprint": "my_fingerprint",
|
|
6515
|
-
* // "name": "my_name",
|
|
6516
|
-
* // "notes": "my_notes",
|
|
6517
|
-
* // "parameter": [],
|
|
6518
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
6519
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
6520
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
6521
|
-
* // "type": "my_type",
|
|
6522
|
-
* // "variableId": "my_variableId"
|
|
6523
|
-
* // }
|
|
6524
|
-
* }
|
|
6525
|
-
*
|
|
6526
|
-
* main().catch(e => {
|
|
6527
|
-
* console.error(e);
|
|
6528
|
-
* throw e;
|
|
6529
|
-
* });
|
|
6530
|
-
*
|
|
6531
|
-
* ```
|
|
6532
4442
|
*
|
|
6533
4443
|
* @param params - Parameters for request
|
|
6534
4444
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6616,53 +4526,6 @@ export namespace tagmanager_v1 {
|
|
|
6616
4526
|
|
|
6617
4527
|
/**
|
|
6618
4528
|
* Lists all GTM Variables of a Container.
|
|
6619
|
-
* @example
|
|
6620
|
-
* ```js
|
|
6621
|
-
* // Before running the sample:
|
|
6622
|
-
* // - Enable the API at:
|
|
6623
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
6624
|
-
* // - Login into gcloud by running:
|
|
6625
|
-
* // `$ gcloud auth application-default login`
|
|
6626
|
-
* // - Install the npm module by running:
|
|
6627
|
-
* // `$ npm install googleapis`
|
|
6628
|
-
*
|
|
6629
|
-
* const {google} = require('googleapis');
|
|
6630
|
-
* const tagmanager = google.tagmanager('v1');
|
|
6631
|
-
*
|
|
6632
|
-
* async function main() {
|
|
6633
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6634
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6635
|
-
* scopes: [
|
|
6636
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
6637
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
6638
|
-
* ],
|
|
6639
|
-
* });
|
|
6640
|
-
*
|
|
6641
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6642
|
-
* const authClient = await auth.getClient();
|
|
6643
|
-
* google.options({auth: authClient});
|
|
6644
|
-
*
|
|
6645
|
-
* // Do the magic
|
|
6646
|
-
* const res = await tagmanager.accounts.containers.variables.list({
|
|
6647
|
-
* // The GTM Account ID.
|
|
6648
|
-
* accountId: 'placeholder-value',
|
|
6649
|
-
* // The GTM Container ID.
|
|
6650
|
-
* containerId: 'placeholder-value',
|
|
6651
|
-
* });
|
|
6652
|
-
* console.log(res.data);
|
|
6653
|
-
*
|
|
6654
|
-
* // Example response
|
|
6655
|
-
* // {
|
|
6656
|
-
* // "variables": []
|
|
6657
|
-
* // }
|
|
6658
|
-
* }
|
|
6659
|
-
*
|
|
6660
|
-
* main().catch(e => {
|
|
6661
|
-
* console.error(e);
|
|
6662
|
-
* throw e;
|
|
6663
|
-
* });
|
|
6664
|
-
*
|
|
6665
|
-
* ```
|
|
6666
4529
|
*
|
|
6667
4530
|
* @param params - Parameters for request
|
|
6668
4531
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6755,86 +4618,6 @@ export namespace tagmanager_v1 {
|
|
|
6755
4618
|
|
|
6756
4619
|
/**
|
|
6757
4620
|
* Updates a GTM Variable.
|
|
6758
|
-
* @example
|
|
6759
|
-
* ```js
|
|
6760
|
-
* // Before running the sample:
|
|
6761
|
-
* // - Enable the API at:
|
|
6762
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
6763
|
-
* // - Login into gcloud by running:
|
|
6764
|
-
* // `$ gcloud auth application-default login`
|
|
6765
|
-
* // - Install the npm module by running:
|
|
6766
|
-
* // `$ npm install googleapis`
|
|
6767
|
-
*
|
|
6768
|
-
* const {google} = require('googleapis');
|
|
6769
|
-
* const tagmanager = google.tagmanager('v1');
|
|
6770
|
-
*
|
|
6771
|
-
* async function main() {
|
|
6772
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6773
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6774
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
6775
|
-
* });
|
|
6776
|
-
*
|
|
6777
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6778
|
-
* const authClient = await auth.getClient();
|
|
6779
|
-
* google.options({auth: authClient});
|
|
6780
|
-
*
|
|
6781
|
-
* // Do the magic
|
|
6782
|
-
* const res = await tagmanager.accounts.containers.variables.update({
|
|
6783
|
-
* // The GTM Account ID.
|
|
6784
|
-
* accountId: 'placeholder-value',
|
|
6785
|
-
* // The GTM Container ID.
|
|
6786
|
-
* containerId: 'placeholder-value',
|
|
6787
|
-
* // When provided, this fingerprint must match the fingerprint of the variable in storage.
|
|
6788
|
-
* fingerprint: 'placeholder-value',
|
|
6789
|
-
* // The GTM Variable ID.
|
|
6790
|
-
* variableId: 'placeholder-value',
|
|
6791
|
-
*
|
|
6792
|
-
* // Request body metadata
|
|
6793
|
-
* requestBody: {
|
|
6794
|
-
* // request body parameters
|
|
6795
|
-
* // {
|
|
6796
|
-
* // "accountId": "my_accountId",
|
|
6797
|
-
* // "containerId": "my_containerId",
|
|
6798
|
-
* // "disablingTriggerId": [],
|
|
6799
|
-
* // "enablingTriggerId": [],
|
|
6800
|
-
* // "fingerprint": "my_fingerprint",
|
|
6801
|
-
* // "name": "my_name",
|
|
6802
|
-
* // "notes": "my_notes",
|
|
6803
|
-
* // "parameter": [],
|
|
6804
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
6805
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
6806
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
6807
|
-
* // "type": "my_type",
|
|
6808
|
-
* // "variableId": "my_variableId"
|
|
6809
|
-
* // }
|
|
6810
|
-
* },
|
|
6811
|
-
* });
|
|
6812
|
-
* console.log(res.data);
|
|
6813
|
-
*
|
|
6814
|
-
* // Example response
|
|
6815
|
-
* // {
|
|
6816
|
-
* // "accountId": "my_accountId",
|
|
6817
|
-
* // "containerId": "my_containerId",
|
|
6818
|
-
* // "disablingTriggerId": [],
|
|
6819
|
-
* // "enablingTriggerId": [],
|
|
6820
|
-
* // "fingerprint": "my_fingerprint",
|
|
6821
|
-
* // "name": "my_name",
|
|
6822
|
-
* // "notes": "my_notes",
|
|
6823
|
-
* // "parameter": [],
|
|
6824
|
-
* // "parentFolderId": "my_parentFolderId",
|
|
6825
|
-
* // "scheduleEndMs": "my_scheduleEndMs",
|
|
6826
|
-
* // "scheduleStartMs": "my_scheduleStartMs",
|
|
6827
|
-
* // "type": "my_type",
|
|
6828
|
-
* // "variableId": "my_variableId"
|
|
6829
|
-
* // }
|
|
6830
|
-
* }
|
|
6831
|
-
*
|
|
6832
|
-
* main().catch(e => {
|
|
6833
|
-
* console.error(e);
|
|
6834
|
-
* throw e;
|
|
6835
|
-
* });
|
|
6836
|
-
*
|
|
6837
|
-
* ```
|
|
6838
4621
|
*
|
|
6839
4622
|
* @param params - Parameters for request
|
|
6840
4623
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7011,63 +4794,6 @@ export namespace tagmanager_v1 {
|
|
|
7011
4794
|
|
|
7012
4795
|
/**
|
|
7013
4796
|
* Creates a Container Version.
|
|
7014
|
-
* @example
|
|
7015
|
-
* ```js
|
|
7016
|
-
* // Before running the sample:
|
|
7017
|
-
* // - Enable the API at:
|
|
7018
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7019
|
-
* // - Login into gcloud by running:
|
|
7020
|
-
* // `$ gcloud auth application-default login`
|
|
7021
|
-
* // - Install the npm module by running:
|
|
7022
|
-
* // `$ npm install googleapis`
|
|
7023
|
-
*
|
|
7024
|
-
* const {google} = require('googleapis');
|
|
7025
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7026
|
-
*
|
|
7027
|
-
* async function main() {
|
|
7028
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7029
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7030
|
-
* scopes: [
|
|
7031
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
7032
|
-
* ],
|
|
7033
|
-
* });
|
|
7034
|
-
*
|
|
7035
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7036
|
-
* const authClient = await auth.getClient();
|
|
7037
|
-
* google.options({auth: authClient});
|
|
7038
|
-
*
|
|
7039
|
-
* // Do the magic
|
|
7040
|
-
* const res = await tagmanager.accounts.containers.versions.create({
|
|
7041
|
-
* // The GTM Account ID.
|
|
7042
|
-
* accountId: 'placeholder-value',
|
|
7043
|
-
* // The GTM Container ID.
|
|
7044
|
-
* containerId: 'placeholder-value',
|
|
7045
|
-
*
|
|
7046
|
-
* // Request body metadata
|
|
7047
|
-
* requestBody: {
|
|
7048
|
-
* // request body parameters
|
|
7049
|
-
* // {
|
|
7050
|
-
* // "name": "my_name",
|
|
7051
|
-
* // "notes": "my_notes",
|
|
7052
|
-
* // "quickPreview": false
|
|
7053
|
-
* // }
|
|
7054
|
-
* },
|
|
7055
|
-
* });
|
|
7056
|
-
* console.log(res.data);
|
|
7057
|
-
*
|
|
7058
|
-
* // Example response
|
|
7059
|
-
* // {
|
|
7060
|
-
* // "compilerError": false,
|
|
7061
|
-
* // "containerVersion": {}
|
|
7062
|
-
* // }
|
|
7063
|
-
* }
|
|
7064
|
-
*
|
|
7065
|
-
* main().catch(e => {
|
|
7066
|
-
* console.error(e);
|
|
7067
|
-
* throw e;
|
|
7068
|
-
* });
|
|
7069
|
-
*
|
|
7070
|
-
* ```
|
|
7071
4797
|
*
|
|
7072
4798
|
* @param params - Parameters for request
|
|
7073
4799
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7164,49 +4890,6 @@ export namespace tagmanager_v1 {
|
|
|
7164
4890
|
|
|
7165
4891
|
/**
|
|
7166
4892
|
* Deletes a Container Version.
|
|
7167
|
-
* @example
|
|
7168
|
-
* ```js
|
|
7169
|
-
* // Before running the sample:
|
|
7170
|
-
* // - Enable the API at:
|
|
7171
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7172
|
-
* // - Login into gcloud by running:
|
|
7173
|
-
* // `$ gcloud auth application-default login`
|
|
7174
|
-
* // - Install the npm module by running:
|
|
7175
|
-
* // `$ npm install googleapis`
|
|
7176
|
-
*
|
|
7177
|
-
* const {google} = require('googleapis');
|
|
7178
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7179
|
-
*
|
|
7180
|
-
* async function main() {
|
|
7181
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7182
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7183
|
-
* scopes: [
|
|
7184
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
7185
|
-
* ],
|
|
7186
|
-
* });
|
|
7187
|
-
*
|
|
7188
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7189
|
-
* const authClient = await auth.getClient();
|
|
7190
|
-
* google.options({auth: authClient});
|
|
7191
|
-
*
|
|
7192
|
-
* // Do the magic
|
|
7193
|
-
* const res = await tagmanager.accounts.containers.versions.delete({
|
|
7194
|
-
* // The GTM Account ID.
|
|
7195
|
-
* accountId: 'placeholder-value',
|
|
7196
|
-
* // The GTM Container ID.
|
|
7197
|
-
* containerId: 'placeholder-value',
|
|
7198
|
-
* // The GTM Container Version ID.
|
|
7199
|
-
* containerVersionId: 'placeholder-value',
|
|
7200
|
-
* });
|
|
7201
|
-
* console.log(res.data);
|
|
7202
|
-
* }
|
|
7203
|
-
*
|
|
7204
|
-
* main().catch(e => {
|
|
7205
|
-
* console.error(e);
|
|
7206
|
-
* throw e;
|
|
7207
|
-
* });
|
|
7208
|
-
*
|
|
7209
|
-
* ```
|
|
7210
4893
|
*
|
|
7211
4894
|
* @param params - Parameters for request
|
|
7212
4895
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7292,69 +4975,6 @@ export namespace tagmanager_v1 {
|
|
|
7292
4975
|
|
|
7293
4976
|
/**
|
|
7294
4977
|
* Gets a Container Version.
|
|
7295
|
-
* @example
|
|
7296
|
-
* ```js
|
|
7297
|
-
* // Before running the sample:
|
|
7298
|
-
* // - Enable the API at:
|
|
7299
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7300
|
-
* // - Login into gcloud by running:
|
|
7301
|
-
* // `$ gcloud auth application-default login`
|
|
7302
|
-
* // - Install the npm module by running:
|
|
7303
|
-
* // `$ npm install googleapis`
|
|
7304
|
-
*
|
|
7305
|
-
* const {google} = require('googleapis');
|
|
7306
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7307
|
-
*
|
|
7308
|
-
* async function main() {
|
|
7309
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7310
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7311
|
-
* scopes: [
|
|
7312
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
7313
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
7314
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
7315
|
-
* ],
|
|
7316
|
-
* });
|
|
7317
|
-
*
|
|
7318
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7319
|
-
* const authClient = await auth.getClient();
|
|
7320
|
-
* google.options({auth: authClient});
|
|
7321
|
-
*
|
|
7322
|
-
* // Do the magic
|
|
7323
|
-
* const res = await tagmanager.accounts.containers.versions.get({
|
|
7324
|
-
* // The GTM Account ID.
|
|
7325
|
-
* accountId: 'placeholder-value',
|
|
7326
|
-
* // The GTM Container ID.
|
|
7327
|
-
* containerId: 'placeholder-value',
|
|
7328
|
-
* // The GTM Container Version ID. Specify published to retrieve the currently published version.
|
|
7329
|
-
* containerVersionId: 'placeholder-value',
|
|
7330
|
-
* });
|
|
7331
|
-
* console.log(res.data);
|
|
7332
|
-
*
|
|
7333
|
-
* // Example response
|
|
7334
|
-
* // {
|
|
7335
|
-
* // "accountId": "my_accountId",
|
|
7336
|
-
* // "container": {},
|
|
7337
|
-
* // "containerId": "my_containerId",
|
|
7338
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
7339
|
-
* // "deleted": false,
|
|
7340
|
-
* // "fingerprint": "my_fingerprint",
|
|
7341
|
-
* // "folder": [],
|
|
7342
|
-
* // "macro": [],
|
|
7343
|
-
* // "name": "my_name",
|
|
7344
|
-
* // "notes": "my_notes",
|
|
7345
|
-
* // "rule": [],
|
|
7346
|
-
* // "tag": [],
|
|
7347
|
-
* // "trigger": [],
|
|
7348
|
-
* // "variable": []
|
|
7349
|
-
* // }
|
|
7350
|
-
* }
|
|
7351
|
-
*
|
|
7352
|
-
* main().catch(e => {
|
|
7353
|
-
* console.error(e);
|
|
7354
|
-
* throw e;
|
|
7355
|
-
* });
|
|
7356
|
-
*
|
|
7357
|
-
* ```
|
|
7358
4978
|
*
|
|
7359
4979
|
* @param params - Parameters for request
|
|
7360
4980
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7442,59 +5062,6 @@ export namespace tagmanager_v1 {
|
|
|
7442
5062
|
|
|
7443
5063
|
/**
|
|
7444
5064
|
* Lists all Container Versions of a GTM Container.
|
|
7445
|
-
* @example
|
|
7446
|
-
* ```js
|
|
7447
|
-
* // Before running the sample:
|
|
7448
|
-
* // - Enable the API at:
|
|
7449
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7450
|
-
* // - Login into gcloud by running:
|
|
7451
|
-
* // `$ gcloud auth application-default login`
|
|
7452
|
-
* // - Install the npm module by running:
|
|
7453
|
-
* // `$ npm install googleapis`
|
|
7454
|
-
*
|
|
7455
|
-
* const {google} = require('googleapis');
|
|
7456
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7457
|
-
*
|
|
7458
|
-
* async function main() {
|
|
7459
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7460
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7461
|
-
* scopes: [
|
|
7462
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containers',
|
|
7463
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
7464
|
-
* 'https://www.googleapis.com/auth/tagmanager.readonly',
|
|
7465
|
-
* ],
|
|
7466
|
-
* });
|
|
7467
|
-
*
|
|
7468
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7469
|
-
* const authClient = await auth.getClient();
|
|
7470
|
-
* google.options({auth: authClient});
|
|
7471
|
-
*
|
|
7472
|
-
* // Do the magic
|
|
7473
|
-
* const res = await tagmanager.accounts.containers.versions.list({
|
|
7474
|
-
* // The GTM Account ID.
|
|
7475
|
-
* accountId: 'placeholder-value',
|
|
7476
|
-
* // The GTM Container ID.
|
|
7477
|
-
* containerId: 'placeholder-value',
|
|
7478
|
-
* // Retrieve headers only when true.
|
|
7479
|
-
* headers: 'placeholder-value',
|
|
7480
|
-
* // Also retrieve deleted (archived) versions when true.
|
|
7481
|
-
* includeDeleted: 'placeholder-value',
|
|
7482
|
-
* });
|
|
7483
|
-
* console.log(res.data);
|
|
7484
|
-
*
|
|
7485
|
-
* // Example response
|
|
7486
|
-
* // {
|
|
7487
|
-
* // "containerVersion": [],
|
|
7488
|
-
* // "containerVersionHeader": []
|
|
7489
|
-
* // }
|
|
7490
|
-
* }
|
|
7491
|
-
*
|
|
7492
|
-
* main().catch(e => {
|
|
7493
|
-
* console.error(e);
|
|
7494
|
-
* throw e;
|
|
7495
|
-
* });
|
|
7496
|
-
*
|
|
7497
|
-
* ```
|
|
7498
5065
|
*
|
|
7499
5066
|
* @param params - Parameters for request
|
|
7500
5067
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7591,55 +5158,6 @@ export namespace tagmanager_v1 {
|
|
|
7591
5158
|
|
|
7592
5159
|
/**
|
|
7593
5160
|
* Publishes a Container Version.
|
|
7594
|
-
* @example
|
|
7595
|
-
* ```js
|
|
7596
|
-
* // Before running the sample:
|
|
7597
|
-
* // - Enable the API at:
|
|
7598
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7599
|
-
* // - Login into gcloud by running:
|
|
7600
|
-
* // `$ gcloud auth application-default login`
|
|
7601
|
-
* // - Install the npm module by running:
|
|
7602
|
-
* // `$ npm install googleapis`
|
|
7603
|
-
*
|
|
7604
|
-
* const {google} = require('googleapis');
|
|
7605
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7606
|
-
*
|
|
7607
|
-
* async function main() {
|
|
7608
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7609
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7610
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.publish'],
|
|
7611
|
-
* });
|
|
7612
|
-
*
|
|
7613
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7614
|
-
* const authClient = await auth.getClient();
|
|
7615
|
-
* google.options({auth: authClient});
|
|
7616
|
-
*
|
|
7617
|
-
* // Do the magic
|
|
7618
|
-
* const res = await tagmanager.accounts.containers.versions.publish({
|
|
7619
|
-
* // The GTM Account ID.
|
|
7620
|
-
* accountId: 'placeholder-value',
|
|
7621
|
-
* // The GTM Container ID.
|
|
7622
|
-
* containerId: 'placeholder-value',
|
|
7623
|
-
* // The GTM Container Version ID.
|
|
7624
|
-
* containerVersionId: 'placeholder-value',
|
|
7625
|
-
* // When provided, this fingerprint must match the fingerprint of the container version in storage.
|
|
7626
|
-
* fingerprint: 'placeholder-value',
|
|
7627
|
-
* });
|
|
7628
|
-
* console.log(res.data);
|
|
7629
|
-
*
|
|
7630
|
-
* // Example response
|
|
7631
|
-
* // {
|
|
7632
|
-
* // "compilerError": false,
|
|
7633
|
-
* // "containerVersion": {}
|
|
7634
|
-
* // }
|
|
7635
|
-
* }
|
|
7636
|
-
*
|
|
7637
|
-
* main().catch(e => {
|
|
7638
|
-
* console.error(e);
|
|
7639
|
-
* throw e;
|
|
7640
|
-
* });
|
|
7641
|
-
*
|
|
7642
|
-
* ```
|
|
7643
5161
|
*
|
|
7644
5162
|
* @param params - Parameters for request
|
|
7645
5163
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7736,65 +5254,6 @@ export namespace tagmanager_v1 {
|
|
|
7736
5254
|
|
|
7737
5255
|
/**
|
|
7738
5256
|
* 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).
|
|
7739
|
-
* @example
|
|
7740
|
-
* ```js
|
|
7741
|
-
* // Before running the sample:
|
|
7742
|
-
* // - Enable the API at:
|
|
7743
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7744
|
-
* // - Login into gcloud by running:
|
|
7745
|
-
* // `$ gcloud auth application-default login`
|
|
7746
|
-
* // - Install the npm module by running:
|
|
7747
|
-
* // `$ npm install googleapis`
|
|
7748
|
-
*
|
|
7749
|
-
* const {google} = require('googleapis');
|
|
7750
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7751
|
-
*
|
|
7752
|
-
* async function main() {
|
|
7753
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7754
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7755
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
|
|
7756
|
-
* });
|
|
7757
|
-
*
|
|
7758
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7759
|
-
* const authClient = await auth.getClient();
|
|
7760
|
-
* google.options({auth: authClient});
|
|
7761
|
-
*
|
|
7762
|
-
* // Do the magic
|
|
7763
|
-
* const res = await tagmanager.accounts.containers.versions.restore({
|
|
7764
|
-
* // The GTM Account ID.
|
|
7765
|
-
* accountId: 'placeholder-value',
|
|
7766
|
-
* // The GTM Container ID.
|
|
7767
|
-
* containerId: 'placeholder-value',
|
|
7768
|
-
* // The GTM Container Version ID.
|
|
7769
|
-
* containerVersionId: 'placeholder-value',
|
|
7770
|
-
* });
|
|
7771
|
-
* console.log(res.data);
|
|
7772
|
-
*
|
|
7773
|
-
* // Example response
|
|
7774
|
-
* // {
|
|
7775
|
-
* // "accountId": "my_accountId",
|
|
7776
|
-
* // "container": {},
|
|
7777
|
-
* // "containerId": "my_containerId",
|
|
7778
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
7779
|
-
* // "deleted": false,
|
|
7780
|
-
* // "fingerprint": "my_fingerprint",
|
|
7781
|
-
* // "folder": [],
|
|
7782
|
-
* // "macro": [],
|
|
7783
|
-
* // "name": "my_name",
|
|
7784
|
-
* // "notes": "my_notes",
|
|
7785
|
-
* // "rule": [],
|
|
7786
|
-
* // "tag": [],
|
|
7787
|
-
* // "trigger": [],
|
|
7788
|
-
* // "variable": []
|
|
7789
|
-
* // }
|
|
7790
|
-
* }
|
|
7791
|
-
*
|
|
7792
|
-
* main().catch(e => {
|
|
7793
|
-
* console.error(e);
|
|
7794
|
-
* throw e;
|
|
7795
|
-
* });
|
|
7796
|
-
*
|
|
7797
|
-
* ```
|
|
7798
5257
|
*
|
|
7799
5258
|
* @param params - Parameters for request
|
|
7800
5259
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7882,67 +5341,6 @@ export namespace tagmanager_v1 {
|
|
|
7882
5341
|
|
|
7883
5342
|
/**
|
|
7884
5343
|
* Undeletes a Container Version.
|
|
7885
|
-
* @example
|
|
7886
|
-
* ```js
|
|
7887
|
-
* // Before running the sample:
|
|
7888
|
-
* // - Enable the API at:
|
|
7889
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
7890
|
-
* // - Login into gcloud by running:
|
|
7891
|
-
* // `$ gcloud auth application-default login`
|
|
7892
|
-
* // - Install the npm module by running:
|
|
7893
|
-
* // `$ npm install googleapis`
|
|
7894
|
-
*
|
|
7895
|
-
* const {google} = require('googleapis');
|
|
7896
|
-
* const tagmanager = google.tagmanager('v1');
|
|
7897
|
-
*
|
|
7898
|
-
* async function main() {
|
|
7899
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7900
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7901
|
-
* scopes: [
|
|
7902
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
7903
|
-
* ],
|
|
7904
|
-
* });
|
|
7905
|
-
*
|
|
7906
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7907
|
-
* const authClient = await auth.getClient();
|
|
7908
|
-
* google.options({auth: authClient});
|
|
7909
|
-
*
|
|
7910
|
-
* // Do the magic
|
|
7911
|
-
* const res = await tagmanager.accounts.containers.versions.undelete({
|
|
7912
|
-
* // The GTM Account ID.
|
|
7913
|
-
* accountId: 'placeholder-value',
|
|
7914
|
-
* // The GTM Container ID.
|
|
7915
|
-
* containerId: 'placeholder-value',
|
|
7916
|
-
* // The GTM Container Version ID.
|
|
7917
|
-
* containerVersionId: 'placeholder-value',
|
|
7918
|
-
* });
|
|
7919
|
-
* console.log(res.data);
|
|
7920
|
-
*
|
|
7921
|
-
* // Example response
|
|
7922
|
-
* // {
|
|
7923
|
-
* // "accountId": "my_accountId",
|
|
7924
|
-
* // "container": {},
|
|
7925
|
-
* // "containerId": "my_containerId",
|
|
7926
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
7927
|
-
* // "deleted": false,
|
|
7928
|
-
* // "fingerprint": "my_fingerprint",
|
|
7929
|
-
* // "folder": [],
|
|
7930
|
-
* // "macro": [],
|
|
7931
|
-
* // "name": "my_name",
|
|
7932
|
-
* // "notes": "my_notes",
|
|
7933
|
-
* // "rule": [],
|
|
7934
|
-
* // "tag": [],
|
|
7935
|
-
* // "trigger": [],
|
|
7936
|
-
* // "variable": []
|
|
7937
|
-
* // }
|
|
7938
|
-
* }
|
|
7939
|
-
*
|
|
7940
|
-
* main().catch(e => {
|
|
7941
|
-
* console.error(e);
|
|
7942
|
-
* throw e;
|
|
7943
|
-
* });
|
|
7944
|
-
*
|
|
7945
|
-
* ```
|
|
7946
5344
|
*
|
|
7947
5345
|
* @param params - Parameters for request
|
|
7948
5346
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8030,90 +5428,6 @@ export namespace tagmanager_v1 {
|
|
|
8030
5428
|
|
|
8031
5429
|
/**
|
|
8032
5430
|
* Updates a Container Version.
|
|
8033
|
-
* @example
|
|
8034
|
-
* ```js
|
|
8035
|
-
* // Before running the sample:
|
|
8036
|
-
* // - Enable the API at:
|
|
8037
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8038
|
-
* // - Login into gcloud by running:
|
|
8039
|
-
* // `$ gcloud auth application-default login`
|
|
8040
|
-
* // - Install the npm module by running:
|
|
8041
|
-
* // `$ npm install googleapis`
|
|
8042
|
-
*
|
|
8043
|
-
* const {google} = require('googleapis');
|
|
8044
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8045
|
-
*
|
|
8046
|
-
* async function main() {
|
|
8047
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8048
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8049
|
-
* scopes: [
|
|
8050
|
-
* 'https://www.googleapis.com/auth/tagmanager.edit.containerversions',
|
|
8051
|
-
* ],
|
|
8052
|
-
* });
|
|
8053
|
-
*
|
|
8054
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8055
|
-
* const authClient = await auth.getClient();
|
|
8056
|
-
* google.options({auth: authClient});
|
|
8057
|
-
*
|
|
8058
|
-
* // Do the magic
|
|
8059
|
-
* const res = await tagmanager.accounts.containers.versions.update({
|
|
8060
|
-
* // The GTM Account ID.
|
|
8061
|
-
* accountId: 'placeholder-value',
|
|
8062
|
-
* // The GTM Container ID.
|
|
8063
|
-
* containerId: 'placeholder-value',
|
|
8064
|
-
* // The GTM Container Version ID.
|
|
8065
|
-
* containerVersionId: 'placeholder-value',
|
|
8066
|
-
* // When provided, this fingerprint must match the fingerprint of the container version in storage.
|
|
8067
|
-
* fingerprint: 'placeholder-value',
|
|
8068
|
-
*
|
|
8069
|
-
* // Request body metadata
|
|
8070
|
-
* requestBody: {
|
|
8071
|
-
* // request body parameters
|
|
8072
|
-
* // {
|
|
8073
|
-
* // "accountId": "my_accountId",
|
|
8074
|
-
* // "container": {},
|
|
8075
|
-
* // "containerId": "my_containerId",
|
|
8076
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
8077
|
-
* // "deleted": false,
|
|
8078
|
-
* // "fingerprint": "my_fingerprint",
|
|
8079
|
-
* // "folder": [],
|
|
8080
|
-
* // "macro": [],
|
|
8081
|
-
* // "name": "my_name",
|
|
8082
|
-
* // "notes": "my_notes",
|
|
8083
|
-
* // "rule": [],
|
|
8084
|
-
* // "tag": [],
|
|
8085
|
-
* // "trigger": [],
|
|
8086
|
-
* // "variable": []
|
|
8087
|
-
* // }
|
|
8088
|
-
* },
|
|
8089
|
-
* });
|
|
8090
|
-
* console.log(res.data);
|
|
8091
|
-
*
|
|
8092
|
-
* // Example response
|
|
8093
|
-
* // {
|
|
8094
|
-
* // "accountId": "my_accountId",
|
|
8095
|
-
* // "container": {},
|
|
8096
|
-
* // "containerId": "my_containerId",
|
|
8097
|
-
* // "containerVersionId": "my_containerVersionId",
|
|
8098
|
-
* // "deleted": false,
|
|
8099
|
-
* // "fingerprint": "my_fingerprint",
|
|
8100
|
-
* // "folder": [],
|
|
8101
|
-
* // "macro": [],
|
|
8102
|
-
* // "name": "my_name",
|
|
8103
|
-
* // "notes": "my_notes",
|
|
8104
|
-
* // "rule": [],
|
|
8105
|
-
* // "tag": [],
|
|
8106
|
-
* // "trigger": [],
|
|
8107
|
-
* // "variable": []
|
|
8108
|
-
* // }
|
|
8109
|
-
* }
|
|
8110
|
-
*
|
|
8111
|
-
* main().catch(e => {
|
|
8112
|
-
* console.error(e);
|
|
8113
|
-
* throw e;
|
|
8114
|
-
* });
|
|
8115
|
-
*
|
|
8116
|
-
* ```
|
|
8117
5431
|
*
|
|
8118
5432
|
* @param params - Parameters for request
|
|
8119
5433
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8347,64 +5661,6 @@ export namespace tagmanager_v1 {
|
|
|
8347
5661
|
|
|
8348
5662
|
/**
|
|
8349
5663
|
* Creates a user's Account & Container Permissions.
|
|
8350
|
-
* @example
|
|
8351
|
-
* ```js
|
|
8352
|
-
* // Before running the sample:
|
|
8353
|
-
* // - Enable the API at:
|
|
8354
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8355
|
-
* // - Login into gcloud by running:
|
|
8356
|
-
* // `$ gcloud auth application-default login`
|
|
8357
|
-
* // - Install the npm module by running:
|
|
8358
|
-
* // `$ npm install googleapis`
|
|
8359
|
-
*
|
|
8360
|
-
* const {google} = require('googleapis');
|
|
8361
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8362
|
-
*
|
|
8363
|
-
* async function main() {
|
|
8364
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8365
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8366
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
|
|
8367
|
-
* });
|
|
8368
|
-
*
|
|
8369
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8370
|
-
* const authClient = await auth.getClient();
|
|
8371
|
-
* google.options({auth: authClient});
|
|
8372
|
-
*
|
|
8373
|
-
* // Do the magic
|
|
8374
|
-
* const res = await tagmanager.accounts.permissions.create({
|
|
8375
|
-
* // The GTM Account ID.
|
|
8376
|
-
* accountId: 'placeholder-value',
|
|
8377
|
-
*
|
|
8378
|
-
* // Request body metadata
|
|
8379
|
-
* requestBody: {
|
|
8380
|
-
* // request body parameters
|
|
8381
|
-
* // {
|
|
8382
|
-
* // "accountAccess": {},
|
|
8383
|
-
* // "accountId": "my_accountId",
|
|
8384
|
-
* // "containerAccess": [],
|
|
8385
|
-
* // "emailAddress": "my_emailAddress",
|
|
8386
|
-
* // "permissionId": "my_permissionId"
|
|
8387
|
-
* // }
|
|
8388
|
-
* },
|
|
8389
|
-
* });
|
|
8390
|
-
* console.log(res.data);
|
|
8391
|
-
*
|
|
8392
|
-
* // Example response
|
|
8393
|
-
* // {
|
|
8394
|
-
* // "accountAccess": {},
|
|
8395
|
-
* // "accountId": "my_accountId",
|
|
8396
|
-
* // "containerAccess": [],
|
|
8397
|
-
* // "emailAddress": "my_emailAddress",
|
|
8398
|
-
* // "permissionId": "my_permissionId"
|
|
8399
|
-
* // }
|
|
8400
|
-
* }
|
|
8401
|
-
*
|
|
8402
|
-
* main().catch(e => {
|
|
8403
|
-
* console.error(e);
|
|
8404
|
-
* throw e;
|
|
8405
|
-
* });
|
|
8406
|
-
*
|
|
8407
|
-
* ```
|
|
8408
5664
|
*
|
|
8409
5665
|
* @param params - Parameters for request
|
|
8410
5666
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8491,45 +5747,6 @@ export namespace tagmanager_v1 {
|
|
|
8491
5747
|
|
|
8492
5748
|
/**
|
|
8493
5749
|
* Removes a user from the account, revoking access to it and all of its containers.
|
|
8494
|
-
* @example
|
|
8495
|
-
* ```js
|
|
8496
|
-
* // Before running the sample:
|
|
8497
|
-
* // - Enable the API at:
|
|
8498
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8499
|
-
* // - Login into gcloud by running:
|
|
8500
|
-
* // `$ gcloud auth application-default login`
|
|
8501
|
-
* // - Install the npm module by running:
|
|
8502
|
-
* // `$ npm install googleapis`
|
|
8503
|
-
*
|
|
8504
|
-
* const {google} = require('googleapis');
|
|
8505
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8506
|
-
*
|
|
8507
|
-
* async function main() {
|
|
8508
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8509
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8510
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
|
|
8511
|
-
* });
|
|
8512
|
-
*
|
|
8513
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8514
|
-
* const authClient = await auth.getClient();
|
|
8515
|
-
* google.options({auth: authClient});
|
|
8516
|
-
*
|
|
8517
|
-
* // Do the magic
|
|
8518
|
-
* const res = await tagmanager.accounts.permissions.delete({
|
|
8519
|
-
* // The GTM Account ID.
|
|
8520
|
-
* accountId: 'placeholder-value',
|
|
8521
|
-
* // The GTM User ID.
|
|
8522
|
-
* permissionId: 'placeholder-value',
|
|
8523
|
-
* });
|
|
8524
|
-
* console.log(res.data);
|
|
8525
|
-
* }
|
|
8526
|
-
*
|
|
8527
|
-
* main().catch(e => {
|
|
8528
|
-
* console.error(e);
|
|
8529
|
-
* throw e;
|
|
8530
|
-
* });
|
|
8531
|
-
*
|
|
8532
|
-
* ```
|
|
8533
5750
|
*
|
|
8534
5751
|
* @param params - Parameters for request
|
|
8535
5752
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8615,54 +5832,6 @@ export namespace tagmanager_v1 {
|
|
|
8615
5832
|
|
|
8616
5833
|
/**
|
|
8617
5834
|
* Gets a user's Account & Container Permissions.
|
|
8618
|
-
* @example
|
|
8619
|
-
* ```js
|
|
8620
|
-
* // Before running the sample:
|
|
8621
|
-
* // - Enable the API at:
|
|
8622
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8623
|
-
* // - Login into gcloud by running:
|
|
8624
|
-
* // `$ gcloud auth application-default login`
|
|
8625
|
-
* // - Install the npm module by running:
|
|
8626
|
-
* // `$ npm install googleapis`
|
|
8627
|
-
*
|
|
8628
|
-
* const {google} = require('googleapis');
|
|
8629
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8630
|
-
*
|
|
8631
|
-
* async function main() {
|
|
8632
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8633
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8634
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
|
|
8635
|
-
* });
|
|
8636
|
-
*
|
|
8637
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8638
|
-
* const authClient = await auth.getClient();
|
|
8639
|
-
* google.options({auth: authClient});
|
|
8640
|
-
*
|
|
8641
|
-
* // Do the magic
|
|
8642
|
-
* const res = await tagmanager.accounts.permissions.get({
|
|
8643
|
-
* // The GTM Account ID.
|
|
8644
|
-
* accountId: 'placeholder-value',
|
|
8645
|
-
* // The GTM User ID.
|
|
8646
|
-
* permissionId: 'placeholder-value',
|
|
8647
|
-
* });
|
|
8648
|
-
* console.log(res.data);
|
|
8649
|
-
*
|
|
8650
|
-
* // Example response
|
|
8651
|
-
* // {
|
|
8652
|
-
* // "accountAccess": {},
|
|
8653
|
-
* // "accountId": "my_accountId",
|
|
8654
|
-
* // "containerAccess": [],
|
|
8655
|
-
* // "emailAddress": "my_emailAddress",
|
|
8656
|
-
* // "permissionId": "my_permissionId"
|
|
8657
|
-
* // }
|
|
8658
|
-
* }
|
|
8659
|
-
*
|
|
8660
|
-
* main().catch(e => {
|
|
8661
|
-
* console.error(e);
|
|
8662
|
-
* throw e;
|
|
8663
|
-
* });
|
|
8664
|
-
*
|
|
8665
|
-
* ```
|
|
8666
5835
|
*
|
|
8667
5836
|
* @param params - Parameters for request
|
|
8668
5837
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8750,48 +5919,6 @@ export namespace tagmanager_v1 {
|
|
|
8750
5919
|
|
|
8751
5920
|
/**
|
|
8752
5921
|
* List all users that have access to the account along with Account and Container Permissions granted to each of them.
|
|
8753
|
-
* @example
|
|
8754
|
-
* ```js
|
|
8755
|
-
* // Before running the sample:
|
|
8756
|
-
* // - Enable the API at:
|
|
8757
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8758
|
-
* // - Login into gcloud by running:
|
|
8759
|
-
* // `$ gcloud auth application-default login`
|
|
8760
|
-
* // - Install the npm module by running:
|
|
8761
|
-
* // `$ npm install googleapis`
|
|
8762
|
-
*
|
|
8763
|
-
* const {google} = require('googleapis');
|
|
8764
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8765
|
-
*
|
|
8766
|
-
* async function main() {
|
|
8767
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8768
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8769
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
|
|
8770
|
-
* });
|
|
8771
|
-
*
|
|
8772
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8773
|
-
* const authClient = await auth.getClient();
|
|
8774
|
-
* google.options({auth: authClient});
|
|
8775
|
-
*
|
|
8776
|
-
* // Do the magic
|
|
8777
|
-
* const res = await tagmanager.accounts.permissions.list({
|
|
8778
|
-
* // The GTM Account ID.
|
|
8779
|
-
* accountId: 'placeholder-value',
|
|
8780
|
-
* });
|
|
8781
|
-
* console.log(res.data);
|
|
8782
|
-
*
|
|
8783
|
-
* // Example response
|
|
8784
|
-
* // {
|
|
8785
|
-
* // "userAccess": []
|
|
8786
|
-
* // }
|
|
8787
|
-
* }
|
|
8788
|
-
*
|
|
8789
|
-
* main().catch(e => {
|
|
8790
|
-
* console.error(e);
|
|
8791
|
-
* throw e;
|
|
8792
|
-
* });
|
|
8793
|
-
*
|
|
8794
|
-
* ```
|
|
8795
5922
|
*
|
|
8796
5923
|
* @param params - Parameters for request
|
|
8797
5924
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -8883,66 +6010,6 @@ export namespace tagmanager_v1 {
|
|
|
8883
6010
|
|
|
8884
6011
|
/**
|
|
8885
6012
|
* Updates a user's Account & Container Permissions.
|
|
8886
|
-
* @example
|
|
8887
|
-
* ```js
|
|
8888
|
-
* // Before running the sample:
|
|
8889
|
-
* // - Enable the API at:
|
|
8890
|
-
* // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
|
|
8891
|
-
* // - Login into gcloud by running:
|
|
8892
|
-
* // `$ gcloud auth application-default login`
|
|
8893
|
-
* // - Install the npm module by running:
|
|
8894
|
-
* // `$ npm install googleapis`
|
|
8895
|
-
*
|
|
8896
|
-
* const {google} = require('googleapis');
|
|
8897
|
-
* const tagmanager = google.tagmanager('v1');
|
|
8898
|
-
*
|
|
8899
|
-
* async function main() {
|
|
8900
|
-
* const auth = new google.auth.GoogleAuth({
|
|
8901
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8902
|
-
* scopes: ['https://www.googleapis.com/auth/tagmanager.manage.users'],
|
|
8903
|
-
* });
|
|
8904
|
-
*
|
|
8905
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
8906
|
-
* const authClient = await auth.getClient();
|
|
8907
|
-
* google.options({auth: authClient});
|
|
8908
|
-
*
|
|
8909
|
-
* // Do the magic
|
|
8910
|
-
* const res = await tagmanager.accounts.permissions.update({
|
|
8911
|
-
* // The GTM Account ID.
|
|
8912
|
-
* accountId: 'placeholder-value',
|
|
8913
|
-
* // The GTM User ID.
|
|
8914
|
-
* permissionId: 'placeholder-value',
|
|
8915
|
-
*
|
|
8916
|
-
* // Request body metadata
|
|
8917
|
-
* requestBody: {
|
|
8918
|
-
* // request body parameters
|
|
8919
|
-
* // {
|
|
8920
|
-
* // "accountAccess": {},
|
|
8921
|
-
* // "accountId": "my_accountId",
|
|
8922
|
-
* // "containerAccess": [],
|
|
8923
|
-
* // "emailAddress": "my_emailAddress",
|
|
8924
|
-
* // "permissionId": "my_permissionId"
|
|
8925
|
-
* // }
|
|
8926
|
-
* },
|
|
8927
|
-
* });
|
|
8928
|
-
* console.log(res.data);
|
|
8929
|
-
*
|
|
8930
|
-
* // Example response
|
|
8931
|
-
* // {
|
|
8932
|
-
* // "accountAccess": {},
|
|
8933
|
-
* // "accountId": "my_accountId",
|
|
8934
|
-
* // "containerAccess": [],
|
|
8935
|
-
* // "emailAddress": "my_emailAddress",
|
|
8936
|
-
* // "permissionId": "my_permissionId"
|
|
8937
|
-
* // }
|
|
8938
|
-
* }
|
|
8939
|
-
*
|
|
8940
|
-
* main().catch(e => {
|
|
8941
|
-
* console.error(e);
|
|
8942
|
-
* throw e;
|
|
8943
|
-
* });
|
|
8944
|
-
*
|
|
8945
|
-
* ```
|
|
8946
6013
|
*
|
|
8947
6014
|
* @param params - Parameters for request
|
|
8948
6015
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|