Documentation ¶
Overview ¶
Package track 数据上报管理相关API models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveRequest ¶
type ActiveRequest struct { // Link 广告被打开的落地页的原始真实 url Link string `json:"link,omitempty"` // Callback 点击检测下发的 callback Callback string `json:"callback,omitempty"` // EventType 事件类型 EventType enum.TrackEventType `json:"event_type,omitempty"` // ConvTime UTC 时间戳,单位:秒 ConvTime int64 `json:"conv_time,omitempty"` // Source 数据来源,比如来自 talkingdata的激活回调, 可以填写 TD Source string `json:"source,omitempty"` // MatchType 归因方式 MatchType enum.TrackMatchType `json:"match_type,omitempty"` // Imei 安卓手机 imei 的 md5 摘要 Imei string `json:"imei,omitempty"` // Idfa ios 手机的 idfa 原值 Idfa string `json:"idfa,omitempty"` // Muid 安卓:imei号取md5sum摘要;IOS:取idfa原值 Muid string `json:"muid,omitempty"` // Oaid Android Q 版本的 oaid 原值 Oaid string `json:"oaid,omitempty"` // OaidMd5 Android Q 版本的 oaid 原值的md5摘要 OaidMd5 string `json:"oaid_md5,omitempty"` // Os 客户端的操作系统类型 Os enum.TrackOS `json:"os,omitempty"` // Caid 中国广告协会互联网广告标识 Caid string `json:"caid,omitempty"` // Ext 补充数据 Ext map[string]string `json:"ext,omitempty"` // PrivateKey PrivateKey *rsa.PrivateKey `json:"-"` // Credential Credential enum.Credential `json:"-"` // AppAccessToken AppAccessToken string `json:"-"` }
ActiveRequest 线索-API上报数据 API Request
func (ActiveRequest) Encode ¶ added in v1.16.7
func (r ActiveRequest) Encode() []byte
Encode implement PostRequest interface
func (ActiveRequest) GetAppAccessToken ¶ added in v1.19.3
func (r ActiveRequest) GetAppAccessToken() string
GetAppAccessToken implement ConvertionRequest interface
func (ActiveRequest) RequestURI ¶ added in v1.17.7
func (r ActiveRequest) RequestURI() string
RequestURI implement TrackRequest interface
type Response ¶
type Response struct { // Code 返回值 Code int `json:"code,omitempty"` // Msg 错误信息 Msg string `json:"msg,omitempty"` // Ret . Ret int `json:"ret,omitempty"` }
Response 线索-API上报数据 API Response
type WxaActiveRequest ¶ added in v1.10.0
type WxaActiveRequest struct { // ClueToken 下发线索token ClueToken string `json:"clue_token,omitempty"` // UnionID 微信union_id UnionID string `json:"union_id,omitempty"` // OpenID 微信open_id OpenID string `json:"open_id,omitempty"` // EventType 事件类型 EventType string `json:"event_type,omitempty"` // Props 参数包含pay_amount Props *conversion.Properties `json:"props,omitempty"` // Token Token string `json:"-"` // Gateway Gateway string `json:"-"` // PrivateKey PrivateKey *rsa.PrivateKey `json:"-"` // Credential Credential enum.Credential `json:"-"` // AppAccessToken AppAccessToken string `json:"-"` }
WxaActiveRequest 微信小程序线索-API上报数据 API Request
func (WxaActiveRequest) Encode ¶ added in v1.17.7
func (r WxaActiveRequest) Encode() []byte
Encode implement GetRequest interface
func (WxaActiveRequest) GetAppAccessToken ¶ added in v1.19.3
func (r WxaActiveRequest) GetAppAccessToken() string
GetAppAccessToken implement ConvertionRequest interface
func (WxaActiveRequest) RequestURI ¶ added in v1.17.7
func (r WxaActiveRequest) RequestURI() string
RequestURI implement TrackRequest interface
Click to show internal directories.
Click to hide internal directories.