From a1a5482ed70826910d8f782f1fe6fee01b655377 Mon Sep 17 00:00:00 2001 From: grzgm <125459798+grzgm@users.noreply.github.com> Date: Wed, 17 Dec 2025 12:45:40 +0100 Subject: [PATCH 01/24] feat: add live display and access examples of Neuwo API data to example page --- .../gpt/neuwoRtdProvider_example.html | 75 ++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/integrationExamples/gpt/neuwoRtdProvider_example.html b/integrationExamples/gpt/neuwoRtdProvider_example.html index 3d6fef98995..02fb0715884 100644 --- a/integrationExamples/gpt/neuwoRtdProvider_example.html +++ b/integrationExamples/gpt/neuwoRtdProvider_example.html @@ -286,14 +286,85 @@
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 +
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.+
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.
For more information about accessing data retrieved from Neuwo API, see modules/neuwoRtdProvider.md.