From ce4a3c4af5b56ed46c8f21f486897b9eb8772064 Mon Sep 17 00:00:00 2001 From: Matt Lane Date: Tue, 18 Jul 2017 16:54:35 -0700 Subject: [PATCH] Set outstream mediaType based on renderer in response --- modules/appnexusAstBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/appnexusAstBidAdapter.js b/modules/appnexusAstBidAdapter.js index e8441d9a003..0cb372bcc55 100644 --- a/modules/appnexusAstBidAdapter.js +++ b/modules/appnexusAstBidAdapter.js @@ -197,7 +197,7 @@ function AppnexusAstAdapter() { const bid = createBid(status, tag); if (type === 'native') bid.mediaType = 'native'; if (type === 'video') bid.mediaType = 'video'; - if (type === 'video-outstream') bid.mediaType = 'video-outstream'; + if (ad && ad.renderer_url) bid.mediaType = 'video-outstream'; if (bid.adId in bidRequests) { const placement = bidRequests[bid.adId].placementCode;