diff --git a/integrationExamples/gpt/haloRtdProvider_example.html b/integrationExamples/gpt/haloRtdProvider_example.html index 7f9a34e55ee..14debbd2698 100644 --- a/integrationExamples/gpt/haloRtdProvider_example.html +++ b/integrationExamples/gpt/haloRtdProvider_example.html @@ -40,27 +40,6 @@ googletag.pubads().disableInitialLoad(); }); - var appnexusSegmentHandler = function(bid, segments) { - if (!bid.params) { - bid.params = {}; - } - if (!bid.params.user) { - bid.params.user = {}; - } - - if (!Array.isArray(bid.params.user.segments)) { - bid.params.user.segments = []; - } - - var appnexusSegments = []; - for (var i = 0; i < segments.length; i++) { - var segment = segments[i]; - let appnexusSegment = {'id': segment.id, 'value': segment.value}; - appnexusSegments.push(appnexusSegment); - } - bid.params.user.segments = bid.params.user.segments.concat(appnexusSegments); - }; - pbjs.que.push(function() { pbjs.setConfig({ debug: true, @@ -71,9 +50,6 @@ name: "halo", waitForIt: true, params: { - mapSegments: { - appnexus: appnexusSegmentHandler // pass true to use the builtin handler. here, we will demo overriding the handler with a function - }, segmentCache: false, requestParams: { publisherId: 0 @@ -89,7 +65,7 @@ }); function sendAdserverRequest() { - document.getElementById('audigent_segments').innerHTML = JSON.stringify(adUnits[0].bids[0].params.user.segments); + document.getElementById('audigent_segments').innerHTML = window.localStorage.getItem('auHaloRtd'); document.getElementById('halo_id').innerHTML = testHaloId; if (pbjs.adserverRequestSent) return; @@ -130,7 +106,7 @@
-