-
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
sizeConfig and multiformat #3894
Comments
@jsnellbaker , I have tested and confirmed the issue. |
Am ok with this feature @jsnellbaker . Thanks for expanding the requirements to make the feature work for multi-size.
I don't think we can change the behavior of the labels without becoming quite confusing. A label check failing means the adunit/bid is rejected. Do you have cycles to update the prebid.org docs? http://prebid.org/dev-docs/publisher-api-reference.html#setConfig-Configure-Responsive-Ads |
Thanks for the feedback @bretg |
Type of issue
Bug or Feature Request
Description
note - made some updates based on further review and testing out potential fixes
The sizeConfig logic is currently configured to allow bids of either a
video
or anative
mediaType effectively a free-pass through its checks/filters. This makes sense to a degree, as these bid types don't generally rely on size dimensions being a key part the delivery decision and rendering process.However, this logic has allowed certain issues to be possible that should be addressed in some manner. When a multi-format bid (eg banner + native) goes through the sizeConfig, the following could/does occur:
banner
were completely filtered out per the sizeConfig, thebanner
is still passed along as a valid mediaType in the bidRequest object while thesizes
field is empty.Per the current docs on the sizeConfig, it's not exactly clear what is meant to happen when using multi-format type bids. Neither is it clear that sizeConfig exempts
video
ornative
type requests. So this behavior is in a bit of a gray area since it falls between both sets of logic.Proposed Fixes
Fix should adhere to the following points...
In the case of a multi-format bid that includes
banner
:banner
part of the request only (ie the native part would still go through)I believe the latter option would lead to cleaner logic and avoid more edge scenarios; such as when different labels are set to different bids under the same bidder within the same adUnit.
In the case of a multi-format bid that doesn't include
banner
:In the case of single format bids:
video
ornative
, then the sizeConfig/label logic could be skipped as its done today; we should update the prebid.org docs to clarify this point better.Sample configs
Note - it was intended the
home
label wasn't defined in the sizeConfig. This came from a test where it was meant to show thelabelAll
logic working only when both labels were in use.The text was updated successfully, but these errors were encountered: