-
Notifications
You must be signed in to change notification settings - Fork 3
/
prebid_td_interest.plantuml
56 lines (48 loc) · 1.48 KB
/
prebid_td_interest.plantuml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@startuml prebid_td_interest
title Prebid: interest bid selection and final decision
participant User
participant "pub.com" as Pub
participant "prebid.js" as Pbjs
participant Fledge as TD
participant "prebid_ig.js" as PbIgjs
participant "prebid_ig_[SSP_module].js" as PbIgSspjs
participant "buyer_bidding_logic.js" as BuyerBLjs
activate Pub
Pub -> Pbjs: 1. begin final ad selection
activate Pbjs
Pbjs -> Pbjs: 2. select contextual winner
Pbjs -> Pbjs: 3. construct uber-metadata object
activate TD
Pbjs -> TD: 4: navigator.runAdAuction
activate BuyerBLjs
TD -> BuyerBLjs: 5. call generateBid for each IG
TD <- BuyerBLjs: 6. DSP bid
deactivate BuyerBLjs
activate PbIgjs
TD -> PbIgjs: 7. call scoreBid for each bid
activate PbIgSspjs
PbIgjs -> PbIgSspjs: 8. bid + contextual data
PbIgSspjs <- PbIgSspjs: 9. validate + score bid
PbIgjs <- PbIgSspjs: 10. bid score
deactivate PbIgSspjs
PbIgjs -> PbIgjs: 11. choose highest standardized score
PbIgjs -> PbIgjs: 12. compare IG ad to contextual ad
PbIgjs -> TD: 13. return highest score (or 0)
deactivate PbIgjs
TD -> TD: 14. choose highest score
TD -> Pbjs: 15. token/false
alt IG bid winner
TD -> Pbjs: 16.1 opaque object
deactivate TD
Pbjs -> Pbjs: 16.2. record IG win
Pbjs -> Pbjs: 16.3. render IG ad
else contextual ad winner
TD -> Pbjs: 17.1 false
deactivate TD
Pbjs -> Pbjs: 17.2. render contextual ad
Pbjs -> Pbjs: 13.3. record contextual win
Pub <- Pbjs: 18. ad rendered
deactivate Pbjs
User <- Pub
deactivate Pub
@enduml