Skip to content

Commit 441843b

Browse files
committed
feat(v3/promotion): 新增7日留存天数字段
1 parent 19bba76 commit 441843b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

marketing-api/model/v3/promotion/create.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ type CreateRequest struct {
7272
CreativeAutoGenerateSwitch string `json:"creative_auto_generate_switch,omitempty"`
7373
// ConfigID 配置ID,开关打开,不传为黑盒明投派生
7474
ConfigID uint64 `json:"config_id,omitempty"`
75+
// 7d_retention 表示7日留存天数,单位:天,取值范围[0.01,7.00],仅支持最多2位小数。
76+
// 7d_retention适用创编场景,该场景下有效且必填
77+
// landing_type = APP 应用推广
78+
// ad_type = ALL 通投
79+
// delivery_mode = MANUAL 手动投放
80+
// external_action = AD_CONVERT_TYPE_ACTIVE 优化目标=激活
81+
// deep_external_action = AD_CONVERT_TYPE_RETENTION_DAYS深度优化目标 = 留存天数
82+
// delivery_setting.deep_bid_type = AD_CONVERT_TYPE_RETENTION_DAYS深度优化方式 = 留存天数
83+
// delivery_range.inventory_catalog = MANUAL 广告位大类 = 首选媒体
84+
// inventory_type = INVENTORY_UNION_SLOT 投放位置 只选择穿山甲
85+
SevenDRetention float64 `json:"7d_retention,omitempty"`
7586
}
7687

7788
// Encode implement PostRequest interface

marketing-api/model/v3/promotion/promotion.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ type Promotion struct {
7575
ConfigID uint64 `json:"config_id,omitempty"`
7676
// BrandInfo 品牌信息
7777
BrandInfo *BrandInfo `json:"brand_info,omitempty"`
78+
// 7d_retention 表示7日留存天数,单位:天,取值范围[0.01,7.00],仅支持最多2位小数。
79+
// 7d_retention适用创编场景,该场景下有效且必填
80+
// landing_type = APP 应用推广
81+
// ad_type = ALL 通投
82+
// delivery_mode = MANUAL 手动投放
83+
// external_action = AD_CONVERT_TYPE_ACTIVE 优化目标=激活
84+
// deep_external_action = AD_CONVERT_TYPE_RETENTION_DAYS深度优化目标 = 留存天数
85+
// delivery_setting.deep_bid_type = AD_CONVERT_TYPE_RETENTION_DAYS深度优化方式 = 留存天数
86+
// delivery_range.inventory_catalog = MANUAL 广告位大类 = 首选媒体
87+
// inventory_type = INVENTORY_UNION_SLOT 投放位置 只选择穿山甲
88+
SevenDRetention float64 `json:"7d_retention,omitempty"`
7889
// ShopMultiRoiGoals 多ROI系数
7990
// 条件必填,object[],多ROI系数设置,表示引流电商多平台投放ROI系数及平台信息,广告主可按照电商平台分别确定ROI系数,分平台调控出价。list长度最长为4
8091
// 多平台优选投放白名单内客户,在以下组合场景时shop_multi_roi_goals有效且必填

marketing-api/model/v3/promotion/update.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ type UpdateRequest struct {
4949
CreativeAutoGenerateSwitch string `json:"creative_auto_generate_switch,omitempty"`
5050
// ConfigID 配置ID,开关打开,不传为黑盒明投派生
5151
ConfigID uint64 `json:"config_id,omitempty"`
52+
// 7d_retention 表示7日留存天数,单位:天,取值范围[0.01,7.00],仅支持最多2位小数。
53+
// 7d_retention适用创编场景,该场景下有效且必填
54+
// landing_type = APP 应用推广
55+
// ad_type = ALL 通投
56+
// delivery_mode = MANUAL 手动投放
57+
// external_action = AD_CONVERT_TYPE_ACTIVE 优化目标=激活
58+
// deep_external_action = AD_CONVERT_TYPE_RETENTION_DAYS深度优化目标 = 留存天数
59+
// delivery_setting.deep_bid_type = AD_CONVERT_TYPE_RETENTION_DAYS深度优化方式 = 留存天数
60+
// delivery_range.inventory_catalog = MANUAL 广告位大类 = 首选媒体
61+
// inventory_type = INVENTORY_UNION_SLOT 投放位置 只选择穿山甲
62+
SevenDRetention float64 `json:"7d_retention,omitempty"`
5263
// ShopMultiRoiGoals 多ROI系数
5364
// 条件必填,object[],多ROI系数设置,表示引流电商多平台投放ROI系数及平台信息,广告主可按照电商平台分别确定ROI系数,分平台调控出价。list长度最长为4
5465
// 多平台优选投放白名单内客户,在以下组合场景时shop_multi_roi_goals有效且必填

0 commit comments

Comments
 (0)