Documentation ¶
Index ¶
Constants ¶
View Source
const ( MacroKeyBidID = "PBS-BIDID" MacroKeyAppBundle = "PBS-APPBUNDLE" MacroKeyDomain = "PBS-DOMAIN" MacroKeyPubDomain = "PBS-PUBDOMAIN" MacroKeyPageURL = "PBS-PAGEURL" MacroKeyAccountID = "PBS-ACCOUNTID" MacroKeyLmtTracking = "PBS-LIMITADTRACKING" MacroKeyConsent = "PBS-GDPRCONSENT" MacroKeyBidder = "PBS-BIDDER" MacroKeyIntegration = "PBS-INTEGRATION" MacroKeyVastCRTID = "PBS-VASTCRTID" MacroKeyTimestamp = "PBS-TIMESTAMP" MacroKeyAuctionID = "PBS-AUCTIONID" MacroKeyChannel = "PBS-CHANNEL" MacroKeyEventType = "PBS-EVENTTYPE" MacroKeyVastEvent = "PBS-VASTEVENT" )
View Source
const (
CustomMacroPrefix = "PBS-MACRO-"
)
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶ added in v0.257.0
func NewProvider(reqWrapper *openrtb_ext.RequestWrapper) *macroProvider
NewBuilder returns the instance of macro buidler
Types ¶
type EndpointTemplateParams ¶
type EndpointTemplateParams struct { Host string PublisherID string ZoneID string SourceId string AccountID string AdUnit string MediaType string GvlID string }
EndpointTemplateParams specifies params for an endpoint template
type Replacer ¶ added in v0.257.0
type Replacer interface { // Replace the macros and returns replaced string // if any error the error will be returned Replace(url string, macroProvider *macroProvider) (string, error) }
func NewStringIndexBasedReplacer ¶ added in v0.257.0
func NewStringIndexBasedReplacer() Replacer
NewStringIndexBasedReplacer will return instance of string index based macro replacer
Click to show internal directories.
Click to hide internal directories.