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

Rubicon adapter should pass imp[].ext.tid #4153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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 @@ -86,6 +87,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 @@ -275,6 +277,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 @@ -110,7 +110,8 @@
"siteId": "113932",
"zoneId": "535510"
},
"gpid": "gpid"
"gpid": "gpid",
"tid": "tid"
}
}
]
Expand Down Expand Up @@ -239,7 +240,8 @@
},
"zone_id": 535510
},
"gpid": "gpid"
"gpid": "gpid",
"tid": "tid"
}
}
]
Expand Down
Loading