Skip to content

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MishelleBit committed Sep 25, 2024
1 parent 2eeab0e commit b9647f0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions adapters/flipp/flipp.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var (
adTypes = []int64{4309, 641}
dtxTypes = []int64{5061}
flippExtParams openrtb_ext.ImpExtFlipp
key string
customDataKey string
)

type adapter struct {
Expand Down Expand Up @@ -245,14 +245,13 @@ func buildBid(decision *InlineModel, impId string, flippExtParams openrtb_ext.Im
customDataInterface := decision.Contents[0].Data.CustomData
customDataMap := customDataInterface.(map[string]interface{})

bid.H = defaultStandardHeight
customDataKey = "standardHeight"
if flippExtParams.Options.StartCompact {
bid.H = defaultCompactHeight
key = "compactHeight"
} else {
bid.H = defaultStandardHeight
key = "standardHeight"
customDataKey = "compactHeight"
}
if value, exists := customDataMap[key]; exists {
if value, exists := customDataMap[customDataKey]; exists {
if floatVal, ok := value.(float64); ok {
bid.H = int64(floatVal)
}
Expand Down

0 comments on commit b9647f0

Please sign in to comment.