diff --git a/modules/adyoulikeBidAdapter.js b/modules/adyoulikeBidAdapter.js index 1a0074e668b..6710448f00e 100644 --- a/modules/adyoulikeBidAdapter.js +++ b/modules/adyoulikeBidAdapter.js @@ -488,6 +488,8 @@ function createBid(response, bidRequests) { // retreive video response if present const vast64 = response.Vast || getVideoAd(response); if (vast64) { + bid.width = response.Width; + bid.height = response.Height; bid.vastXml = window.atob(vast64); bid.mediaType = 'video'; } else if (request.Native) { diff --git a/test/spec/modules/adyoulikeBidAdapter_spec.js b/test/spec/modules/adyoulikeBidAdapter_spec.js index 3f9ebb3323e..3e68a10f56e 100644 --- a/test/spec/modules/adyoulikeBidAdapter_spec.js +++ b/test/spec/modules/adyoulikeBidAdapter_spec.js @@ -462,13 +462,15 @@ describe('Adyoulike Adapter', function () { 'Placement': 'placement_0', 'Vast': 'PFZBU1Q+RW1wdHkgc2FtcGxlPC92YXN0Pg==', 'Price': 0.5, - 'Height': 600, + 'Height': 300, + 'Width': 530 }]; const videoResult = [{ cpm: 0.5, creativeId: undefined, currency: 'USD', + height: 300, netRevenue: true, requestId: 'bid_id_0', ttl: 3600, @@ -476,7 +478,8 @@ describe('Adyoulike Adapter', function () { meta: { advertiserDomains: [] }, - vastXml: 'Empty sample' + vastXml: 'Empty sample', + width: 530 }]; const responseWithMultiplePlacements = [