@metarouter/ajs-starter-kit 1.0.143 → 1.0.145
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/actioniq/kit.etag.json +1 -1
- package/.dist/actioniq/metadata.json +4 -0
- package/.dist/actioniq/playbook.etag.json +1 -1
- package/.dist/actioniq/playbook.json +2 -1
- package/.dist/adjust/kit.etag.json +1 -1
- package/.dist/adjust/metadata.json +4 -0
- package/.dist/adjust/playbook.etag.json +1 -1
- package/.dist/adjust/playbook.json +2 -1
- package/.dist/adobe-bdia/connection.etag.json +1 -0
- package/.dist/adobe-bdia/connection.json +42 -0
- package/.dist/adobe-bdia/kit.etag.json +1 -0
- package/.dist/adobe-bdia/metadata.json +25 -0
- package/.dist/adobe-bdia/playbook.etag.json +1 -0
- package/.dist/adobe-bdia/playbook.json +251 -0
- package/.dist/amazon-data-firehose/kit.etag.json +1 -1
- package/.dist/amazon-data-firehose/metadata.json +4 -0
- package/.dist/amazon-data-firehose/playbook.etag.json +1 -1
- package/.dist/amazon-data-firehose/playbook.json +3 -2
- package/.dist/amazon-kinesis/kit.etag.json +1 -1
- package/.dist/amazon-kinesis/metadata.json +4 -0
- package/.dist/amazon-kinesis/playbook.etag.json +1 -1
- package/.dist/amazon-kinesis/playbook.json +3 -2
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/metadata.json +4 -0
- package/.dist/amplitude/playbook.etag.json +1 -1
- package/.dist/amplitude/playbook.json +9 -1
- package/.dist/blob/connection.etag.json +1 -1
- package/.dist/blob/connection.json +2 -1
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/blob/metadata.json +8 -0
- package/.dist/blob/playbook.etag.json +1 -1
- package/.dist/blob/playbook.json +3 -2
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/metadata.json +4 -0
- package/.dist/blueshift/playbook.etag.json +1 -1
- package/.dist/blueshift/playbook.json +3 -1
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/braze/metadata.json +4 -0
- package/.dist/braze/playbook.etag.json +1 -1
- package/.dist/braze/playbook.json +2 -1
- package/.dist/build-your-own/kit.etag.json +1 -1
- package/.dist/build-your-own/metadata.json +4 -0
- package/.dist/build-your-own/playbook.etag.json +1 -1
- package/.dist/build-your-own/playbook.json +3 -2
- package/.dist/clinch/kit.etag.json +1 -1
- package/.dist/clinch/metadata.json +4 -0
- package/.dist/clinch/playbook.etag.json +1 -1
- package/.dist/clinch/playbook.json +3 -2
- package/.dist/connection-schemas.json +32 -0
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/gcs/kit.etag.json +1 -1
- package/.dist/gcs/metadata.json +4 -0
- package/.dist/gcs/playbook.etag.json +1 -1
- package/.dist/gcs/playbook.json +3 -2
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/metadata.json +4 -0
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +2 -1
- package/.dist/google-ads-audience/kit.etag.json +1 -1
- package/.dist/google-ads-audience/metadata.json +4 -0
- package/.dist/google-ads-audience/playbook.etag.json +1 -1
- package/.dist/google-ads-audience/playbook.json +3 -1
- package/.dist/google-analytics/kit.etag.json +1 -1
- package/.dist/google-analytics/metadata.json +4 -0
- package/.dist/google-analytics/playbook.etag.json +1 -1
- package/.dist/google-analytics/playbook.json +5 -1
- package/.dist/google-analytics-4-collect/kit.etag.json +1 -1
- package/.dist/google-analytics-4-collect/metadata.json +4 -0
- package/.dist/google-analytics-4-collect/playbook.etag.json +1 -1
- package/.dist/google-analytics-4-collect/playbook.json +10 -3
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/metadata.json +4 -0
- package/.dist/google-cm360/playbook.etag.json +1 -1
- package/.dist/google-cm360/playbook.json +2 -1
- package/.dist/google-pubsub/kit.etag.json +1 -1
- package/.dist/google-pubsub/metadata.json +4 -0
- package/.dist/google-pubsub/playbook.etag.json +1 -1
- package/.dist/google-pubsub/playbook.json +3 -2
- package/.dist/impact-radius/kit.etag.json +1 -1
- package/.dist/impact-radius/metadata.json +4 -0
- package/.dist/impact-radius/playbook.etag.json +1 -1
- package/.dist/impact-radius/playbook.json +2 -1
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +4 -0
- package/.dist/kafka/playbook.etag.json +1 -1
- package/.dist/kafka/playbook.json +3 -2
- package/.dist/nextdoor-capi/kit.etag.json +1 -1
- package/.dist/nextdoor-capi/metadata.json +4 -0
- package/.dist/nextdoor-capi/playbook.etag.json +1 -1
- package/.dist/nextdoor-capi/playbook.json +150 -10
- package/.dist/perion/kit.etag.json +1 -1
- package/.dist/perion/metadata.json +4 -0
- package/.dist/perion/playbook.etag.json +1 -1
- package/.dist/perion/playbook.json +4 -1
- package/.dist/pinterest/kit.etag.json +1 -1
- package/.dist/pinterest/metadata.json +4 -0
- package/.dist/pinterest/playbook.etag.json +1 -1
- package/.dist/pinterest/playbook.json +6 -1
- package/.dist/podscribe/kit.etag.json +1 -1
- package/.dist/podscribe/metadata.json +4 -0
- package/.dist/podscribe/playbook.etag.json +1 -1
- package/.dist/podscribe/playbook.json +4 -3
- package/.dist/reddit-ads/connection.etag.json +1 -1
- package/.dist/reddit-ads/connection.json +10 -38
- package/.dist/reddit-ads/kit.etag.json +1 -1
- package/.dist/reddit-ads/metadata.json +5 -1
- package/.dist/reddit-ads/playbook.etag.json +1 -1
- package/.dist/reddit-ads/playbook.json +57 -41
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/roomvo/metadata.json +4 -0
- package/.dist/roomvo/playbook.etag.json +1 -1
- package/.dist/roomvo/playbook.json +2 -1
- package/.dist/s3/kit.etag.json +1 -1
- package/.dist/s3/metadata.json +4 -0
- package/.dist/s3/playbook.etag.json +1 -1
- package/.dist/s3/playbook.json +3 -2
- package/.dist/snapchat/kit.etag.json +1 -1
- package/.dist/snapchat/metadata.json +4 -0
- package/.dist/snapchat/playbook.etag.json +1 -1
- package/.dist/snapchat/playbook.json +2 -1
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/snowflake/metadata.json +4 -0
- package/.dist/snowflake/playbook.etag.json +1 -1
- package/.dist/snowflake/playbook.json +3 -2
- package/.dist/ttd-conversions/kit.etag.json +1 -1
- package/.dist/ttd-conversions/metadata.json +4 -0
- package/.dist/ttd-conversions/playbook.etag.json +1 -1
- package/.dist/ttd-conversions/playbook.json +3 -2
- package/README.md +63 -40
- package/index.js +10 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.4.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"exampleValue": "my-
|
|
5
|
+
"name": "DATA_SOURCE_ID",
|
|
6
|
+
"exampleValue": "my-data-source-id"
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"default": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"outputKey": "partner_id"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"staticString": "$$
|
|
29
|
-
"outputKey": "
|
|
28
|
+
"staticString": "$$DATA_SOURCE_ID$$",
|
|
29
|
+
"outputKey": "data_source_id"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"mappings": [
|
|
@@ -35,8 +35,16 @@
|
|
|
35
35
|
"outputKey": "event_id"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"inputKey": "
|
|
39
|
-
"outputKey": "
|
|
38
|
+
"inputKey": "input",
|
|
39
|
+
"outputKey": "event_time_epoch",
|
|
40
|
+
"transforms": [
|
|
41
|
+
{
|
|
42
|
+
"expression": {
|
|
43
|
+
"lang": "lua",
|
|
44
|
+
"body": "return SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
40
48
|
},
|
|
41
49
|
{
|
|
42
50
|
"inputKey": "input",
|
|
@@ -44,12 +52,24 @@
|
|
|
44
52
|
"transforms": [
|
|
45
53
|
{
|
|
46
54
|
"expression": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
55
|
+
"lang": "lua",
|
|
56
|
+
"body": "if input.context.app.name or input.context.device.type or input.context.os.name then return 'app' end\nreturn 'website'"
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
59
|
]
|
|
52
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"inputKey": "context.device.adTrackingEnabled",
|
|
63
|
+
"outputKey": "app.app_tracking_enabled"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputKey": "context.device.type",
|
|
67
|
+
"outputKey": "app.platform"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputKey": "context.app.version",
|
|
71
|
+
"outputKey": "app.app_version"
|
|
72
|
+
},
|
|
53
73
|
{
|
|
54
74
|
"inputKey": "context.page.url",
|
|
55
75
|
"outputKey": "action_source_url"
|
|
@@ -177,6 +197,18 @@
|
|
|
177
197
|
}
|
|
178
198
|
}
|
|
179
199
|
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"inputKey": "context.userAgent",
|
|
203
|
+
"outputKey": "customer.client_user_agent"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"inputKey": "context.ip",
|
|
207
|
+
"outputKey": "customer.client_ip_address"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"inputKey": "anonymousId",
|
|
211
|
+
"outputKey": "customer.external_id"
|
|
180
212
|
}
|
|
181
213
|
]
|
|
182
214
|
},
|
|
@@ -211,13 +243,121 @@
|
|
|
211
243
|
"transforms": [
|
|
212
244
|
{
|
|
213
245
|
"expression": {
|
|
214
|
-
"body": "local val =
|
|
246
|
+
"body": "local val = TOTAL_VALUE(input.properties.products)\nlocal currency = UPPER(input.properties.currency) or \"USD\"\nreturn currency .. val",
|
|
215
247
|
"lang": "lua"
|
|
216
248
|
}
|
|
217
249
|
}
|
|
218
250
|
]
|
|
219
251
|
}
|
|
220
252
|
]
|
|
253
|
+
},
|
|
254
|
+
"product_added": {
|
|
255
|
+
"enrichments": [
|
|
256
|
+
{
|
|
257
|
+
"staticString": "add_to_cart",
|
|
258
|
+
"outputKey": "event_name"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"mappings": [
|
|
262
|
+
{
|
|
263
|
+
"inputKey": "properties.product_id",
|
|
264
|
+
"outputKey": "custom.product_context.id"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"inputKey": "properties.quantity",
|
|
268
|
+
"outputKey": "custom.product_context.quantity"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"inputKey": "properties.price",
|
|
272
|
+
"outputKey": "custom.product_context.item_price"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"checkout_started": {
|
|
277
|
+
"enrichments": [
|
|
278
|
+
{
|
|
279
|
+
"staticString": "initiate_checkout",
|
|
280
|
+
"outputKey": "event_name"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"mappings": [
|
|
284
|
+
{
|
|
285
|
+
"inputKey": "properties.order_id",
|
|
286
|
+
"outputKey": "custom.order_id"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"inputKey": "input",
|
|
290
|
+
"outputKey": "custom.product_context",
|
|
291
|
+
"transforms": [
|
|
292
|
+
{
|
|
293
|
+
"expression": {
|
|
294
|
+
"lang": "lua",
|
|
295
|
+
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"page": {
|
|
303
|
+
"enrichments": [
|
|
304
|
+
{
|
|
305
|
+
"staticString": "page_view",
|
|
306
|
+
"outputKey": "event_name"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
"product_viewed": {
|
|
311
|
+
"enrichments": [
|
|
312
|
+
{
|
|
313
|
+
"staticString": "view_content",
|
|
314
|
+
"outputKey": "event_name"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"mappings": [
|
|
318
|
+
{
|
|
319
|
+
"inputKey": "properties.product_id",
|
|
320
|
+
"outputKey": "custom.product_context.id"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"inputKey": "properties.quantity",
|
|
324
|
+
"outputKey": "custom.product_context.quantity"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"inputKey": "properties.price",
|
|
328
|
+
"outputKey": "custom.product_context.item_price"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"product_added_to_wishlist": {
|
|
333
|
+
"enrichments": [
|
|
334
|
+
{
|
|
335
|
+
"staticString": "add_to_wishlist",
|
|
336
|
+
"outputKey": "event_name"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"mappings": [
|
|
340
|
+
{
|
|
341
|
+
"inputKey": "properties.product_id",
|
|
342
|
+
"outputKey": "custom.product_context.id"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"inputKey": "properties.quantity",
|
|
346
|
+
"outputKey": "custom.product_context.quantity"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"inputKey": "properties.price",
|
|
350
|
+
"outputKey": "custom.product_context.item_price"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"products_searched": {
|
|
355
|
+
"enrichments": [
|
|
356
|
+
{
|
|
357
|
+
"staticString": "search",
|
|
358
|
+
"outputKey": "event_name"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
221
361
|
}
|
|
222
362
|
}
|
|
223
363
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"adf449badbfe4ae5ca183353e4192727 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"56b1ee95a66024c7a33c9b9c0b559842 -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.1",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ADVERTISER_ID",
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
"expressions": [
|
|
117
117
|
{
|
|
118
118
|
"lang": "lua",
|
|
119
|
+
"name": "Sale Tracker IDs",
|
|
119
120
|
"body": "return { tracker_ids = { ADD_SALE_TRACKER_IDS_HERE } }"
|
|
120
121
|
}
|
|
121
122
|
]
|
|
@@ -167,6 +168,7 @@
|
|
|
167
168
|
"expressions": [
|
|
168
169
|
{
|
|
169
170
|
"lang": "lua",
|
|
171
|
+
"name": "Cart Tracker IDs",
|
|
170
172
|
"body": "return { tracker_ids = { ADD_CART_TRACKER_IDS_HERE } }"
|
|
171
173
|
}
|
|
172
174
|
]
|
|
@@ -189,6 +191,7 @@
|
|
|
189
191
|
"expressions": [
|
|
190
192
|
{
|
|
191
193
|
"lang": "lua",
|
|
194
|
+
"name": "Site Visit Tracker IDs",
|
|
192
195
|
"body": "return { tracker_ids = { ADD_SITE_VISIT_TRACKER_IDS_HERE } }"
|
|
193
196
|
}
|
|
194
197
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"5ba8bbf26ff41bcb22e424e8fcb4a403 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d8a6efc09bd21eed970b4904cdcdbe4a -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.
|
|
2
|
+
"version": "1.1.1",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "TAG_ID",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"expressions": [
|
|
88
88
|
{
|
|
89
89
|
"lang": "lua",
|
|
90
|
+
"name": "Product Properties",
|
|
90
91
|
"body": "local keyMappings = {\n product_id = 'product_id',\n name = 'product_name',\n category = 'product_category',\n brand = 'product_brand'\n}\nlocal results = {}\nfor inputIndex, product in pairs(input.properties.products) do\n for inputKey, productVal in pairs(product) do\n local outputKey = keyMappings[inputKey]\n if outputKey then\n local outputIndex = inputIndex\n local resultKey = 'ed[line_items][' .. outputIndex - 1 .. '][' .. outputKey .. ']'\n results[resultKey] = productVal\n end\n end\nend\nreturn results"
|
|
91
92
|
}
|
|
92
93
|
]
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"expressions": [
|
|
102
103
|
{
|
|
103
104
|
"lang": "lua",
|
|
105
|
+
"name": "Product Properties",
|
|
104
106
|
"body": "local keyMappings = {\n product_id = 'product_id',\n name = 'product_name',\n category = 'product_category',\n brand = 'product_brand',\n price = 'product_price'\n}\nlocal results = {}\nfor inputKey, productVal in pairs(input.properties) do\n local outputKey = keyMappings[inputKey]\n if outputKey then\n local resultKey = 'ed[line_items][0][' .. outputKey .. ']'\n results[resultKey] = productVal\n end\nend\nreturn results"
|
|
105
107
|
}
|
|
106
108
|
],
|
|
@@ -154,6 +156,7 @@
|
|
|
154
156
|
"expressions": [
|
|
155
157
|
{
|
|
156
158
|
"lang": "lua",
|
|
159
|
+
"name": "Product Properties",
|
|
157
160
|
"body": "local keyMappings = {\n product_id = 'product_id',\n name = 'product_name',\n category = 'product_category',\n brand = 'product_brand',\n price = 'product_price',\n quantity = 'product_quantity'\n}\nlocal results = {}\nfor inputKey, productVal in pairs(input.properties) do\n local outputKey = keyMappings[inputKey]\n if outputKey then\n local resultKey = 'ed[line_items][0][' .. outputKey .. ']'\n results[resultKey] = productVal\n end\nend\nreturn results"
|
|
158
161
|
}
|
|
159
162
|
]
|
|
@@ -203,6 +206,7 @@
|
|
|
203
206
|
"expressions": [
|
|
204
207
|
{
|
|
205
208
|
"lang": "lua",
|
|
209
|
+
"name": "Product Properties",
|
|
206
210
|
"body": "local keyMappings = {\n product_id = 'product_id',\n name = 'product_name',\n category = 'product_category',\n brand = 'product_brand',\n price = 'product_price',\n quantity = 'product_quantity'\n}\nlocal results = {}\nfor inputIndex, product in pairs(input.properties.products) do\n for inputKey, productVal in pairs(product) do\n local outputKey = keyMappings[inputKey]\n if outputKey then\n local outputIndex = inputIndex\n local resultKey = 'ed[line_items][' .. outputIndex - 1 .. '][' .. outputKey .. ']'\n results[resultKey] = productVal\n end\n end\nend\nreturn results"
|
|
207
211
|
}
|
|
208
212
|
]
|
|
@@ -260,6 +264,7 @@
|
|
|
260
264
|
"expressions": [
|
|
261
265
|
{
|
|
262
266
|
"lang": "lua",
|
|
267
|
+
"name": "Product Properties",
|
|
263
268
|
"body": "local keyMappings = {\n product_id = 'product_id',\n name = 'product_name',\n category = 'product_category',\n brand = 'product_brand',\n price = 'product_price',\n quantity = 'product_quantity'\n}\nlocal results = {}\nfor inputIndex, product in pairs(input.properties.products) do\n for inputKey, productVal in pairs(product) do\n local outputKey = keyMappings[inputKey]\n if outputKey then\n local outputIndex = inputIndex\n local resultKey = 'ed[line_items][' .. outputIndex - 1 .. '][' .. outputKey .. ']'\n results[resultKey] = productVal\n end\n end\nend\nreturn results"
|
|
264
269
|
}
|
|
265
270
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e0c93e8cbd76fd06d373ceaa5fdd40a8 -"
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
{
|
|
29
29
|
"date": "2025-07-30T00:00:00.000Z",
|
|
30
30
|
"note": "Version: 1.2.0\nUpdated Lua timestamp fallback logic to use input.timestamp"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"date": "2025-10-15T00:00:00.000Z",
|
|
34
|
+
"note": "Version: 1.2.1\nAdded friendly names to expressions"
|
|
31
35
|
}
|
|
32
36
|
]
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e4fbff238e8d2eba2bdeee4b3df88e27 -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.1",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ADVERTISER_ID",
|
|
@@ -97,8 +97,9 @@
|
|
|
97
97
|
],
|
|
98
98
|
"expressions": [
|
|
99
99
|
{
|
|
100
|
-
"
|
|
101
|
-
"
|
|
100
|
+
"lang": "lua",
|
|
101
|
+
"name": "Mobile Device ID",
|
|
102
|
+
"body": "local output = {}\nif input.context.device.id then\n if input.context.device and input.context.device.type then\n if LOWER(input.context.device.type) == 'ios' then output['idfa'] = input.context.device.id\n elseif LOWER(input.context.device.type) == 'android' then output['gaid'] = input.context.device.id\n end\n end\nend\n\nreturn output"
|
|
102
103
|
}
|
|
103
104
|
]
|
|
104
105
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"12da1b49b018ac30f82939545aa0666e -"
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"params": [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
5
|
-
"exampleValue": "
|
|
4
|
+
"name": "PIXEL_ID",
|
|
5
|
+
"exampleValue": "my-pixel-id"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
|
-
"name": "
|
|
9
|
-
"exampleValue": "
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "BASIC_AUTH",
|
|
13
|
-
"exampleValue": "basic-auth"
|
|
8
|
+
"name": "ACCESS_TOKEN",
|
|
9
|
+
"exampleValue": "my-access-token"
|
|
14
10
|
}
|
|
15
11
|
],
|
|
16
12
|
"default": {
|
|
17
13
|
"batchSize": 500,
|
|
18
|
-
"endpoint": "https://ads-api.reddit.com/api/
|
|
14
|
+
"endpoint": "https://ads-api.reddit.com/api/v3/pixels/$$PIXEL_ID$$/conversion_events",
|
|
19
15
|
"headers": [
|
|
20
16
|
{
|
|
21
17
|
"key": "Accept-Encoding",
|
|
@@ -24,40 +20,16 @@
|
|
|
24
20
|
{
|
|
25
21
|
"key": "User-Agent",
|
|
26
22
|
"value": "web:metarouter:v1.0.0 (by /u/metarouter_io)"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"key": "Authorization",
|
|
26
|
+
"value": "Bearer $$ACCESS_TOKEN$$"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"method": "POST",
|
|
30
|
-
"oauth2Auth": {
|
|
31
|
-
"request": {
|
|
32
|
-
"body": [
|
|
33
|
-
{
|
|
34
|
-
"key": "grant_type",
|
|
35
|
-
"value": "refresh_token"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"key": "refresh_token",
|
|
39
|
-
"value": "$$REFRESH_TOKEN$$"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"contentType": "application/x-www-form-urlencoded",
|
|
43
|
-
"headers": [
|
|
44
|
-
{
|
|
45
|
-
"key": "Authorization",
|
|
46
|
-
"value": "Basic $$BASIC_AUTH$$"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"key": "User-Agent",
|
|
50
|
-
"value": "web:metarouter:v1.0.0 (by /u/metarouter_io)"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"method": "POST",
|
|
54
|
-
"url": "https://www.reddit.com/api/v1/access_token"
|
|
55
|
-
},
|
|
56
|
-
"responseAccessTokenKey": "access_token"
|
|
57
|
-
},
|
|
58
30
|
"transform": {
|
|
59
31
|
"lang": "lua",
|
|
60
|
-
"body": "request.body = { events = batch }\nreturn request"
|
|
32
|
+
"body": "request.body = { data = {events = batch} }\nreturn request"
|
|
61
33
|
}
|
|
62
34
|
}
|
|
63
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"595ffe9cde5c819ac7c971c811f0e44a -"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isDeprecated": false,
|
|
4
|
-
"isBeta":
|
|
4
|
+
"isBeta": true,
|
|
5
5
|
"friendlyName": "Reddit Ads",
|
|
6
6
|
"description": "Reddit ds are a form of advertising platform used by businesses and individuals to reach their target audience on Reddit.",
|
|
7
7
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
{
|
|
41
41
|
"date": "2025-07-30T00:00:00.000Z",
|
|
42
42
|
"note": "Version: 1.5.0\nReplaced context.traits with traits."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"date": "2025-10-15T00:00:00.000Z",
|
|
46
|
+
"note": "Version: 0.0.2\nBeta migration to Reddit CAPI V3.\nRemoved item_count from product_viewed"
|
|
43
47
|
}
|
|
44
48
|
]
|
|
45
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"8fb053294c109a10ae2fb3f45851555a -"
|