You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
4 months ago
|
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"`
|
||
|
}
|