Skip to content

Commit

Permalink
Rubicon: Pass imp[].ext.tid (#4153)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic authored Feb 5, 2025
1 parent 50679b6 commit f1299f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type rubiconExtImpBidder struct {
Bidder openrtb_ext.ExtImpRubicon `json:"bidder"`
Gpid string `json:"gpid"`
Skadn json.RawMessage `json:"skadn,omitempty"`
Tid string `json:"tid"`
Data json.RawMessage `json:"data"`
Context rubiconContext `json:"context"`
}
Expand Down Expand Up @@ -84,6 +85,7 @@ type rubiconImpExt struct {
RP rubiconImpExtRP `json:"rp,omitempty"`
GPID string `json:"gpid,omitempty"`
Skadn json.RawMessage `json:"skadn,omitempty"`
Tid string `json:"tid,omitempty"`
}

type rubiconImpExtRP struct {
Expand Down Expand Up @@ -273,6 +275,7 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada
},
GPID: bidderExt.Gpid,
Skadn: bidderExt.Skadn,
Tid: bidderExt.Tid,
}

imp.Ext, err = json.Marshal(&impExt)
Expand Down
6 changes: 4 additions & 2 deletions adapters/rubicon/rubicontest/exemplary/flexible-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@
"siteId": "113932",
"zoneId": "535510"
},
"gpid": "gpid"
"gpid": "gpid",
"tid": "tid"
}
}
]
Expand Down Expand Up @@ -351,7 +352,8 @@
},
"zone_id": 535510
},
"gpid": "gpid"
"gpid": "gpid",
"tid": "tid"
}
}
]
Expand Down

0 comments on commit f1299f9

Please sign in to comment.