prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.28k stars 2.05k forks source link

Many different sizes #12245

Open NathanDigiteka opened 5 days ago

NathanDigiteka commented 5 days ago

Type of issue

question

Description

Hello everyone,

I have several questions, I implement a video player and I use Prebid. I'd like to be able to send 2 different sizes for my ad requests, is that possible? What does this entail? From the documentation, I can see that this isn't possible. Why can't we send 2 different sizes? Why do we only need one?

And why, if the size doesn't have the right format, do you delete the entire playerSize element from the array and not just keep the first element (the first size)?

In the code where the log : logError('Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request.');

delete validatedAdUnit.mediaTypes.video.playerSize;

Thank you

dgirardi commented 5 days ago

I'd like to be able to send 2 different sizes for my ad requests, is that possible?

You can use twin ad units (repeat the same ad unit definition for each size).

Why can't we send 2 different sizes?

Prebid video mirrors the ORTB protocol (used by a good number of exchanges), where only one size can be provided.

And why [...] not just keep the first element (the first size)

I like this suggestion.