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

Pubmatic destroys bid sizes #3111

Closed
ReinoutStevens opened this issue Sep 20, 2018 · 2 comments
Closed

Pubmatic destroys bid sizes #3111

ReinoutStevens opened this issue Sep 20, 2018 · 2 comments
Labels

Comments

@ReinoutStevens
Copy link
Contributor

Type of issue

Bug

Description

Since Prebid 1.18 Pubmatic supports multi-size adslots ( #2887 ). When passing an adslot without '@widthxheight' the sizes of the mediatypes.banner.sizes is used. Pubmatic bid adapter destructively modifies this array, messing up other adapters (in our case ixBidAdapter).

The offending line is L266

When you pass @widthxheight in adslot sizes is removed on L120, which may also be an issue of the object is shared across different adapters.

Also note that the first size is ignored for some reason due to the splice call. This is probably due to the first size already being taken on L122.

Steps to reproduce

Have a pubmatic bid without the size defined in the adslot name.

Test page

http://jsfiddle.net/2qwfp0zh/

Expected results

Index bidAdapter should not complain

Actual results

Index bidAdapter is a sad panda because the sizes are messed up

@pm-harshad-mane
Copy link
Contributor

Hello @ReinoutStevens ,

Thank you for informing.
We (PubMatic) are looking into it.

@jsnellbaker
Copy link
Collaborator

This particular issue has been fixed at the adapter level; I will open a new issue for a fix at the core level to avoid this issue happening again accidentally with other adatpers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants