-
Notifications
You must be signed in to change notification settings - Fork 809
Omit empty on 'Target json.RawMessage' to avoid sending invalid json in bid request #968
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
Conversation
@@ -53,7 +53,7 @@ type rubiconImpExtRPTrack struct { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are Inventory
and Visitor
not necessary to omit if empty?
40 type rubiconParams struct {
41 AccountId int `json:"accountId"`
42 SiteId int `json:"siteId"`
43 ZoneId int `json:"zoneId"`
44 Inventory json.RawMessage `json:"inventory"`
45 Visitor json.RawMessage `json:"visitor"`
46 Video rubiconVideoParams `json:"video"`
47 }
48
adapters/rubicon/rubicon.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot a few lines. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
…in bid request (prebid#968) * Omitempty on 'Target json.RawMessage' to avoid sending invalid in bid request * Omit empty additional fields
…in bid request (prebid#968) * Omitempty on 'Target json.RawMessage' to avoid sending invalid in bid request * Omit empty additional fields
…in bid request (prebid#968) * Omitempty on 'Target json.RawMessage' to avoid sending invalid in bid request * Omit empty additional fields
If a target was not provided for the Rubicon adapter then it's value is set to an empty string which is invalid json. Resulting in an invalid request. Omitting the field if it's empty fixes this issue.
#967