Skip to content

Commit

Permalink
feat: change makeRequest code
Browse files Browse the repository at this point in the history
  • Loading branch information
tradplus committed Jan 9, 2025
1 parent cc91ac7 commit ef25797
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 2 deletions.
2 changes: 0 additions & 2 deletions adapters/tradplus/tradplus.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa
return nil, []error{err}
}

request.Imp[0].Ext = nil

url, err := a.buildEndpointURL(tradplusExt)
if err != nil {
return nil, []error{err}
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/exemplary/no-bid.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"h": 50
}
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"h": 50
}
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": "us-"
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/exemplary/simple-native.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"native": {
"request": "{\"ver\":\"1.2\",\"context\":1,\"plcmttype\":4,\"plcmtcnt\":1,\"assets\":[{\"id\":2,\"required\":1,\"title\":{\"len\":90}},{\"id\":6,\"required\":1,\"img\":{\"type\":3,\"wmin\":128,\"hmin\":128,\"mimes\":[\"image/jpg\",\"image/jpeg\",\"image/png\"]}},{\"id\":7,\"required\":1,\"data\":{\"type\":2,\"len\":120}}]}",
"ver": "1.2"
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/exemplary/simple-video.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
"mimes": [
"video/mp4"
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/supplemental/bad_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"h": 50
}
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/supplemental/status_400.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"h": 50
}
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions adapters/tradplus/tradplustest/supplemental/status_500.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"h": 50
}
]
},
"ext": {
"bidder": {
"accountId": "fake-account-id",
"zoneId": ""
}
}
}
]
Expand Down

0 comments on commit ef25797

Please sign in to comment.