@metarouter/ajs-starter-kit 1.0.63 → 1.0.64
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/.dist/google-ad-words/connection.etag.json +1 -0
- package/.dist/google-ad-words/connection.json +12 -0
- package/.dist/google-ad-words/kit.etag.json +1 -0
- package/.dist/{google-ads → google-ad-words}/metadata.json +6 -2
- package/.dist/google-ad-words/playbook.etag.json +1 -0
- package/.dist/google-ad-words/playbook.json +3 -0
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +5 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/.dist/google-ads/connection.etag.json +0 -1
- package/.dist/google-ads/connection.json +0 -72
- package/.dist/google-ads/kit.etag.json +0 -1
- package/.dist/google-ads/playbook.etag.json +0 -1
- package/.dist/google-ads/playbook.json +0 -124
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"6b43ed086a94df1146973713df5a9313"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"3cceb92d73d335e9c013d6743bfd5cb9"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isBeta": true,
|
|
4
4
|
"friendlyName": "Google Ads",
|
|
5
|
-
"description": "Google Ads
|
|
5
|
+
"description": "Google Ads makes it easy to show the world what’s unique about your business, so you can reach customers searching for what you offer.",
|
|
6
6
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
7
|
"color": "#4185f5",
|
|
8
8
|
"eventSource": {
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
"inputSchema": "analytics_js",
|
|
14
14
|
"releaseNotes": [
|
|
15
15
|
{
|
|
16
|
-
"date": "
|
|
16
|
+
"date": "2021-06-24T00:00:00.000Z",
|
|
17
17
|
"note": "Google Ads initial release."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "2022-11-16T00:00:00.000Z",
|
|
21
|
+
"note": "Add isBeta field"
|
|
18
22
|
}
|
|
19
23
|
]
|
|
20
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"b595e137717755bf1031fcaa01ce64b5"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"feff4c006b59cab26e95ac0649899b14"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"isDraft":
|
|
2
|
+
"isDraft": false,
|
|
3
3
|
"isBeta": false,
|
|
4
4
|
"friendlyName": "Kafka",
|
|
5
5
|
"description": "Apache Kafka is an open-source distributed event streaming platform used by thousands of companies\nfor high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
{
|
|
28
28
|
"date": "2022-11-16T00:00:00.000Z",
|
|
29
29
|
"note": "Add isBeta field"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "2023-06-22T00:00:00.000Z",
|
|
33
|
+
"note": "Setting isDraft to false"
|
|
30
34
|
}
|
|
31
35
|
]
|
|
32
36
|
}
|
package/index.js
CHANGED
|
@@ -130,11 +130,11 @@ exports.gcs = {
|
|
|
130
130
|
metadata: require('./.dist/gcs/metadata.json')
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
exports['google-
|
|
134
|
-
connectionTemplate: connectionSchemas.properties.
|
|
135
|
-
endpointSchema: require('./.dist/google-
|
|
136
|
-
playbook: require('./.dist/google-
|
|
137
|
-
metadata: require('./.dist/google-
|
|
133
|
+
exports['google-ad-words'] = {
|
|
134
|
+
connectionTemplate: connectionSchemas.properties.googleAdWords,
|
|
135
|
+
endpointSchema: require('./.dist/google-ad-words/connection.json'),
|
|
136
|
+
playbook: require('./.dist/google-ad-words/playbook.json'),
|
|
137
|
+
metadata: require('./.dist/google-ad-words/metadata.json')
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
exports['google-analytics'] = {
|
|
@@ -483,10 +483,10 @@ exports.etags = {
|
|
|
483
483
|
playbook: require('./.dist/gcs/playbook.etag.json'),
|
|
484
484
|
kit: require('./.dist/gcs/kit.etag.json')
|
|
485
485
|
},
|
|
486
|
-
'google-
|
|
487
|
-
endpointSchema: require('./.dist/google-
|
|
488
|
-
playbook: require('./.dist/google-
|
|
489
|
-
kit: require('./.dist/google-
|
|
486
|
+
'google-ad-words': {
|
|
487
|
+
endpointSchema: require('./.dist/google-ad-words/connection.etag.json'),
|
|
488
|
+
playbook: require('./.dist/google-ad-words/playbook.etag.json'),
|
|
489
|
+
kit: require('./.dist/google-ad-words/kit.etag.json')
|
|
490
490
|
},
|
|
491
491
|
'google-analytics': {
|
|
492
492
|
endpointSchema: require('./.dist/google-analytics/connection.etag.json'),
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"21d71ab69e946cb51fe90c4548050216"
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"params": [
|
|
3
|
-
{
|
|
4
|
-
"name": "API_VERSION",
|
|
5
|
-
"defaultValue": "v13"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name": "CUSTOMER_ID",
|
|
9
|
-
"exampleValue": "customer-id"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "SERVICE_ACCOUNT_CLIENT_EMAIL",
|
|
13
|
-
"exampleValue": "service-account-client-email"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "SERVICE_ACCOUNT_PRIVATE_KEY",
|
|
17
|
-
"exampleValue": "service-account-private-key"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"default": {
|
|
21
|
-
"endpoint": "https://googleads.googleapis.com/$$API_VERSION$$/customers/$$CUSTOMER_ID$$:uploadClickConversions",
|
|
22
|
-
"batchSize": 100,
|
|
23
|
-
"method": "POST",
|
|
24
|
-
"headers": [
|
|
25
|
-
{
|
|
26
|
-
"key": "Content-Type",
|
|
27
|
-
"value": "application/x-www-form-urlencoded"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "Accept-Encoding",
|
|
31
|
-
"value": "application/json"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"oauth2_auth": {
|
|
35
|
-
"request": {
|
|
36
|
-
"url": "https://oauth2.googleapis.com/token",
|
|
37
|
-
"contentType": "application/x-www-form-urlencoded",
|
|
38
|
-
"method": "POST",
|
|
39
|
-
"body": [
|
|
40
|
-
{
|
|
41
|
-
"key": "grant_type",
|
|
42
|
-
"value": "urn:ietf:params:oauth:grant-type:jwt-bearer"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"responseAccessTokenKey": "access_token",
|
|
47
|
-
"jwt": {
|
|
48
|
-
"claims": [
|
|
49
|
-
{
|
|
50
|
-
"key": "aud",
|
|
51
|
-
"value": "https://oauth2.googleapis.com/token"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"key": "scope",
|
|
55
|
-
"value": "https://www.googleapis.com/auth/adwords"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"key": "iss",
|
|
59
|
-
"value": "$$SERVICE_ACCOUNT_CLIENT_EMAIL$$"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"signingMethod": "SIGNING_METHOD_RS256",
|
|
63
|
-
"rsaPemKey": "$$SERVICE_ACCOUNT_PRIVATE_KEY$$",
|
|
64
|
-
"requestKey": "assertion"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"transform": {
|
|
68
|
-
"lang": "lua",
|
|
69
|
-
"body": "request.body = { conversions = batch }\nreturn request"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"a40eaa1277b43bc61771931848e5c8b3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"f759558132e2943190386e11e5972566"
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "v0.0.1",
|
|
3
|
-
"params": [
|
|
4
|
-
{
|
|
5
|
-
"name": "CUSTOMER_ID",
|
|
6
|
-
"exampleValue": "customer-id"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"name": "ORDER_COMPLETED_CONVERSION_ACTION",
|
|
10
|
-
"defaultValue": "order-completed-conversion-action"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"default": {
|
|
14
|
-
"filters": [
|
|
15
|
-
{
|
|
16
|
-
"byEventNames": {
|
|
17
|
-
"action": "allow",
|
|
18
|
-
"events": [
|
|
19
|
-
""
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"global": {
|
|
26
|
-
"mappings": [
|
|
27
|
-
{
|
|
28
|
-
"inputKey": "context.providers.googleGtag.gbraid",
|
|
29
|
-
"outputKey": "gbraid"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"inputKey": "context.providers.googleGtag.wbraid",
|
|
33
|
-
"outputKey": "wbraid"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"inputKey": "context.providers.googleGtag.gclid",
|
|
37
|
-
"outputKey": "gclid"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"inputKey": "input",
|
|
41
|
-
"outputKey": "userIdentifiers",
|
|
42
|
-
"transforms": [
|
|
43
|
-
{
|
|
44
|
-
"expression": {
|
|
45
|
-
"lang": "lua",
|
|
46
|
-
"body": "if input.traits.email then\n return {{ hashedEmail = TO_SHA256_HASH(LOWER(TRIM(input.traits.email))) }}\nend"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"inputKey": "input",
|
|
53
|
-
"outputKey": "conversionDateTime",
|
|
54
|
-
"transforms": [
|
|
55
|
-
{
|
|
56
|
-
"expression": {
|
|
57
|
-
"lang": "lua",
|
|
58
|
-
"body": "local date = input.originalTimestamp or input.sentAt\nlocal timezoneOffset = input.context.providers.googleGtag.timezone_offset or 0\nreturn TO_DATE_TIME(date, { inputFormat = \"2006-01-02T15:04:05Z07:00\", inputLocation = { offset = timezoneOffset*60 }, outputFormat = \"2006-01-02 15:04:05-07:00\" })"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"eventSpecific": {
|
|
66
|
-
"order_completed": {
|
|
67
|
-
"mappings": [
|
|
68
|
-
{
|
|
69
|
-
"inputKey": "input",
|
|
70
|
-
"outputKey": "conversionAction",
|
|
71
|
-
"transforms": [
|
|
72
|
-
{
|
|
73
|
-
"expression": {
|
|
74
|
-
"body": "return \"customers/$$CUSTOMER_ID$$/conversionActions/$$ORDER_COMPLETED_CONVERSION_ACTION$$\"",
|
|
75
|
-
"lang": "lua"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"inputKey": "properties.currency",
|
|
82
|
-
"outputKey": "currencyCode",
|
|
83
|
-
"transforms": [
|
|
84
|
-
{
|
|
85
|
-
"modifyString": "uppercase"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"inputKey": "properties.revenue",
|
|
91
|
-
"outputKey": "conversionValue"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"inputKey": "properties.order_id",
|
|
95
|
-
"outputKey": "orderId"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"inputKey": "input",
|
|
99
|
-
"outputKey": "cartData.items",
|
|
100
|
-
"transforms": [
|
|
101
|
-
{
|
|
102
|
-
"expression": {
|
|
103
|
-
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n productId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price\n }\n end\n)",
|
|
104
|
-
"lang": "lua"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"inputKey": "input",
|
|
111
|
-
"outputKey": "customVariables",
|
|
112
|
-
"transforms": [
|
|
113
|
-
{
|
|
114
|
-
"expression": {
|
|
115
|
-
"body": "return {{\n conversionCustomVariable = \"customers/$$CUSTOMER_ID$$/conversionCustomVariables/$$ORDER_COMPLETED_CONVERSION_ACTION$$/conversion_custom_variable_name_here\",\n value = \"custom_variable_value_here\"\n}}",
|
|
116
|
-
"lang": "lua"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|