Skip to content
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

Teads: Adapter doesn't respect media types - sizes don't work #3373

Closed
muuki88 opened this issue Dec 13, 2018 · 6 comments
Closed

Teads: Adapter doesn't respect media types - sizes don't work #3373

muuki88 opened this issue Dec 13, 2018 · 6 comments

Comments

@muuki88
Copy link
Collaborator

muuki88 commented Dec 13, 2018

Type of issue

bug

Description

The Teads Adapter, still uses the deprecated bid.sizes property and doesn't differentiate between banner and video media types.

This

cc: @valsouche

Steps to reproduce

Use a video only ad unit. See #3222

Expected results

Teads should use the mediaTypes sizes for video and/or banner instead of the deprecated sizes property.

Platform details

  • prebid version 1.35.0

Other information

@muuki88
Copy link
Collaborator Author

muuki88 commented Dec 14, 2018

This is especially weird as the bid.sizes property should include the videos sizes. At least if I read this code in der adapterManager.js correctly.

It almost looks as if the video player sizes override the banner.

The OpenX adapter handles the video playerSize explicitly.

@muuki88
Copy link
Collaborator Author

muuki88 commented Dec 14, 2018

The reasons for this behavior is buried in the getBids function, which simply used the mediaTypes.banner.sizes and discards everything that has been done before.

@valsouche
Copy link

valsouche commented Dec 17, 2018

In this pull request (#3377), @bretg says that playerSize is an optional field. But like @muuki88 said, for some reason, if from a video adunit mediatypes there is no playerSize, bid sizes equals[], even if there is a sizes property on the adUnit.

It looks like only banner sizes are copy in adUnit.sizes.

When mediaTypes.video there is only a check on playerSize (in adapterManager.js) and no on mediaTypes.video.sizes, why ? And why bid sizes property could contains only banner or [] here: https://github.com/prebid/Prebid.js/blob/master/src/adaptermanager.js#L97 ? It means bid.sizes is only available for banner.

Is it something expected ? Should we explicitly check each sizes possibility from adapter ?

Thanks in advance,
Val.

@stale
Copy link

stale bot commented Jan 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 1, 2019
@muuki88
Copy link
Collaborator Author

muuki88 commented Jan 2, 2019

Before this ticket is getting stale.

@valsouche are opening a PR to fix this?

@muuki88
Copy link
Collaborator Author

muuki88 commented Jan 16, 2019

Should be fixed in the next release.

@muuki88 muuki88 closed this as completed Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants