Skip to content

Commit

Permalink
OFF-657 remove ip as a bidder request parameter (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-kanjee authored Aug 23, 2023
1 parent e0999b8 commit 48710ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions adapters/flipp/flipp.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ func (a *adapter) processImp(request *openrtb2.BidRequest, imp openrtb2.Imp) (*a
}

var userIP string
if flippExtParams.IP != "" {
userIP = flippExtParams.IP
} else if request.Device != nil && request.Device.IP != "" {
if request.Device != nil && request.Device.IP != "" {
userIP = request.Device.IP
} else {
return nil, fmt.Errorf("no IP set in flipp bidder params or request device")
Expand Down
3 changes: 1 addition & 2 deletions adapters/flipp/flipptest/exemplary/simple-banner-native.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"creativeType": "NativeX",
"siteId": 1243066,
"zoneIds": [285431],
"ip": "123.123.123.124",
"options": {
"startCompact": true,
"contentCode": "publisher-test-2"
Expand All @@ -46,7 +45,7 @@
"expectedRequest": {
"uri": "http://example.com/pserver",
"body": {
"ip":"123.123.123.124",
"ip":"123.123.123.123",
"keywords":[
""
],
Expand Down
1 change: 0 additions & 1 deletion openrtb_ext/imp_flipp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ type ImpExtFlipp struct {
SiteID int64 `json:"siteId"`
ZoneIds []int64 `json:"zoneIds,omitempty"`
UserKey string `json:"userKey,omitempty"`
IP string `json:"ip,omitempty"`
Options ImpExtFlippOptions `json:"options,omitempty"`
}

Expand Down

0 comments on commit 48710ca

Please sign in to comment.