File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/main/java/org/prebid/server/bidder/rubicon Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ public class RubiconBidder implements Bidder<BidRequest> {
154154 private static final String FPD_KEYWORDS_FIELD = "keywords" ;
155155 private static final String DFP_ADUNIT_CODE_FIELD = "dfp_ad_unit_code" ;
156156 private static final String STYPE_FIELD = "stype" ;
157+ private static final String TID_FIELD = "tid" ;
157158 private static final String PREBID_EXT = "prebid" ;
158159 private static final String PBS_LOGIN = "pbs_login" ;
159160 private static final String PBS_VERSION = "pbs_version" ;
@@ -700,6 +701,7 @@ private RubiconImpExt makeImpExt(Imp imp,
700701 .maxbids (getMaxBids (extRequest ))
701702 .gpid (getGpid (imp .getExt ()))
702703 .skadn (getSkadn (imp .getExt ()))
704+ .tid (getTid (imp .getExt ()))
703705 .prebid (rubiconImpExtPrebid )
704706 .build ();
705707 }
@@ -947,6 +949,11 @@ private ObjectNode getSkadn(ObjectNode impExt) {
947949 return skadnNode != null && skadnNode .isObject () ? (ObjectNode ) skadnNode : null ;
948950 }
949951
952+ private String getTid (ObjectNode impExt ) {
953+ final JsonNode tidNode = impExt .get (TID_FIELD );
954+ return tidNode != null && tidNode .isTextual () ? tidNode .asText () : null ;
955+ }
956+
950957 private String getAdSlot (Imp imp ) {
951958 final ObjectNode dataNode = toObjectNode (imp .getExt ().get (FPD_DATA_FIELD ));
952959
Original file line number Diff line number Diff line change @@ -20,5 +20,7 @@ public class RubiconImpExt {
2020
2121 ObjectNode skadn ;
2222
23+ String tid ;
24+
2325 RubiconImpExtPrebid prebid ;
2426}
You can’t perform that action at this time.
0 commit comments