Documentation
¶
Index ¶
- func Builder(_ json.RawMessage, _ moduledeps.ModuleDeps) (interface{}, error)
- type ActionOverride
- type Attributes
- type Badv
- type BadvActionOverride
- type Bapp
- type BappActionOverride
- type Battr
- type BattrActionOverride
- type Bcat
- type BcatActionOverride
- type Btype
- type BtypeActionOverride
- type Conditions
- type Module
- func (m Module) HandleBidderRequestHook(_ context.Context, miCtx hookstage.ModuleInvocationContext, ...) (hookstage.HookResult[hookstage.BidderRequestPayload], error)
- func (m Module) HandleRawBidderResponseHook(_ context.Context, miCtx hookstage.ModuleInvocationContext, ...) (hookstage.HookResult[hookstage.RawBidderResponsePayload], error)
- type Override
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(_ json.RawMessage, _ moduledeps.ModuleDeps) (interface{}, error)
Types ¶
type ActionOverride ¶
type ActionOverride struct {
Conditions Conditions `json:"conditions"`
Override Override `json:"override"`
}
type Attributes ¶
type Badv ¶
type Badv struct {
ActionOverrides BadvActionOverride `json:"action_overrides"`
AllowedAdomainForDeals []string `json:"allowed_adomain_for_deals"`
BlockedAdomain []string `json:"blocked_adomain"`
BlockUnknownAdomain bool `json:"block_unknown_adomain"`
EnforceBlocks bool `json:"enforce_blocks"`
}
type BadvActionOverride ¶
type BadvActionOverride struct {
AllowedAdomainForDeals []ActionOverride `json:"allowed_adomain_for_deals"`
BlockedAdomain []ActionOverride `json:"blocked_adomain"`
BlockUnknownAdomain []ActionOverride `json:"block_unknown_adomain"`
EnforceBlocks []ActionOverride `json:"enforce_blocks"`
}
type Bapp ¶
type Bapp struct {
ActionOverrides BappActionOverride `json:"action_overrides"`
AllowedAppForDeals []string `json:"allowed_app_for_deals"`
BlockedApp []string `json:"blocked_app"`
EnforceBlocks bool `json:"enforce_blocks"`
}
type BappActionOverride ¶
type BappActionOverride struct {
AllowedAppForDeals []ActionOverride `json:"allowed_app_for_deals"`
BlockedApp []ActionOverride `json:"blocked_app"`
EnforceBlocks []ActionOverride `json:"enforce_blocks"`
}
type Battr ¶
type Battr struct {
ActionOverrides BattrActionOverride `json:"action_overrides"`
AllowedBannerAttrForDeals []int `json:"allowed_banner_attr_for_deals"`
BlockedBannerAttr []int `json:"blocked_banner_attr"`
EnforceBlocks bool `json:"enforce_blocks"`
}
type BattrActionOverride ¶
type BattrActionOverride struct {
AllowedBannerAttrForDeals []ActionOverride `json:"allowed_banner_attr_for_deals"`
BlockedBannerAttr []ActionOverride `json:"blocked_banner_attr"`
EnforceBlocks []ActionOverride `json:"enforce_blocks"`
}
type Bcat ¶
type Bcat struct {
ActionOverrides BcatActionOverride `json:"action_overrides"`
AllowedAdvCatForDeals []string `json:"allowed_adv_cat_for_deals"`
BlockedAdvCat []string `json:"blocked_adv_cat"`
BlockUnknownAdvCat bool `json:"block_unknown_adv_cat"`
CategoryTaxonomy adcom1.CategoryTaxonomy `json:"category_taxonomy"`
EnforceBlocks bool `json:"enforce_blocks"`
}
type BcatActionOverride ¶
type BcatActionOverride struct {
AllowedAdvCatForDeals []ActionOverride `json:"allowed_adv_cat_for_deals"`
BlockedAdvCat []ActionOverride `json:"blocked_adv_cat"`
BlockUnknownAdvCat []ActionOverride `json:"block_unknown_adv_cat"`
EnforceBlocks []ActionOverride `json:"enforce_blocks"`
}
type Btype ¶
type Btype struct {
ActionOverrides BtypeActionOverride `json:"action_overrides"`
BlockedBannerType []int `json:"blocked_banner_type"`
}
type BtypeActionOverride ¶
type BtypeActionOverride struct {
BlockedBannerType []ActionOverride `json:"blocked_banner_type"`
}
type Conditions ¶
type Module ¶
type Module struct{}
func (Module) HandleBidderRequestHook ¶ added in v0.239.0
func (m Module) HandleBidderRequestHook( _ context.Context, miCtx hookstage.ModuleInvocationContext, payload hookstage.BidderRequestPayload, ) (hookstage.HookResult[hookstage.BidderRequestPayload], error)
HandleBidderRequestHook updates blocking fields on the openrtb2.BidRequest. Fields are updated only if request satisfies conditions provided by the module config.
func (Module) HandleRawBidderResponseHook ¶ added in v0.239.0
func (m Module) HandleRawBidderResponseHook( _ context.Context, miCtx hookstage.ModuleInvocationContext, payload hookstage.RawBidderResponsePayload, ) (hookstage.HookResult[hookstage.RawBidderResponsePayload], error)
HandleRawBidderResponseHook rejects bids for a specific bidder if they fail the attribute check.
Click to show internal directories.
Click to hide internal directories.