Skip to content

Commit

Permalink
feat(project): 巨量广告增加推广产品/载体信息,部分投放场景字段校验逻辑变动
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Nov 19, 2024
1 parent 3fa233f commit dd8715b
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
31 changes: 31 additions & 0 deletions marketing-api/enum/delivery_medium.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package enum

// DeliveryMedium 单投放载体
type DeliveryMedium string

const (
// DeliveryMedium_WECHAT_GAME:微信小游戏
DeliveryMedium_WECHAT_GAME DeliveryMedium = "WECHAT_GAME"
// DeliveryMedium_WECHAT_GAMEWECHAT_APP:微信小程序
DeliveryMedium_WECHAT_GAMEWECHAT_APP DeliveryMedium = "WECHAT_GAMEWECHAT_APP"
// DeliveryMedium_WECHAT_GAMEBYTE_GAME:字节小游戏
DeliveryMedium_WECHAT_GAMEBYTE_GAME DeliveryMedium = "WECHAT_GAMEBYTE_GAME"
// DeliveryMedium_WECHAT_GAMEBYTE_APP:字节小程序
DeliveryMedium_WECHAT_GAMEBYTE_APP DeliveryMedium = "WECHAT_GAMEBYTE_APP"
// DeliveryMedium_WECHAT_GAMEPRODUCT:商品
DeliveryMedium_WECHAT_GAMEPRODUCT DeliveryMedium = "WECHAT_GAMEPRODUCT"
// DeliveryMedium_WECHAT_GAMEORANGE: 橙子落地页
DeliveryMedium_WECHAT_GAMEORANGE DeliveryMedium = "WECHAT_GAMEORANGE"
// DeliveryMedium_WECHAT_GAMETHIRDPARTY :自研落地页
DeliveryMedium_WECHAT_GAMETHIRDPARTY DeliveryMedium = "WECHAT_GAMETHIRDPARTY"
// DeliveryMedium_WECHAT_GAMEENTERPRISE :企业号落地页
DeliveryMedium_WECHAT_GAMEENTERPRISE DeliveryMedium = "WECHAT_GAMEENTERPRISE"
// DeliveryMedium_WECHAT_GAMEAWEME: 抖音号
DeliveryMedium_WECHAT_GAMEAWEME DeliveryMedium = "WECHAT_GAMEAWEME"
// DeliveryMedium_WECHAT_GAMEQUICK_APP:快应用
DeliveryMedium_WECHAT_GAMEQUICK_APP DeliveryMedium = "WECHAT_GAMEQUICK_APP"
// DeliveryMedium_WECHAT_GAMEAPP:应用
DeliveryMedium_WECHAT_GAMEAPP DeliveryMedium = "WECHAT_GAMEAPP"
// DeliveryMedium_WECHAT_GAMELANDING_PAGE_LINK:落地页
DeliveryMedium_WECHAT_GAMELANDING_PAGE_LINK DeliveryMedium = "WECHAT_GAMELANDING_PAGE_LINK"
)
25 changes: 25 additions & 0 deletions marketing-api/enum/delivery_product.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package enum

// DeliveryProduct 推广产品
type DeliveryProduct string

const (
// DeliveryProduct_NONE:无产品
DeliveryProduct_NONE DeliveryProduct = "NONE"
// DeliveryProduct_APP :应用
DeliveryProduct_APP DeliveryProduct = "APP"
// DeliveryProduct_PRODUCT:商品
DeliveryProduct_PRODUCT DeliveryProduct = "PRODUCT"
// DeliveryProduct_WECHAT_GAME:微信小游戏
DeliveryProduct_WECHAT_GAME DeliveryProduct = "WECHAT_GAM"
// DeliveryProduct_WECHAT_APP:微信小程序
DeliveryProduct_WECHAT_APP DeliveryProduct = "WECHAT_APP"
// DeliveryProduct_BYTE_GAME:字节小游戏
DeliveryProduct_BYTE_GAME DeliveryProduct = "BYTE_GAME"
// DeliveryProduct_BYTE_APP:字节小程序
DeliveryProduct_BYTE_APP DeliveryProduct = "BYTE_APP"
// DeliveryProduct_QUICK_APP:快应用
DeliveryProduct_QUICK_APP DeliveryProduct = "QUICK_APP"
// DeliveryProduct_AWEME:抖音号
DeliveryProduct_AWEME DeliveryProduct = "AWEME"
)
9 changes: 9 additions & 0 deletions marketing-api/enum/multi_delivery_medium.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package enum

// MultiDeliveryMedium 多投放载体,仅当landing_type = LINK 销售线索推广目的下会返回
type MultiDeliveryMedium string

const (
// MultiDeliveryMedium_ORANGE_AND_AWEME 优选投放橙子落地页和抖音主页
MultiDeliveryMedium_ORANGE_AND_AWEME MultiDeliveryMedium = "ORANGE_AND_AWEME"
)
29 changes: 29 additions & 0 deletions marketing-api/model/v3/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,35 @@ type Project struct {
// 数组长度限制:最大5条
// DPA推广目的下有效
DpaProductTarget []DpaProductTarget `json:"dpa_product_target,omitempty"`
// DeliveryProduct 推广产品,枚举值
// NONE:无产品
// APP :应用
// PRODUCT:商品
// WECHAT_GAME:微信小游戏
// WECHAT_APP:微信小程序
// BYTE_GAME:字节小游戏
// BYTE_APP:字节小程序
// QUICK_APP:快应用
// AWEME:抖音号
DeliveryProduct enum.DeliveryProduct `json:"delivery_product,omitempty"`
// DeliveryMedium 单投放载体,枚举值
// WECHAT_GAME:微信小游戏
// WECHAT_APP:微信小程序
// BYTE_GAME:字节小游戏
// BYTE_APP:字节小程序
// PRODUCT:商品
// ORANGE: 橙子落地页
// THIRDPARTY :自研落地页
// ENTERPRISE :企业号落地页
// AWEME: 抖音号
// QUICK_APP:快应用
// APP:应用
// LANDING_PAGE_LINK:落地页
DeliveryMedium enum.DeliveryMedium `json:"delivery_medium,omitempty"`
// MultiDeliveryMedium 多投放载体,仅当landing_type = LINK 销售线索推广目的下会返回
// 枚举值:
// ORANGE_AND_AWEME优选投放橙子落地页和抖音主页
MultiDeliveryMedium enum.MultiDeliveryMedium `json:"multi_delivery_medium,omitempty"`
// DownloadURL 下载链接,landing_type=APP 子目标为 DOWNLOAD 或者LAUNCH 时有效且必填
// - 下载、调用场景传入说明:
// IOS:需要为iTunes官方地址
Expand Down

0 comments on commit dd8715b

Please sign in to comment.