Ensure transaction ID is always unique#3190
Ensure transaction ID is always unique#3190snapwich merged 5 commits intoprebid:masterfrom naegelin:patch-1
Conversation
Transaction ID implicitly suggests that this is a unique identifier per transaction. However in the case of a refresh / re-use of an ad unit the transaction ID remains the same causing undesirable bidding with certain SSPs.
|
linter is failing using the standard github inline editor. Leaving this as is for the time being . |
|
@naegelin The Prebid.js project uses the |
|
The tests for transaction id validation are now failing (obviously). I'm leaving this as is for discussion first @mkendall07 @jsnellbaker as a decision needs to be made regarding what the intended behavior should actually be here. |
|
I'm not sure on what the business logic of In #2706 I specifically tried to copy the existing business logic of having a persistent |
|
ah interesting, thanks Rich. @jaiminpanchal27 do you have any idea on this? |
|
The definition of transactionID is in http://prebid.org/dev-docs/bidder-adaptor.html#bidrequest-parameters: So if transactionId is not currently changing on a refresh, I agree with @naegelin that this is a bug. |
|
So the only other concern I could possibly think of with this pull-request was if an implementor wanted to generate their own transactionIds and pass them through then this would overwrite their ids. Is that something that people do? @bretg I know we generated our own transactionIds as part of hpv2, but I can't remember if that was just a temporary fix because #2706 hadn't happened yet. If it's no big deal then this LGTM. (other than the tests which need to be updated as well). |
|
I think we found that transaction ID wasn't being added because we weren't using pbjs.addAdUnit. Our code checks: So yes - I think #2706 should have resolved that issue. So I think we're good here. Except that the unit tests are failing. |
|
@naegelin |
|
Thanks for updating guys - was on vacation and just saw this :) |
* Ensure transaction ID is always unique Transaction ID implicitly suggests that this is a unique identifier per transaction. However in the case of a refresh / re-use of an ad unit the transaction ID remains the same causing undesirable bidding with certain SSPs.
Type of change
Description of change
Transaction ID implicitly suggests that this is a unique identifier per transaction. However in the case of a refresh / re-use of an adunit the transaction ID remains the same causing undesirable bidding with certain SSPs.