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

Prebid chain of events are not occurring in case of only 1x1 adunit mapped with paapi #12218

Closed
Amark19 opened this issue Sep 10, 2024 · 0 comments · Fixed by #12222
Closed
Assignees

Comments

@Amark19
Copy link

Amark19 commented Sep 10, 2024

Type of issue

Bug

Description

When only 1x1 is enabled for a certain ad unit and paapi is also enabled, a reduce operation in the getSizes function within paapi.js throws an error, which prevents Prebid to continue with auction and following events.

Steps to reproduce

  1. Map a 1x1 size to a adunit.
  2. Enable paapi under pbjs.setConfig()
  3. Refresh the page.
    3.1 Reduce method on empty array caught in line
    image
    3.2 You can see no events after auctionDebug are firing.
    image

Test page

Js fiddle Link :- https://jsfiddle.net/as4bngdq/

Expected results

  • Ideally all events should fire and auction should start.

Actual results

  • No events firing after auctionDebug .

Platform details

Prebid 9.12.0, Chrome Desktop

Other information

PR when breaking change started :- #11379

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

Successfully merging a pull request may close this issue.

2 participants