engine

package
v0.0.0-...-305b679 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLK_TRACKING_SERVER string
View Source
var IMP_TRACKING_SERVER string
View Source
var (
	OS_MAP = map[int]bd.Device_Os{
		0: bd.Device_ANDROID,
		1: bd.Device_IOS,
		2: bd.Device_IOS,
		3: bd.Device_IOS,
	}
)

Functions

func CheckTplName

func CheckTplName(tplName string) bool

func GetPmpAdspaceTemplate

func GetPmpAdspaceTemplate(adspaceKey string) string

func InvokeDemand

func InvokeDemand(adRequest *m.AdRequest) *m.AdResponse

func SendDemandLog

func SendDemandLog(adResponse *m.AdResponse)

func SendMHQueue

func SendMHQueue(adResponse *m.AdResponse, queueName string)

func SendRequestLog

func SendRequestLog(adRequest *m.AdRequest, logType int)

func SetTplHashSet

func SetTplHashSet(tplHashSet *lib.HashSet)

func SetupAdspaceDemandMap

func SetupAdspaceDemandMap(adspaceDemandMap map[string][]string)

func SetupAdspaceMap

func SetupAdspaceMap(adspaceMap map[string]m.AdspaceData)

func SetupAvbAdspaceDemandMap

func SetupAvbAdspaceDemandMap(avbDemandMap map[string]*m.AvbDemand)

func SetupDemandMap

func SetupDemandMap(demandMap map[int]m.DemandInfo)

func SetupPmpAdspaceMap

func SetupPmpAdspaceMap(pmpAdspaceMap map[string]m.PmpInfo)

func StartClkLogService

func StartClkLogService()

func StartDemandLogService

func StartDemandLogService()

func StartImpLogService

func StartImpLogService()

func StartMHQueueService

func StartMHQueueService()

func StartReqLogService

func StartReqLogService()

Types

type Demand

type Demand struct {
	URL            string
	Timeout        int
	AdRequest      *m.AdRequest
	AdspaceKey     string
	RealAdspaceKey string
	AdSecretKey    string
	Priority       int
	Result         chan *m.AdResponse
	TargetingCode  string
	AppName        string
	PkgName        string
	Pcat           int
	Ua             string
	Did            string
}

type MHQueueData

type MHQueueData struct {
	QueueName  string
	AdResponse *m.AdResponse
}

Directories

Path Synopsis
baidu
mobads_api
Package mobads_api is a generated protocol buffer package.
Package mobads_api is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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