Skip to content

Commit

Permalink
Add data field for custom renderers (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-maxime-liege authored Sep 5, 2023
1 parent 94dc670 commit c35c4a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions exchange/exchangetest/request-ext-prebid-filtering.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
"renderers": [
{
"name": "test-name",
"version": "test-version"
"version": "test-version",
"data" : {
"complex": "data"
}
}
]
}
Expand Down Expand Up @@ -121,7 +124,10 @@
"renderers": [
{
"name": "test-name",
"version": "test-version"
"version": "test-version",
"data": {
"complex": "data"
}
}
]
}
Expand Down
1 change: 1 addition & 0 deletions openrtb_ext/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type ExtBidPrebidMeta struct {
PrimaryCategoryID string `json:"primaryCatId,omitempty"`
RendererName string `json:"rendererName,omitempty"`
RendererVersion string `json:"rendererVersion,omitempty"`
RendererData json.RawMessage `json:"rendererData,omitempty"`
SecondaryCategoryIDs []string `json:"secondaryCatIds,omitempty"`
}

Expand Down
5 changes: 3 additions & 2 deletions openrtb_ext/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ type ExtRequestSdk struct {
}

type ExtRequestSdkRenderer struct {
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Data json.RawMessage `json:"data,omitempty"`
}

type ExtMultiBid struct {
Expand Down

0 comments on commit c35c4a9

Please sign in to comment.