Documentation ¶
Index ¶
- Constants
- func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
- func GetHeaders(request *openrtb2.BidRequest) *http.Header
- type ImpressionExtOut
- type TelariaAdapter
- func (a *TelariaAdapter) CheckHasImps(request *openrtb2.BidRequest) error
- func (a *TelariaAdapter) CheckHasVideoObject(request *openrtb2.BidRequest) error
- func (a *TelariaAdapter) CheckResponseStatusCodes(response *adapters.ResponseData) error
- func (a *TelariaAdapter) FetchEndpoint() string
- func (a *TelariaAdapter) FetchOriginalPublisherID(request *openrtb2.BidRequest) string
- func (a *TelariaAdapter) FetchTelariaExtImpParams(imp *openrtb2.Imp) (*openrtb_ext.ExtImpTelaria, error)
- func (a *TelariaAdapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest *adapters.RequestData, ...) (*adapters.BidderResponse, []error)
- func (a *TelariaAdapter) MakePublisherObject(seatCode string, publisher *openrtb2.Publisher) *openrtb2.Publisher
- func (a *TelariaAdapter) MakeRequests(requestIn *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error)
- func (a *TelariaAdapter) PopulatePublisherId(request *openrtb2.BidRequest, seatCode string) (*openrtb2.Site, *openrtb2.App)
Constants ¶
const Endpoint = "https://ads.tremorhub.com/ad/rtb/prebid"
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
Builder builds a new instance of the Telaria adapter for the given bidder with the given config.
func GetHeaders ¶
func GetHeaders(request *openrtb2.BidRequest) *http.Header
Fetches the populated header object
Types ¶
type ImpressionExtOut ¶
type ImpressionExtOut struct { OriginalTagID string `json:"originalTagid"` OriginalPublisherID string `json:"originalPublisherid"` }
This will be part of imp[i].ext when this adapter calls out the Telaria Ad Server
type TelariaAdapter ¶
type TelariaAdapter struct {
URI string
}
func (*TelariaAdapter) CheckHasImps ¶
func (a *TelariaAdapter) CheckHasImps(request *openrtb2.BidRequest) error
Checker method to ensure len(request.Imp) > 0
func (*TelariaAdapter) CheckHasVideoObject ¶
func (a *TelariaAdapter) CheckHasVideoObject(request *openrtb2.BidRequest) error
Checking if Imp[i].Video exists and Imp[i].Banner doesn't exist
func (*TelariaAdapter) CheckResponseStatusCodes ¶
func (a *TelariaAdapter) CheckResponseStatusCodes(response *adapters.ResponseData) error
func (*TelariaAdapter) FetchEndpoint ¶
func (a *TelariaAdapter) FetchEndpoint() string
Endpoint for Telaria Ad server
func (*TelariaAdapter) FetchOriginalPublisherID ¶
func (a *TelariaAdapter) FetchOriginalPublisherID(request *openrtb2.BidRequest) string
Method to fetch the original publisher ID. Note that this method must be called before we replace publisher.ID with seatCode
func (*TelariaAdapter) FetchTelariaExtImpParams ¶
func (a *TelariaAdapter) FetchTelariaExtImpParams(imp *openrtb2.Imp) (*openrtb_ext.ExtImpTelaria, error)
Checks the imp[i].ext object and returns a imp.ext object as per ExtImpTelaria format
func (*TelariaAdapter) MakeBids ¶
func (a *TelariaAdapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest *adapters.RequestData, response *adapters.ResponseData) (*adapters.BidderResponse, []error)
func (*TelariaAdapter) MakePublisherObject ¶
func (a *TelariaAdapter) MakePublisherObject(seatCode string, publisher *openrtb2.Publisher) *openrtb2.Publisher
Method to do a deep copy of the publisher object. It also adds the seatCode as publisher.ID
func (*TelariaAdapter) MakeRequests ¶
func (a *TelariaAdapter) MakeRequests(requestIn *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error)
func (*TelariaAdapter) PopulatePublisherId ¶
func (a *TelariaAdapter) PopulatePublisherId(request *openrtb2.BidRequest, seatCode string) (*openrtb2.Site, *openrtb2.App)
This method changes <site/app>.publisher.id to the seatCode