// Install dependencies
npm ci
// Run a local development server
npx gulp serve --modules=rtdModule,neuwoRtdProvider,appnexusBidAdapter
// No tests
npx gulp serve-fast --modules=rtdModule,neuwoRtdProvider,appnexusBidAdapter
// Only tests
npx gulp test-only --modules=rtdModule,neuwoRtdProvider,appnexusBidAdapter --file=test/spec/modules/neuwoRtdProvider_spec.js
Add token and url to use for Neuwo extension configuration
The retrieved data from Neuwo API is injected into the bid request as OpenRTB (ORTB2)
site.content.data and
user.data. Full bid request can be inspected in Developer Tools Console under
INFO: NeuwoRTDModule injectIabCategories: post-injection bidsConfig
No data yet. Click "Update" to fetch data.
No data yet. Click "Update" to fetch data.
No data yet. Click "Update" to fetch data (requires enableOrtb25Fields and /v1/iab endpoint).
Listen to the bidRequested event to access the enriched ORTB2 data:
pbjs.onEvent("bidRequested", function(bidRequest) {
const ortb2 = bidRequest.ortb2;
const neuwoSiteData = ortb2?.site?.content?.data?.find(d => d.name === "www.neuwo.ai");
const neuwoUserData = ortb2?.user?.data?.find(d => d.name === "www.neuwo.ai");
console.log("Neuwo data:", { siteContent: neuwoSiteData, user: neuwoUserData });
});
After clicking "Update", the Neuwo data is stored in the global neuwoData variable. Open
Developer Tools Console to see the logged data.
Note: Event timing tests for multiple Prebid.js events (auctionInit, bidRequested, beforeBidderHttp, bidResponse, auctionEnd) are available in the page source code but are commented out. To enable them, uncomment the timing test section in the JavaScript code.
For more information about Neuwo RTD Module configuration and accessing data retrieved from Neuwo API, see modules/neuwoRtdProvider.md.