Skip to content

Commit

Permalink
Merge branch 'release/v1.29.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Dec 2, 2024
2 parents 0655b38 + 523ed95 commit 5d134aa
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion marketing-api/model/creative/ad_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type AdData struct {
// AdDownloadStatus 允许客户端下载视频功能,0为开启,即允许客户端下载视频;1为关闭,即不允许客户端下载视频。默认不传值,表示允许客户端下载视频。关闭客户端下载视频功能仅对本地上传的视频有效。
AdDownloadStatus *int `json:"ad_download_status,omitempty"`
// PriorityTrail 是否优先调起试玩。当推广目的为应用推广且使用搭配试玩素材时可以开启该功能。允许值:ON开启,OFF关闭
PriorityTrail string `json:"priority_trail,omitempty"`
PriorityTrail enum.OnOff `json:"priority_trail,omitempty"`
// Supplements 云游戏
Supplements []SupplementInfo `json:"supplements,omitempty"`
// DynamicCreativeSwitch 启用动态创意类型,详见【附录-动态创意类型】
Expand Down
2 changes: 1 addition & 1 deletion marketing-api/model/creative/creative_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type CreativeDetail struct {
// AdCategory
AdCategory uint64 `json:"ad_category,omitempty"`
// PriorityTrial 是否优先调起试玩。当推广目的为应用推广且使用搭配试玩素材是可以开启该功能。允许值:ON开启,OFF关闭,默认关闭
PriorityTrial string `json:"priority_trial,omitempty"`
PriorityTrial enum.OnOff `json:"priority_trial,omitempty"`
// DynamicCreativeSwitch 启用动态创意类型,详见【附录-动态创意类型】
// 允许值:DYNAMIC_CREATIVE_TITLE, DYNAMIC_CREATIVE_ABSTRACT,DYNAMIC_CREATIVE_SUBLINK,DYNAMIC_CREATIVE_ON,默认DYNAMIC_CREATIVE_ON当传入不为空时,等同于传入DYNAMIC_CREATIVE_ON启用动态创意,当传入[]时,关闭动态创意
// 不传时,不改变已有的值
Expand Down
2 changes: 1 addition & 1 deletion marketing-api/model/v3/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ type Audience struct {
// district =REGION/OVERSEA时必填
RegionVersion string `json:"region_version,omitempty"`
// RegionRecommend 地域智能放量定向,ON为开启、OFF为关闭
RegionRecommend string `json:"region_recommend,omitempty"`
RegionRecommend enum.OnOff `json:"region_recommend,omitempty"`
// City 地域定向省市或者区县列表,当district=CITY/COUNTY/REGION/OVERSEA时
// district =CITY/COUNTY时,详见【附件-city.json】
// district =REGION/OVERSEA时,通过【获取行政信息】接口获取
Expand Down
8 changes: 4 additions & 4 deletions marketing-api/model/v3/promotion/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ type CreateRequest struct {
// NativeSetting 原生广告设置
NativeSetting *NativeSetting `json:"native_setting,omitempty"`
// IsCommentDisable 广告评论,ON为启用,OFF为不启用
IsCommentDisable string `json:"is_comment_disable,omitempty"`
IsCommentDisable enum.OnOff `json:"is_comment_disable,omitempty"`
// AdDownloadStatus 客户端下载视频功能,ON为启用,OFF为不启用
AdDownloadStatus string `json:"ad_download_status,omitempty"`
AdDownloadStatus enum.OnOff `json:"ad_download_status,omitempty"`
// Source 广告来源,字数限制:[1-10]
// 当landing_type = LINK、MICRO_GAME时必填
Source string `json:"source,omitempty"`
Expand Down Expand Up @@ -63,13 +63,13 @@ type CreateRequest struct {
RoiGoal float64 `json:"roi_goal,omitempty"`
// AutoExtendTraffic 智能拓流
// 允许值:ON开启(默认值); OFF关闭
AutoExtendTraffic string `json:"auto_extend_traffic,omitempty"`
AutoExtendTraffic enum.OnOff `json:"auto_extend_traffic,omitempty"`
// Keywords 关键词列表,关键词和智能拓流二者必须开启一个,一个广告最多可添加1000个
Keywords []project.Keyword `json:"keywords,omitempty"`
// CreativeAutoGenerateSwitch 是否开启自动生成素材
// 默认值:OFF
// 枚举值:ON开启、OFF不开启
CreativeAutoGenerateSwitch string `json:"creative_auto_generate_switch,omitempty"`
CreativeAutoGenerateSwitch enum.OnOff `json:"creative_auto_generate_switch,omitempty"`
// ConfigID 配置ID,开关打开,不传为黑盒明投派生
ConfigID uint64 `json:"config_id,omitempty"`
// 7d_retention 表示7日留存天数,单位:天,取值范围[0.01,7.00],仅支持最多2位小数。
Expand Down
6 changes: 3 additions & 3 deletions marketing-api/model/v3/promotion/promotion.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Promotion struct {
// CreativeAutoGenerateSwitch 是否开启自动生成素材
// 默认值:OFF
// 枚举值:ON开启、OFF不开启
CreativeAutoGenerateSwitch string `json:"creative_auto_generate_switch,omitempty"`
CreativeAutoGenerateSwitch enum.OnOff `json:"creative_auto_generate_switch,omitempty"`
// ConfigID 配置ID,开关打开,不传为黑盒明投派生
ConfigID uint64 `json:"config_id,omitempty"`
// BrandInfo 品牌信息
Expand Down Expand Up @@ -167,7 +167,7 @@ type PromotionMaterial struct {
DecorationMaterial []DecorationMaterial `json:"decoration_material,omitempty"`
// AutoExtendTraffic 智能拓流
// 允许值:ON开启(默认值); OFF关闭
AutoExtendTraffic string `json:"auto_extend_traffic,omitempty"`
AutoExtendTraffic enum.OnOff `json:"auto_extend_traffic,omitempty"`
// Keywords 关键词列表,关键词和智能拓流二者必须开启一个,一个广告最多可添加1000个
Keywords []project.Keyword `json:"keywords,omitempty"`
// ComponentMaterialList 创意组件信息
Expand Down Expand Up @@ -208,7 +208,7 @@ type PromotionMaterial struct {
// Ulink 直达备用链接,支持穿山甲和站内广告位
Ulink string `json:"ulink,omitempty"`
// DynamicCreateiveSwitch 动态创意开关,允许值:ON开启(默认值),OFF关闭,当ad_type=SEARCH时有效
DynamicCreateiveSwitch string `json:"dynamic_creative_switch,omitempty"`
DynamicCreateiveSwitch enum.OnOff `json:"dynamic_creative_switch,omitempty"`
// AdvancedDcSettings 动态创意高级设置,仅搜索广告下可设置。注意:
// 仅当广告类型ad_type = SEARCH搜索广告,动态创意开关dynamic_creative_switch =ON时可传入,否则报错
// 必须传入至少1个值,动态创意开关开启dynamic_creative_switch =ON时,此参数传空值或非允许值会报错
Expand Down
8 changes: 4 additions & 4 deletions marketing-api/model/v3/promotion/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type UpdateRequest struct {
// NativeSetting 原生广告设置
NativeSetting *NativeSetting `json:"native_setting,omitempty"`
// IsCommentDisable 广告评论,ON为启用,OFF为不启用
IsCommentDisable string `json:"is_comment_disable,omitempty"`
IsCommentDisable enum.OnOff `json:"is_comment_disable,omitempty"`
// AdDownloadStatus 客户端下载视频功能,ON为启用,OFF为不启用
AdDownloadStatus string `json:"ad_download_status,omitempty"`
AdDownloadStatus enum.OnOff `json:"ad_download_status,omitempty"`
// Source 广告来源,字数限制:[1-10]
// 当landing_type = LINK、MICRO_GAME时必填
Source string `json:"source,omitempty"`
Expand All @@ -40,13 +40,13 @@ type UpdateRequest struct {
RoiGoal float64 `json:"roi_goal,omitempty"`
// AutoExtendTraffic 智能拓流
// 允许值:ON开启(默认值); OFF关闭
AutoExtendTraffic string `json:"auto_extend_traffic,omitempty"`
AutoExtendTraffic enum.OnOff `json:"auto_extend_traffic,omitempty"`
// Keywords 关键词列表,关键词和智能拓流二者必须开启一个,一个广告最多可添加1000个
Keywords []project.Keyword `json:"keywords,omitempty"`
// CreativeAutoGenerateSwitch 是否开启自动生成素材
// 默认值:OFF
// 枚举值:ON开启、OFF不开启
CreativeAutoGenerateSwitch string `json:"creative_auto_generate_switch,omitempty"`
CreativeAutoGenerateSwitch enum.OnOff `json:"creative_auto_generate_switch,omitempty"`
// ConfigID 配置ID,开关打开,不传为黑盒明投派生
ConfigID uint64 `json:"config_id,omitempty"`
// 7d_retention 表示7日留存天数,单位:天,取值范围[0.01,7.00],仅支持最多2位小数。
Expand Down

0 comments on commit 5d134aa

Please sign in to comment.