ocpc

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCbRequest

type ActionCbRequest struct {
	Akey        string `json:"akey,omitempty"`
	CallbackUrl string `json:"callbackUrl,omitempty"`
	AType       string `json:"a_type,omitempty"`
	AValue      string `json:"a_value,omitempty"`
}

ActionCbRequest 转化追踪回调 请求

func (ActionCbRequest) Sign

func (r ActionCbRequest) Sign() string

func (ActionCbRequest) Url

func (r ActionCbRequest) Url() string

type ActionCbResponse

type ActionCbResponse struct {
	ErrorCode int    `json:"error_code,omitempty"`
	ErrorMsg  string `json:"error_msg,omitempty"`
}

ActionCbResponse 转化追踪回调返回

func (ActionCbResponse) Error

func (r ActionCbResponse) Error() string

func (ActionCbResponse) IsError

func (r ActionCbResponse) IsError() bool

type ConversionType

type ConversionType struct {
	// LogidUrl logidUrl为带有&bd_vid=xxx的落地页url地址,只有在百度搜索广告里点击进入的落地页url,才会带有&bd_vid,如有相关疑问,可参考文档进行排查
	LogidUrl string `json:"logidUrl"`
	// NewType 转化类型,每次选择一个类型回传,模型可用的转化类型请以推广后台新建转化追踪披露的转化类型为准
	NewType int `json:"newType"`
	// DeviceType 0代表安卓;1代表IOS;2代表其他
	DeviceType int `json:"deviceType,omitempty"`
	// DeviceId 安卓:IMEI 号取;md5 sum 摘要;IOS:IDFA 号原值
	DeviceId string `json:"deviceId,omitempty"`
	// IsConvert 是否发生转化(0或1);0:未发生转化;1:发生转化; 默认为1
	IsConvert *int `json:"isConvert,omitempty"`
	// ConvertTime unix时间戳(精确到秒);转化类型为46时必填
	ConvertTime int64 `json:"convertTime,omitempty"`
	// ConvertValue 转化金额(单位分)
	ConvertValue int `json:"convertValue,omitempty"`
	// Confidence 置信度,0-100数字
	Confidence int `json:"confidence,omitempty"`
}

ConversionType 回转转化数据

type InvalidConversionType

type InvalidConversionType struct {
	// LogidUrl logidUrl为带有&bd_vid=xxx的落地页url地址,只有在百度搜索广告里点击进入的落地页url,才会带有&bd_vid,如有相关疑问,可参考文档进行排查
	LogidUrl string `json:"logidUrl"`
	// ConvertType 转化类型,每次选择一个类型回传,模型可用的转化类型请以推广后台新建转化追踪披露的转化类型为准
	ConvertType int `json:"convertType"`
	// ConvertTime unix时间戳(精确到秒);转化类型为46时必填
	ConvertTime int64 `json:"convertTime"`
	// Ip 无效转化的IP地址
	Ip string `json:"ip,omitempty"`
	// Confidence 置信度,0-100数字
	Confidence int `json:"confidence,omitempty"`
	// InvalidReason 无效转化描述
	InvalidReason string `json:"invalidReason,omitempty"`
}

InvalidConversionType

type Response

type Response struct {
	Header ResponseHeader `json:"header"`
}

Response 转化回传返回结果

func (Response) Error

func (r Response) Error() string

func (Response) IsError

func (r Response) IsError() bool

type ResponseHeader

type ResponseHeader struct {
	Desc   string                  `json:"desc,omitempty"`
	Status int                     `json:"status,omitempty"` // 状态码
	Errors []model.ResponseFailure `json:"errors,omitempty"`
}

ResponseHeader .

type UploadConvertDataRequest

type UploadConvertDataRequest struct {
	// Token API接口token,每个推广账号对应一个唯一TOKEN
	Token string `json:"token"`
	// ConversionTypes 回传转化数据数组,每次回传转化数据数组长度需小于100
	ConversionTypes []ConversionType `json:"conversionTypes,omitempty"`
}

UploadConvertDataRequest 广告主回传转化数据 API Request

type UploadInvalidConvertDataRequest

type UploadInvalidConvertDataRequest struct {
	// Token API接口token,每个推广账号对应一个唯一TOKEN
	Token string `json:"token"`
	// InvalidConversionTypes 回传转化数据数组,每次回传转化数据数组长度需小于100
	InvalidConversionTypes []InvalidConversionType `json:"invalidConversionTypes,omitempty"`
}

UploadInvalidConvertDataRequest

Jump to

Keyboard shortcuts

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