Documentation
¶
Index ¶
- Constants
- func EventRequestToUrl(externalUrl string, request *analytics.EventRequest) string
- func GetVastUrlTracking(externalUrl string, bidid string, bidder string, accountId string, ...) string
- func HandleAccountServiceErrors(errs []error) (status int, messages []string)
- func ModifyVastXmlJSON(externalUrl string, data json.RawMessage, bidid, bidder, accountId string, ...) json.RawMessage
- func ModifyVastXmlString(externalUrl, vast, bidid, bidder, accountID string, timestamp int64, ...) (string, bool)
- func NewEventEndpoint(cfg *config.Configuration, accounts stored_requests.AccountFetcher, ...) httprouter.Handle
- func NewVTrackEndpoint(cfg *config.Configuration, accounts stored_requests.AccountFetcher, ...) httprouter.Handle
- func ParseEventRequest(r *http.Request) (*analytics.EventRequest, []error)
- type BidCacheRequest
- type BidCacheResponse
- type CacheObject
Constants ¶
View Source
const ( // Required TemplateUrl = "%v/event?t=%v&b=%v&a=%v" TypeParameter = "t" VTypeParameter = "vtype" BidIdParameter = "b" AccountIdParameter = "a" // Optional BidderParameter = "bidder" TimestampParameter = "ts" FormatParameter = "f" AnalyticsParameter = "x" IntegrationTypeParameter = "int" )
View Source
const ( AccountParameter = "a" IntegrationParameter = "int" ImpressionCloseTag = "</Impression>" ImpressionOpenTag = "<Impression>" )
Variables ¶
This section is empty.
Functions ¶
func EventRequestToUrl ¶
func EventRequestToUrl(externalUrl string, request *analytics.EventRequest) string
EventRequestToUrl converts an analytics.EventRequest to an URL
func GetVastUrlTracking ¶
func GetVastUrlTracking(externalUrl string, bidid string, bidder string, accountId string, timestamp int64, integration string) string
GetVastUrlTracking creates a vast url tracking
func HandleAccountServiceErrors ¶
HandleAccountServiceErrors handles account.GetAccount errors
func ModifyVastXmlJSON ¶
func ModifyVastXmlJSON(externalUrl string, data json.RawMessage, bidid, bidder, accountId string, timestamp int64, integrationType string) json.RawMessage
ModifyVastXmlJSON modifies BidCacheRequest element Vast XML data
func ModifyVastXmlString ¶
func ModifyVastXmlString(externalUrl, vast, bidid, bidder, accountID string, timestamp int64, integrationType string) (string, bool)
ModifyVastXmlString rewrites and returns the string vastXML and a flag indicating if it was modified
func NewEventEndpoint ¶
func NewEventEndpoint(cfg *config.Configuration, accounts stored_requests.AccountFetcher, analytics analytics.Runner, me metrics.MetricsEngine) httprouter.Handle
func NewVTrackEndpoint ¶
func NewVTrackEndpoint(cfg *config.Configuration, accounts stored_requests.AccountFetcher, cache prebid_cache_client.Client, bidderInfos config.BidderInfos, me metrics.MetricsEngine) httprouter.Handle
func ParseEventRequest ¶
func ParseEventRequest(r *http.Request) (*analytics.EventRequest, []error)
ParseEventRequest parses an analytics.EventRequest from an Http request
Types ¶
type BidCacheRequest ¶
type BidCacheRequest struct {
Puts []prebid_cache_client.Cacheable `json:"puts"`
}
func ParseVTrackRequest ¶
func ParseVTrackRequest(httpRequest *http.Request, maxRequestSize int64) (req *BidCacheRequest, err error)
ParseVTrackRequest parses a BidCacheRequest from an HTTP Request
type BidCacheResponse ¶
type BidCacheResponse struct {
Responses []CacheObject `json:"responses"`
}
type CacheObject ¶
type CacheObject struct {
UUID string `json:"uuid"`
}
Click to show internal directories.
Click to hide internal directories.