Closed sparklette closed 7 years ago
The adserverTargeting property of the pbjs.bidderSettings is likely overriding your custom granularity settings (see red text in the docs here). As it is using bidResponse.pbHg, it's returning unrounded bids, which won't match your 5c ad server lines - meaning 4/5ths of bids could be lost.
I recommend removing the entire "standard" section of your pbjs.bidderSettings, as it's not required and is covered by the Prebid defaults and your custom granularity.
Thank you for that! It's great that you were able to spot the problem right away. I will implement the change.
Type of issue
I would appreciate if someone here can catch what I'm doing wrong with my prebid code.
I am new to header bidding, and recently implemented prebid.js on my site. It worked correctly the first two days, except that there were mobile ad sizes showing on desktop and desktop ad sizes on mobile. So what I did on the third day was to make the ad units responsive, but I must have done something wrong because right after implementing the codes for responsiveness, my filled impressions with each of the bidding partners dropped sharply, from about 10% fill rate to 1% after.
Description
There are 3 bidding partners for now. Here are my 2 ad units and their responsive sizes I want to show.
Header unit:
Sidebar unit:
I use window.innerWidth to detect the window's content area, and make bid requests for the correct ad sizes accordingly. For example, the header unit only requests bids for 728x90 and 970x250 on desktop, and 320x50, 320x100 and 300x250 on mobile. The sidebar unit only requests bids on desktop, and not make any bid request at all on mobile.
The DFP ad tags also have sizeMapping so that the correct ad unit sizes are rendered.
Changes I made that may have caused filled impressions to fall
Here's the complete code that I have on my pages. I am using Prebid.js v0.24.1. Can anyone let me know if there's anything wrong with it?