ad

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADIndex

type ADIndex struct {
	Index  int     `json:"index"`
	Info   *ADInfo `json:"ad_info"`
	IsAd   bool    `json:"is_ad"`
	CmMark int     `json:"cm_mark"`
}

type ADInfo

type ADInfo struct {
	CreativeID      int `json:"creative_id"`
	CreativeType    int `json:"creative_type"`
	CreativeContent struct {
		Title    string `json:"title"`
		Desc     string `json:"description"`
		VideoID  int64  `json:"video_id"`
		UserName string `json:"username"`
		ImageURL string `json:"image_url"`
		ImageMD5 string `json:"image_md5"`
		LogURL   string `json:"log_url"`
		LogMD5   string `json:"log_md5"`
		URL      string `json:"url"`
		ClickURL string `json:"click_url"`
		ShowURL  string `json:"show_url"`
	} `json:"creative_content"`
	AdCb string `json:"ad_cb"`
}

type ADRequest

type ADRequest struct {
	RequestID string                         `json:"request_id"`
	ADIndexs  map[string]map[string]*ADIndex `json:"ads_info"`
}

func (*ADRequest) ConvertBanner

func (adr *ADRequest) ConvertBanner(ip, mobiApp string, build int) (banners map[int]map[int]*banner.Banner)

RecoverBanner

Jump to

Keyboard shortcuts

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