Skip to content

Commit

Permalink
adds partner ID to top level ext and as auth header
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettBlox committed May 2, 2024
1 parent 0b435d2 commit e3407bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions adapters/concert/concert.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte
Uri: a.endpoint,
Body: requestJSON,
Headers: http.Header{
"Content-Type": []string{"application/json"},
"Content-Type": []string{"application/json"},
"Authorization": []string{"Bearer " + bidderImpExt.PartnerId},
},
}
Expand Down Expand Up @@ -161,4 +161,4 @@ func getBidderExt(imp openrtb2.Imp) (bidderImpExt openrtb_ext.ImpExtConcert, err
return bidderImpExt, fmt.Errorf("bidder ext: %v", err)
}
return bidderImpExt, nil
}
}
6 changes: 4 additions & 2 deletions adapters/concert/concerttest/exemplary/audio.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
},
"httpCalls": [
Expand Down Expand Up @@ -70,7 +71,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions adapters/concert/concerttest/exemplary/banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
},
"httpCalls": [
Expand Down Expand Up @@ -86,7 +87,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions adapters/concert/concerttest/exemplary/video.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
},
"httpCalls": [
Expand Down Expand Up @@ -76,7 +77,8 @@
"buyeruid": "some-buyer-uid"
},
"ext": {
"adapterVersion": "1.0.0"
"adapterVersion": "1.0.0",
"partnerId": "partner_name"
}
}
},
Expand Down

0 comments on commit e3407bf

Please sign in to comment.