Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

sizeMapping and DFP

Open SallyMennen opened this issue 9 years ago • 1 comments

I've setup Prebid with sizeMapping as per the example on the website. However, non-Prebid DFP line items (like AdX) are ignoring minWidth (so I see 320x50 on desktop and 728x90 on mobile). Is this the expected behaviour? If so do I have to use googletag.sizeMapping() too in order to keep DFP in check?

var adUnits = [{code: 'banner-h1', sizes: [728, 90], sizeMapping: [ { minWidth : 800, sizes : [[728,90]] }, { minWidth : 550, sizes : [[468,60]] }, { minWidth : 0, sizes : [320,50] } ], bids: [...]},

SallyMennen avatar Feb 09 '17 01:02 SallyMennen

@SallyMennen That's correct, you need to use the google.sizeMapping() feature as well if you want them to honor the sizes.

mkendall07 avatar Feb 09 '17 19:02 mkendall07