pubmatic

package
v0.167.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 18 Imported by: 11

Documentation

Index

Constants

View Source
const (
	INVALID_PARAMS    = "Invalid BidParam"
	MISSING_PUBID     = "Missing PubID"
	MISSING_ADSLOT    = "Missing AdSlot"
	INVALID_WRAPEXT   = "Invalid WrapperExt"
	INVALID_ADSIZE    = "Invalid AdSize"
	INVALID_WIDTH     = "Invalid Width"
	INVALID_HEIGHT    = "Invalid Height"
	INVALID_MEDIATYPE = "Invalid MediaType"
	INVALID_ADSLOT    = "Invalid AdSlot"

	ImpExtAdUnitKey = "dfp_ad_unit_code"
	AdServerGAM     = "gam"
)
View Source
const MAX_IMPRESSIONS_PUBMATIC = 30

Variables

This section is empty.

Functions

func Builder

func Builder(bidderName openrtb_ext.BidderName, config config.Adapter) (adapters.Bidder, error)

Builder builds a new instance of the Pubmatic adapter for the given bidder with the given config.

func NewPubmaticSyncer

func NewPubmaticSyncer(temp *template.Template) usersync.Usersyncer

func PrepareLogMessage

func PrepareLogMessage(tID, pubId, adUnitId, bidID, details string, args ...interface{}) string

Types

type ExtAdServer added in v0.164.0

type ExtAdServer struct {
	Name   string `json:"name"`
	AdSlot string `json:"adslot"`
}

type ExtData added in v0.164.0

type ExtData struct {
	AdServer *ExtAdServer `json:"adserver"`
	PBAdSlot string       `json:"pbadslot"`
}

type ExtImpBidderPubmatic added in v0.164.0

type ExtImpBidderPubmatic struct {
	adapters.ExtImpBidder
	Data *ExtData `json:"data,omitempty"`
}

type PubmaticAdapter

type PubmaticAdapter struct {
	URI string
	// contains filtered or unexported fields
}

func NewPubmaticLegacyAdapter

func NewPubmaticLegacyAdapter(config *adapters.HTTPAdapterConfig, uri string) *PubmaticAdapter

func (*PubmaticAdapter) Call

func (a *PubmaticAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)

func (*PubmaticAdapter) MakeBids

func (a *PubmaticAdapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest *adapters.RequestData, response *adapters.ResponseData) (*adapters.BidderResponse, []error)

func (*PubmaticAdapter) MakeRequests

func (a *PubmaticAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error)

func (*PubmaticAdapter) Name

func (a *PubmaticAdapter) Name() string

used for cookies and such

func (*PubmaticAdapter) SkipNoCookies

func (a *PubmaticAdapter) SkipNoCookies() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL