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

[Telaria] getBidderRequest can not find corresponding bid due to mismatching bidder code #3398

Closed
ReinoutStevens opened this issue Dec 19, 2018 · 8 comments
Labels

Comments

@ReinoutStevens
Copy link
Contributor

Type of issue

The telaria adapter returns bids with bidder code "TremorVideo".
This results in utils/getBidderRequest not being able to match the bidder id "TremorVideo" to any bids, as the bid either has the code "telaria", "tremor" or "tremorvideo".

So even when using the alias "tremorvideo" it won't ever match "TremorVideo".

Description

The reply we get the following bid response from Telaria:

{"cur":"USD","id":"a1e734226d2d48a08ddc120a8895f097","seatbid":[{"seat":"TremorVideo","bid":[{"adomain":[],"price":0.0,"id":"a1e734226d2d48a08ddc120a8895f097","adm":"vast stuff","impid":"1"}]}]}

Looking at the telariaBidAdapter:

else if (bidResult.seatbid && bidResult.seatbid.length > 0) {
      bidResult.seatbid[0].bid.forEach(tag => {
        bids.push(createBid(STATUS.GOOD, bidderRequest, tag, width, height, bidResult.seatbid[0].seat));
      });

So, the bidResult.seatbid[0].seat is taken out of the reply, and used as the bidder code.

The prebid method auction.addBidResponse(adUnitCode, bid) calls getBidRequests, which tries to match "telaria" (or "tremor" or "tremorvideo" if you use one of the aliases) to "TremorVideo", which does't work.

Test page

https://jsfiddle.net/yeqjf7r4/
Test page uses our own build of prebid as the Telaria adapter has other issues in the latest version of prebid. The underlying issue still remains.

Platform details

prebid 1.31.0
Telaria bid adapter is broken on more recent builds

@ReinoutStevens ReinoutStevens changed the title [Telaria] getBidderRequest has incorrect bidder code [Telaria] getBidderRequest can not find corresponding bid due to mismatching bidder code Dec 19, 2018
@ReinoutStevens
Copy link
Contributor Author

@telariaEng tagging you as this is probably relevant

@telariaEng
Copy link
Contributor

telariaEng commented Dec 19, 2018

@ReinoutStevens thanks for tagging. I do have an open PR and I don't mind adding 'TremorVideo' to the alias list. But I think the proper fix would be to check the bidder code against the aliases while ignoring the case.
EDIT: I'm just going to to lower case the response code. That should fix it.

@ReinoutStevens
Copy link
Contributor Author

Thanks for the quick response 👍

@stale
Copy link

stale bot commented Jan 2, 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 2, 2019
@mkendall07
Copy link
Member

has this been resolved? @telariaEng

@stale stale bot removed the stale label Jan 4, 2019
@ReinoutStevens
Copy link
Contributor Author

Obviously I dont work at Telaria, but this is how I see the current state:

Telaria has 2 aliases, tremor and tremorvideo. The adapter used to set TremorVideo as bidder on a bid. In their PR ( #3377 ) they modified the behavior and do a to lowercase, so now tremorvideo should be set. This means we can use tremorvideo as bidder code, and it should work.

However, this does not fix the underlying issue: I would expect when I request a bid using 'telaria' that the biddercode set by the adapter would be 'telaria', and not tremor or tremorvideo. This could be due to a misunderstanding of the aliases on Telaria's part (or on my part, and this behavior is fine). In case this behavior is fine then prebid should look at aliases as well in the getBidRequests() function.

@ReinoutStevens
Copy link
Contributor Author

ReinoutStevens commented Jan 10, 2019

I am unsure whether I need to open a new issue or hijack this one:
With prebid 1.37.0 I can request a bid with bidder code telaria, which does not throw any errors. The hb_bidder that is sent to dfp remains is set to tremorvideo, which causes problems with our dfp setup (as we expect telaria ). Obviously we can change our dfp setup and request tremorvideo ads, but the underlying issue remains that the adapter does not respect the initial bidder code.
If desired I can open a new issue for this

@stale
Copy link

stale bot commented Jan 25, 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 25, 2019
@stale stale bot closed this as completed Feb 1, 2019
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