From 34bf30a59053c74ddb7de6c0984de697af5fefb3 Mon Sep 17 00:00:00 2001 From: Nuthan Reddy <50863120+nuthanreddyox@users.noreply.github.com> Date: Mon, 16 Mar 2020 23:35:38 +0530 Subject: [PATCH] Added BidTimeout Added BidTimeout + BugFix --- modules/openxAnalyticsAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openxAnalyticsAdapter.js b/modules/openxAnalyticsAdapter.js index d5aaf579988..fd682dd794b 100644 --- a/modules/openxAnalyticsAdapter.js +++ b/modules/openxAnalyticsAdapter.js @@ -192,7 +192,7 @@ function filterBidsByAdUnit(bids) { function isValidEvent(eventType, adUnitCode) { if (checkAdUnitConfig()) { - let validationEvents = [bidAdjustmentConst, bidResponseConst, bidWonConst]; + let validationEvents = [bidAdjustmentConst, bidResponseConst, bidWonConst, bidTimeoutConst]; if ( !includes(initOptions.adUnits, adUnitCode) && includes(validationEvents, eventType) @@ -373,7 +373,7 @@ function apiCall(url, MAX_RETRIES, payload) { if (payload.publisherAccountId) { xhr.setRequestHeader('PublisherAccountId', payload.publisherAccountId); } - if (payload.publisherAccountId) { + if (payload.auctionId) { xhr.setRequestHeader('AuctionId', payload.auctionId); } xhr.setRequestHeader('Source-Url', payload.sourceUrl);