@metarouter/ajs-starter-kit 1.0.111 → 1.0.112

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.
@@ -0,0 +1 @@
1
+ "0cb388f22b4a349e7e01941fc6def3cc"
@@ -0,0 +1,25 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "DATA_CENTER",
5
+ "exampleValue": "my-data-center",
6
+ "defaultValue": "us",
7
+ "description": "Data center. Available options: ams (use for European and African users), asia (use for Asian and Australian users), us (use for North and South American users)."
8
+ }
9
+ ],
10
+ "default": {
11
+ "endpoint": "https://$$DATA_CENTER$$.creativecdn.com/partner/omni/postbacks?",
12
+ "method": "POST",
13
+ "headers": [
14
+ {
15
+ "key": "Accept-Encoding",
16
+ "value": "application/json"
17
+ }
18
+ ],
19
+ "batchSize": 1,
20
+ "transform": {
21
+ "lang": "lua",
22
+ "body": "local params = {}\nfor key, val in pairs(batch[1]) do\n table.insert(params, key..\"=\"..val)\nend\nrequest.url = request.url .. JOIN(params, '&')\nrequest.body = {}\nreturn request"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ "01f6cc9025f1ba8d09f6e1527bd1bc78"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "RTB House",
6
+ "description": "RTB House offers a demand-side platform (DSP) designed for real-time bidding (RTB) and advanced retargeting, leveraging deep learning algorithms to enhance ad targeting precision.",
7
+ "logo": "https://cdn.metarouter.io/rtb-house.png",
8
+ "color": "#EF4137",
9
+ "eventSource": {
10
+ "isAndroidApp": false,
11
+ "isIosApp": false,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2024-11-20T22:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nRTB House initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "425d707091f7b548bfc2d108664fecc8"
@@ -0,0 +1,65 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "PARTNER_KEY",
6
+ "exampleValue": "my-partner-key"
7
+ },
8
+ {
9
+ "name": "TAGGING_HASH",
10
+ "exampleValue": "my-tagging-hash"
11
+ }
12
+ ],
13
+ "default": {
14
+ "filters": [
15
+ {
16
+ "byEventNames": {
17
+ "action": "allow",
18
+ "events": [
19
+ ""
20
+ ]
21
+ }
22
+ }
23
+ ]
24
+ },
25
+ "eventSpecific": {
26
+ "order-completed": {
27
+ "enrichments": [
28
+ {
29
+ "outputKey": "pkey",
30
+ "staticString": "$$PARTNER_KEY$$"
31
+ }
32
+ ],
33
+ "mappings": [
34
+ {
35
+ "inputKey": "anonymousId",
36
+ "outputKey": "aid"
37
+ },
38
+ {
39
+ "inputKey": "input",
40
+ "outputKey": "time",
41
+ "transforms": [
42
+ {
43
+ "expression": {
44
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(input.timestamp or input.originalTimestamp or input.sentAt, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))",
45
+ "lang": "lua"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "inputKey": "input",
52
+ "outputKey": "tag",
53
+ "transforms": [
54
+ {
55
+ "expression": {
56
+ "body": "local value = SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end));\nlocal products = MAP(input.properties.products, function (p) return p.product_id or p.sku end );\nreturn JOIN({\n 'pr_$$TAGGING_HASH$$',\n 'conversion_order_purchase',\n value,\n input.properties.order_id,\n JOIN(products, \",\")\n}, '_')",
57
+ "lang": "lua"
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
package/README.md CHANGED
@@ -11,6 +11,7 @@ previously.
11
11
  - Convert (BETA)
12
12
  - Moloco (BETA)
13
13
  - Innervate
14
+ - RTB House (BETA)
14
15
  - Snapchat - CAPI
15
16
  - Zeotap (BETA)
16
17
 
@@ -103,6 +104,7 @@ previously.
103
104
  | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
104
105
  | Moloco (BETA) | 2024-11 | Version: 0.1.0 Beta Version |
105
106
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
107
+ | RTB House (BETA) | 2024-11 | Version: 0.1.0 Beta Version RTB House initial release |
106
108
  | Snapchat - CAPI | 2024-11 | Version: 1.3.0 Added the `_scid` cookie value as `user_data.sc_cookie1` |
107
109
  | Zeotap (BETA) | 2024-11 | Version: 0.4.0 Added new mapping for `context_country` |
108
110
  | ActionIQ | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
package/index.js CHANGED
@@ -375,6 +375,12 @@ exports.roomvo = {
375
375
  metadata: require('./.dist/roomvo/metadata.json')
376
376
  }
377
377
 
378
+ exports['rtb-house'] = {
379
+ endpointSchema: require('./.dist/rtb-house/connection.json'),
380
+ playbook: require('./.dist/rtb-house/playbook.json'),
381
+ metadata: require('./.dist/rtb-house/metadata.json')
382
+ }
383
+
378
384
  exports['salesforce-cdp'] = {
379
385
  endpointSchema: require('./.dist/salesforce-cdp/connection.json'),
380
386
  playbook: require('./.dist/salesforce-cdp/playbook.json'),
@@ -768,6 +774,11 @@ exports.etags = {
768
774
  playbook: require('./.dist/roomvo/playbook.etag.json'),
769
775
  kit: require('./.dist/roomvo/kit.etag.json')
770
776
  },
777
+ 'rtb-house': {
778
+ endpointSchema: require('./.dist/rtb-house/connection.etag.json'),
779
+ playbook: require('./.dist/rtb-house/playbook.etag.json'),
780
+ kit: require('./.dist/rtb-house/kit.etag.json')
781
+ },
771
782
  'salesforce-cdp': {
772
783
  endpointSchema: require('./.dist/salesforce-cdp/connection.etag.json'),
773
784
  playbook: require('./.dist/salesforce-cdp/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.111",
3
+ "version": "1.0.112",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {