Skip to content

Commit

Permalink
OTT-48 VAST Bidder Phase 1 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-viral-vala authored Jul 27, 2021
1 parent 721dfc1 commit 3c564c7
Show file tree
Hide file tree
Showing 39 changed files with 6,060 additions and 24 deletions.
8 changes: 7 additions & 1 deletion adapters/bidder.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,14 @@ type ResponseData struct {
Headers http.Header
}

type BidRequestParams struct {
ImpIndex int
VASTTagIndex int
}

// RequestData packages together the fields needed to make an http.Request.
type RequestData struct {
Params *BidRequestParams
Method string
Uri string
Body []byte
Expand All @@ -129,7 +135,7 @@ type ExtImpBidder struct {
//
// Bidder implementations may safely assume that this JSON has been validated by their
// static/bidder-params/{bidder}.json file.
Bidder json.RawMessage `json:"bidder"`
Bidder json.RawMessage `json:"bidder"`
}

func (r *RequestData) SetBasicAuth(username string, password string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"w": 300
},
"ext": {
"pmZoneID": "Zone1,Zone2",
"pmZoneId": "Zone1,Zone2",
"preference": "sports,movies",
"dfp_ad_unit_code": "/2222/home"
}
Expand Down
Loading

0 comments on commit 3c564c7

Please sign in to comment.