|
1 | 1 | --- |
2 | 2 | layout: page_v2 |
3 | 3 | title: Neuwo RTD Module |
4 | | -display_name: Neuwo RTD Module |
| 4 | +display_name: Neuwo RTD Module |
5 | 5 | description: Enrich bids with contextual data from the Neuwo API. |
6 | 6 | page_type: module |
7 | 7 | module_type: rtd |
8 | | -module_code : neuwoRtdProvider |
9 | | -enable_download : true |
10 | | -sidebarType : 1 |
| 8 | +module_code: neuwoRtdProvider |
| 9 | +enable_download: true |
| 10 | +sidebarType: 1 |
11 | 11 | --- |
12 | 12 |
|
13 | 13 | # Neuwo RTD Module |
@@ -71,38 +71,83 @@ ortb2: { |
71 | 71 | } |
72 | 72 | ``` |
73 | 73 |
|
74 | | -To get started, you can generate your API token at [https://neuwo.ai/generatetoken/](https://neuwo.ai/generatetoken/) or [contact us here](https://neuwo.ai/contact-us/). |
| 74 | +To get started, you can generate your API token at [https://neuwo.ai/generatetoken/](https://neuwo.ai/generatetoken/), send us an email to [neuwo-helpdesk@neuwo.ai](mailto:neuwo-helpdesk@neuwo.ai) or [contact us here](https://neuwo.ai/contact-us/). |
75 | 75 |
|
76 | 76 | ## Configuration |
77 | 77 |
|
78 | | -> **Important:** You must add the domain (origin) where Prebid.js is running to the list of allowed origins in Neuwo Edge API configuration. If you have problems, [contact us here](https://neuwo.ai/contact-us/). |
| 78 | +> **Important:** You must add the domain (origin) where Prebid.js is running to the list of allowed origins in Neuwo Edge API configuration. If you have problems, send us an email to [neuwo-helpdesk@neuwo.ai](mailto:neuwo-helpdesk@neuwo.ai) or [contact us here](https://neuwo.ai/contact-us/). |
79 | 79 |
|
80 | 80 | This module is configured as part of the `realTimeData.dataProviders` object. |
81 | 81 |
|
82 | 82 | ```javascript |
83 | 83 | pbjs.setConfig({ |
84 | | - realTimeData: { |
85 | | - dataProviders: [{ |
86 | | - name: 'NeuwoRTDModule', |
87 | | - params: { |
88 | | - neuwoApiUrl: '<Your Neuwo Edge API Endpoint URL>', |
89 | | - neuwoApiToken: '<Your Neuwo API Token>', |
90 | | - iabContentTaxonomyVersion: '3.0', |
91 | | - } |
92 | | - }] |
93 | | - } |
| 84 | + realTimeData: { |
| 85 | + auctionDelay: 500, // Value can be adjusted based on the needs |
| 86 | + dataProviders: [ |
| 87 | + { |
| 88 | + name: "NeuwoRTDModule", |
| 89 | + waitForIt: true, |
| 90 | + params: { |
| 91 | + neuwoApiUrl: "<Your Neuwo Edge API Endpoint URL>", |
| 92 | + neuwoApiToken: "<Your Neuwo API Token>", |
| 93 | + iabContentTaxonomyVersion: "3.0", |
| 94 | + }, |
| 95 | + }, |
| 96 | + ], |
| 97 | + }, |
94 | 98 | }); |
95 | 99 | ``` |
96 | 100 |
|
97 | 101 | **Parameters** |
98 | 102 |
|
99 | | -| Name | Type | Required | Default | Description | |
100 | | -| :--------------------------------- | :----- | :------- | :------ | :------------------------------------------------------------------------------------------------ | |
101 | | -| `name` | String | Yes | | The name of the module, which is `NeuwoRTDModule`. | |
102 | | -| `params` | Object | Yes | | Container for module-specific parameters. | |
103 | | -| `params.neuwoApiUrl` | String | Yes | | The endpoint URL for the Neuwo Edge API. | |
104 | | -| `params.neuwoApiToken` | String | Yes | | Your unique API token provided by Neuwo. | |
105 | | -| `params.iabContentTaxonomyVersion` | String | No | `'3.0'` | Specifies the version of the IAB Content Taxonomy to be used. Supported values: `'2.2'`, `'3.0'`. | |
| 103 | +| Name | Type | Required | Default | Description | |
| 104 | +| :---------------------------------- | :------- | :------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 105 | +| `name` | String | Yes | | The name of the module, which is `NeuwoRTDModule`. | |
| 106 | +| `params` | Object | Yes | | Container for module-specific parameters. | |
| 107 | +| `params.neuwoApiUrl` | String | Yes | | The endpoint URL for the Neuwo Edge API. | |
| 108 | +| `params.neuwoApiToken` | String | Yes | | Your unique API token provided by Neuwo. | |
| 109 | +| `params.iabContentTaxonomyVersion` | String | No | `'3.0'` | Specifies the version of the IAB Content Taxonomy to be used. Supported values: `'2.2'`, `'3.0'`. | |
| 110 | +| `params.stripAllQueryParams` | Boolean | No | `false` | If `true`, strips all query parameters from the URL before analysis. Takes precedence over other stripping options. | |
| 111 | +| `params.stripQueryParamsForDomains` | String[] | No | `[]` | List of domains for which to strip **all** query parameters. When a domain matches, all query params are removed for that domain and all its subdomains (e.g., `'example.com'` strips params for both `'example.com'` and `'sub.example.com'`). This option takes precedence over `stripQueryParams` for matching domains. | |
| 112 | +| `params.stripQueryParams` | String[] | No | `[]` | List of specific query parameter names to strip from the URL (e.g., `['utm_source', 'fbclid']`). Other parameters are preserved. Only applies when the domain does not match `stripQueryParamsForDomains`. | |
| 113 | +| `params.stripFragments` | Boolean | No | `false` | If `true`, strips URL fragments (hash, e.g., `#section`) from the URL before analysis. | |
| 114 | + |
| 115 | +### URL Cleaning Options |
| 116 | + |
| 117 | +The module provides optional URL cleaning capabilities to strip query parameters and/or fragments from the analyzed URL before sending it to the Neuwo API. This can be useful for privacy, caching, or analytics purposes. |
| 118 | + |
| 119 | +**Example with URL cleaning:** |
| 120 | + |
| 121 | +```javascript |
| 122 | +pbjs.setConfig({ |
| 123 | + realTimeData: { |
| 124 | + auctionDelay: 500, // Value can be adjusted based on the needs |
| 125 | + dataProviders: [ |
| 126 | + { |
| 127 | + name: "NeuwoRTDModule", |
| 128 | + waitForIt: true, |
| 129 | + params: { |
| 130 | + neuwoApiUrl: "<Your Neuwo Edge API Endpoint URL>", |
| 131 | + neuwoApiToken: "<Your Neuwo API Token>", |
| 132 | + iabContentTaxonomyVersion: "3.0", |
| 133 | + |
| 134 | + // Option 1: Strip all query parameters from the URL |
| 135 | + stripAllQueryParams: true, |
| 136 | + |
| 137 | + // Option 2: Strip all query parameters only for specific domains |
| 138 | + // stripQueryParamsForDomains: ['example.com', 'another-domain.com'], |
| 139 | + |
| 140 | + // Option 3: Strip specific query parameters by name |
| 141 | + // stripQueryParams: ['utm_source', 'utm_campaign', 'fbclid'], |
| 142 | + |
| 143 | + // Optional: Strip URL fragments (hash) |
| 144 | + stripFragments: true, |
| 145 | + }, |
| 146 | + }, |
| 147 | + ], |
| 148 | + }, |
| 149 | +}); |
| 150 | +``` |
106 | 151 |
|
107 | 152 | ## Installation |
108 | 153 |
|
|
0 commit comments