Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

getAdserverTargeting() does returns empty targeting for adUnit slots

Open Saigredan opened this issue 8 years ago • 10 comments

Type of issue

Bug

Description

Since 1.15.0 getAdserverTargeting() or related methods are not returning targeting for adUnit slots

Steps to reproduce

Anywhere after auctionEnd event fire getAdserverTargeting() method.

Expected results

Targeting for specified adUnit slots

Actual results

Empty Taregeting for adUnit slots

Platform details

Prebid 1.15.0

Other information

This change from latest release is probably the source of issue: https://github.com/prebid/Prebid.js/commit/c82572e0d2c9d4530c67fa9e0a8c9490c07c3e1e

Saigredan avatar Jun 22 '18 06:06 Saigredan

Anyone else encounters same problem?

Saigredan avatar Jun 22 '18 11:06 Saigredan

@Saigredan just on a matter of interest - where do you use getAdserverTargeting() method call?

YOzaz avatar Jun 22 '18 12:06 YOzaz

@YOzaz We're using it for some internal communication methods. Usually after auction is finished.

Saigredan avatar Jun 22 '18 12:06 Saigredan

@Saigredan the reason behind is here: https://github.com/prebid/Prebid.js/issues/2676 and here: https://github.com/prebid/Prebid.js/issues/2685. I'm not 100% sure how this fix "fixes" auction concurrency problem, but @jaiminpanchal27 may have more comments on it?

YOzaz avatar Jun 22 '18 12:06 YOzaz

@YOzaz well, after rollbacking https://github.com/prebid/Prebid.js/commit/c82572e0d2c9d4530c67fa9e0a8c9490c07c3e1e commit, all started to work just fine (except thing we noted in other Issue https://github.com/prebid/Prebid.js/issues/2752)

I will take a look at issues you attached

Saigredan avatar Jun 22 '18 12:06 Saigredan

@Saigredan this commit / bugfix solved concurrent auctions issue, when multiple requests for bids were done at the same time - which is actual in our case e.g., as we're lazy-loading ads.

YOzaz avatar Jun 22 '18 12:06 YOzaz

@YOzaz I see. I will take a deeper look

Saigredan avatar Jun 22 '18 12:06 Saigredan

@YOzaz @Saigredan I added c82572e commit, because getAdserverTargeting() was including all bids received to get targeting.

What it should be doing is select bid from bid pool, and apply following filters

  • should be unused bid
  • should not be expired

jaiminpanchal27 avatar Jun 22 '18 14:06 jaiminpanchal27

@saigredan can we close this?

harpere avatar Jun 22 '18 20:06 harpere

@harpere yes, please :)

Saigredan avatar Jun 22 '18 20:06 Saigredan