-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DFP Creative Size Issue #234
Comments
No way to do this w GPT without shimming |
@ehoch sounds like you have 2 problems here:
For 2, it's possible to get the prebid winning creative's size through Prebid.js (or can be added) @mkendall07 For 1, that's going to be trickier. But sounds like that's not your primary concern. Is that true? |
Correct. However, with respect to 1, I'm honestly not sure how Google DFP will be calculating ActiveView viewability if it has the wrong creative size. You are correct that 2 is definitely my bigger concern. Right now I think my plan this week is to split up my Prebid line items into different creative sizes and target them by the hb_size key value unless someone has a better idea. |
With Prebid 0.7.0 there is a |
@protonate I just ended up splitting my line items that target hb_size to get around this. |
Sounds good, closing. |
I currently set up the DFP line items the way Prebid.js recommends, with 1x1 and overridden sizes.
However, I noticed an issue. It looks like the size that DFP thinks is winning doesn't correspond with the size of the ad that actually won. While I get this doesn't impact the way Prebid.js renders, it has DFP incorrectly reporting the size. For example:
I have a flexible in-content unit that can serve a 300x250 or 728x90, depending on which pays more. It's declared as
Let's say a Prebid 728x90 line item won. DFP might think it was a 300x250 that won. I get that the creative is just calling pbjs.renderAd, which makes it render okay, but DFP is reporting it as a 300x250.
The issue with this is I use DFP's slotRenderEnded event and use the size of the creative in the event to control a few things such as the rendering of my "report ad" buttons and Waypoints for sticky ads.
Any ideas on how to tell DFP the correct size of the unit that won? For my purposes, I can definitely hack something to handle Prebid line items specifically, but I'd rather see if there's a way to correctly tell DFP that a 728x90 won, if this is a thing we can do.
The text was updated successfully, but these errors were encountered: