@metarouter/ajs-starter-kit 1.0.144 → 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/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/kit.etag.json +1 -1
- package/.dist/blob/metadata.json +4 -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/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/microsoft-ads/kit.etag.json +1 -1
- 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 +55 -28
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.1",
|
|
3
3
|
"global": {
|
|
4
4
|
"mappings": [
|
|
5
5
|
{
|
|
@@ -112,8 +112,9 @@
|
|
|
112
112
|
],
|
|
113
113
|
"expressions": [
|
|
114
114
|
{
|
|
115
|
-
"
|
|
116
|
-
"
|
|
115
|
+
"lang": "lua",
|
|
116
|
+
"name": "User Properties",
|
|
117
|
+
"body": "local up = {}\nup.metarouter_anonymousid = input.anonymousId\n\nlocal output = {} for key, value in pairs(up) do output[\"up.\" .. key] = value\nend\nreturn output"
|
|
117
118
|
}
|
|
118
119
|
]
|
|
119
120
|
},
|
|
@@ -187,6 +188,7 @@
|
|
|
187
188
|
"expressions": [
|
|
188
189
|
{
|
|
189
190
|
"lang": "lua",
|
|
191
|
+
"name": "Product Properties",
|
|
190
192
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
191
193
|
}
|
|
192
194
|
]
|
|
@@ -427,6 +429,7 @@
|
|
|
427
429
|
"expressions": [
|
|
428
430
|
{
|
|
429
431
|
"lang": "lua",
|
|
432
|
+
"name": "Product Properties",
|
|
430
433
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
431
434
|
}
|
|
432
435
|
]
|
|
@@ -481,6 +484,7 @@
|
|
|
481
484
|
"expressions": [
|
|
482
485
|
{
|
|
483
486
|
"lang": "lua",
|
|
487
|
+
"name": "Product Properties",
|
|
484
488
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
485
489
|
}
|
|
486
490
|
]
|
|
@@ -527,6 +531,7 @@
|
|
|
527
531
|
"expressions": [
|
|
528
532
|
{
|
|
529
533
|
"lang": "lua",
|
|
534
|
+
"name": "Product Properties",
|
|
530
535
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
531
536
|
}
|
|
532
537
|
]
|
|
@@ -585,6 +590,7 @@
|
|
|
585
590
|
"expressions": [
|
|
586
591
|
{
|
|
587
592
|
"lang": "lua",
|
|
593
|
+
"name": "Product Properties",
|
|
588
594
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
589
595
|
}
|
|
590
596
|
]
|
|
@@ -639,6 +645,7 @@
|
|
|
639
645
|
"expressions": [
|
|
640
646
|
{
|
|
641
647
|
"lang": "lua",
|
|
648
|
+
"name": "Product Properties",
|
|
642
649
|
"body": "local items = {}\nif (input.properties.products) then\n for inputIndex, product in pairs(input.properties.products) do\n local index = 'pr' .. inputIndex\n product_details = {}\n if (product.product_id or product.sku) then table.insert(product_details, 'id' .. (product.product_id or product.sku)) end\n if product.name then table.insert(product_details, 'nm' .. product.name) end\n if product.affiliation then table.insert(product_details, 'af' .. product.affiliation) end\n if product.coupon then table.insert(product_details, 'cp' .. product.coupon) end\n if product.discount then table.insert(product_details, 'ds' .. product.discount) end\n if product.position then table.insert(product_details, 'lp' .. product.position) end\n if product.brand then table.insert(product_details, 'br' .. product.brand) end\n if product.category then table.insert(product_details, 'ca' .. product.category) end\n if product.variant then table.insert(product_details, 'va' .. product.variant) end\n if product.price then table.insert(product_details, 'pr' .. product.price) end\n if product.quantity then table.insert(product_details, 'qt' .. product.quantity) end\n items[index] = JOIN(product_details, '~')\n end\nend\nreturn items"
|
|
643
650
|
}
|
|
644
651
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"18289868c72f542397fa4a95554a1105 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"aa2588fbed93eccc97d982aa1e7f8463 -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.1",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "CONFIG_ID",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"expressions": [
|
|
63
63
|
{
|
|
64
64
|
"lang": "lua",
|
|
65
|
+
"name": "Click, Mobile Device and Match ID(s)",
|
|
65
66
|
"body": "local gclid = SPLIT(input.context.providers.googleGtag.data.gclid, \".\", 3)[3];\nlocal dclid = SPLIT(input.context.providers.googleGtag.data.dclid, \".\", 3)[3];\nlocal mobileDeviceId = input.context.device.advertisingId;\nlocal matchId = input.anonymousId;\nreturn (gclid and { gclid = gclid }) or (dclid and { dclid = dclid}) or (mobileDeviceId and { mobileDeviceId = mobileDeviceId}) or (matchId and { matchId = matchId })"
|
|
66
67
|
}
|
|
67
68
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"5fb55bf9e3c33ddb16bf5a8a71b56218 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a8e5b6c4c203e643153c45b1aa153444 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e046f17bb1ca8cb18838d0de22d01ab1 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"28f25b611308103167d43d881005cdab -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.1",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "CAMPAIGN_ID",
|
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
"expressions": [
|
|
147
147
|
{
|
|
148
148
|
"lang": "lua",
|
|
149
|
+
"name": "Product Properties",
|
|
149
150
|
"body": "local keyMappings = {\n category = 'ItemCategory',\n sku = 'ItemSku',\n price = 'ItemPrice',\n quantity = 'ItemQuantity',\n name = 'ItemName',\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 = outputKey .. outputIndex\n results[resultKey] = productVal\n end\n end\nend\nreturn results"
|
|
150
151
|
}
|
|
151
152
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"02b87039bc679fdef4abfd40411a0b29 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a8e5b6c4c203e643153c45b1aa153444 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"87559997b4f2f22103a51dcef8d00a9f -"
|
|
@@ -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 -"
|