Basic Prebid.js Example using Neuwo Rtd Provider

Looks like you"re not following the testing environment setup, try accessing http://localhost:9999/integrationExamples/gpt/neuwoRtdProvider_example.html after running commands in the prebid.js source folder that includes libraries/modules/neuwoRtdProvider.js // 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

Neuwo Rtd Provider Configuration

Add token and url to use for Neuwo extension configuration

IAB Content Taxonomy Options

Cache Options

OpenRTB 2.5 Category Fields

URL Cleaning Options

IAB Taxonomy Filtering Options

When enabled, uses these hardcoded filters:
• ContentTier1: top 1 (≥10% relevance)
• ContentTier2: top 2 (≥10% relevance)
• ContentTier3: top 3 (≥15% relevance)
• AudienceTier3: top 3 (≥20% relevance)
• AudienceTier4: top 5 (≥20% relevance)
• AudienceTier5: top 7 (≥30% relevance)

Ad Examples

Div-1

Ad spot div-1: This content will be replaced by prebid.js and/or related components once you click "Update" and there are no errors.

Div-2

Ad spot div-2: This content will be replaced by prebid.js and/or related components once you click "Update" and there are no errors.

Neuwo Data in Bid Request

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

Neuwo Site Content Data

No data yet. Click "Update" to fetch data.

Neuwo User Data

No data yet. Click "Update" to fetch data.

Neuwo OpenRTB 2.5 Category Fields (IAB Content Taxonomy 1.0) Data

No data yet. Click "Update" to fetch data (requires enableOrtb25Fields and /v1/iab endpoint).

Accessing Neuwo Data in JavaScript

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.