|
|
|
package game
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
)
|
|
|
|
|
|
|
|
// https://xx.xxx.com/track?idfa={IDFA}&time={TIME}&ip={IP}&org_id={ORG_ID}&org_name={ORG_NAME}&game_id={TAP_PROJECT_ID}&game_name={GAME_NAME}&adset_id={ADSET_ID}&
|
|
|
|
// adset_net={ADSET_NAME}&device_brand={DEVICE_BRAND}&device_model={DEVICE_MODEL}&creative_id={CREATIVE_ID}&conversion_type={CONVERSION_TYPE}&device={DEVICE}&OAID={OAID}&
|
|
|
|
// callback={DEEP_CALLBACK_URL}
|
|
|
|
type ADReq struct {
|
|
|
|
g.Meta `path:"/advertise" tags:"ad" method:"get" summary:"广告投放"`
|
|
|
|
Idfa string `p:"idfa"`
|
|
|
|
Time string `p:"time"`
|
|
|
|
Ip string `p:"ip"`
|
|
|
|
OrgId string `p:"org_id"`
|
|
|
|
OrgName string `p:"org_name"`
|
|
|
|
GameId string `p:"game_id"`
|
|
|
|
GameName string `p:"game_name"`
|
|
|
|
AdsetId string `p:"adset_id"`
|
|
|
|
AdsetNet string `p:"adset_net"`
|
|
|
|
DeviceBrand string `p:"device_brand"`
|
|
|
|
DeviceModel string `p:"device_model"`
|
|
|
|
CreativeId string `p:"creative_id"`
|
|
|
|
ConversionType string `p:"conversion_type"`
|
|
|
|
Device string `p:"device"`
|
|
|
|
OAID string `p:"OAID"`
|
|
|
|
Callback string `p:"callback"`
|
|
|
|
TapProjectId string `p:"tap_track_id"`
|
|
|
|
TapTrackId string `p:"tap_project_id"`
|
|
|
|
ANID string `p:"ANID"`
|
|
|
|
IMEI string `p:"IMEI"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ADRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeepADReq struct {
|
|
|
|
g.Meta `path:"/deepAdvertise" tags:"ad" method:"get" summary:"广告投放深度事件"`
|
|
|
|
OAID string `p:"OAID"`
|
|
|
|
State int32 `p:"event_type"`
|
|
|
|
Amount int32 `p:"amount"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeepADRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ATHAReq struct {
|
|
|
|
g.Meta `path:"/attributionHA" tags:"ad" method:"get" summary:"广告投放"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
Idfv string `p:"idfv"`
|
|
|
|
AndroidId string `p:"android_id"`
|
|
|
|
PackageName string `p:"package_name"`
|
|
|
|
CustomerActiveTime string `p:"customer_active_time"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type HugeAmount struct {
|
|
|
|
Idfa string `p:"idfa"`
|
|
|
|
Time string `p:"time"`
|
|
|
|
Ip string `p:"ip"`
|
|
|
|
OrgId string `p:"org_id"`
|
|
|
|
OrgName string `p:"org_name"`
|
|
|
|
GameId string `p:"game_id"`
|
|
|
|
GameName string `p:"game_name"`
|
|
|
|
AdsetId string `p:"adset_id"`
|
|
|
|
AdsetNet string `p:"adset_net"`
|
|
|
|
DeviceBrand string `p:"device_brand"`
|
|
|
|
DeviceModel string `p:"device_model"`
|
|
|
|
CreativeId string `p:"creative_id"`
|
|
|
|
ConversionType string `p:"conversion_type"`
|
|
|
|
Device string `p:"device"`
|
|
|
|
OAID string `p:"OAID"`
|
|
|
|
Callback string `p:"callback"`
|
|
|
|
TapProjectId string `p:"tap_track_id"`
|
|
|
|
TapTrackId string `p:"tap_project_id"`
|
|
|
|
ANID string `p:"ANID"`
|
|
|
|
IMEI string `p:"IMEI"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ATHARes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CSHAReq struct {
|
|
|
|
g.Meta `path:"/conversionHA" tags:"ad" method:"get" summary:"广告投放"`
|
|
|
|
EventType string `p:"event_type"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
Id string `p:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CSHARes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|