diff --git a/marketing-api/enum/advanced_dc_setting.go b/marketing-api/enum/advanced_dc_setting.go new file mode 100644 index 00000000..784143c3 --- /dev/null +++ b/marketing-api/enum/advanced_dc_setting.go @@ -0,0 +1,11 @@ +package enum + +// AdvancedDcSetting 动态创意高级设置 +type AdvancedDcSetting string + +const ( + // AdvancedDcSetting_OPTIMIZE_SEARCH_RESULTS_PAGE 优化视频、图片、标题等搜索结果页内容 + AdvancedDcSetting_OPTIMIZE_SEARCH_RESULTS_PAGE AdvancedDcSetting = "OPTIMIZE_SEARCH_RESULTS_PAGE" + // AdvancedDcSetting_OPTIMIZE_LANDING_PAGE 优化落地页 + AdvancedDcSetting_OPTIMIZE_LANDING_PAGE AdvancedDcSetting = "OPTIMIZE_LANDING_PAGE" +) diff --git a/marketing-api/enum/promotion_status.go b/marketing-api/enum/promotion_status.go index a80f7e6d..c5f60475 100644 --- a/marketing-api/enum/promotion_status.go +++ b/marketing-api/enum/promotion_status.go @@ -52,6 +52,10 @@ const ( PromotionStatus_AWEME_ACCOUNT_DISABLED PromotionStatus = "AWEME_ACCOUNT_DISABLED" // PromotionStatus_AWEME_ANCHOR_DISABLED 锚点不可投 PromotionStatus_AWEME_ANCHOR_DISABLED PromotionStatus = "AWEME_ANCHOR_DISABLED" + // PromotionStatus_AWEME_ACCOUNT_OPTIMIZABLE 关联抖音号可优化 + PromotionStatus_AWEME_ACCOUNT_OPTIMIZABLE PromotionStatus = "AWEME_ACCOUNT_OPTIMIZABLE" + // PromotionStatus_AWEME_VIDEO_OPTIMIZABLE 关联抖音视频可优化 + PromotionStatus_AWEME_VIDEO_OPTIMIZABLE PromotionStatus = "AWEME_VIDEO_OPTIMIZABLE" // PromotionStatus_DISABLE_BY_QUOTA 已暂停(配额达限) PromotionStatus_DISABLE_BY_QUOTA PromotionStatus = "DISABLE_BY_QUOTA" // PromotionStatus_CREATE 新建 diff --git a/marketing-api/model/duoplus/order_list.go b/marketing-api/model/duoplus/order_list.go index cc61652a..66f35e37 100644 --- a/marketing-api/model/duoplus/order_list.go +++ b/marketing-api/model/duoplus/order_list.go @@ -18,6 +18,12 @@ type OrderListRequest struct { Page int `json:"page,omitempty"` // PageSize 页面大小,允许值:1- 100,默认值:10 PageSize int `json:"page_size,omitempty"` + // OrderByField 排序字段, 可选值: + // CREATE_TIME 创建时间(默认值),不传参数默认按此排序 + // ORDER_ID 订单id + OrderByField string `json:"order_by_field,omitempty"` + // OrderByType 排序方式, 可选值: + OrderByType enum.OrderType `json:"order_by_type,omitempty"` } // OrderListFilter 筛选条件 @@ -54,6 +60,12 @@ func (r OrderListRequest) Encode() string { if r.PageSize > 0 { values.Set("page_size", strconv.Itoa(r.PageSize)) } + if r.OrderByField != "" { + values.Set("order_by_field", r.OrderByField) + } + if r.OrderByType != "" { + values.Set("order_by_type", string(r.OrderByType)) + } ret := values.Encode() util.PutUrlValues(values) return ret diff --git a/marketing-api/model/v3/promotion/promotion.go b/marketing-api/model/v3/promotion/promotion.go index 24918b0c..37d57592 100644 --- a/marketing-api/model/v3/promotion/promotion.go +++ b/marketing-api/model/v3/promotion/promotion.go @@ -184,6 +184,15 @@ type PromotionMaterial struct { Ulink string `json:"ulink,omitempty"` // DynamicCreateiveSwitch 动态创意开关,允许值:ON开启(默认值),OFF关闭,当ad_type=SEARCH时有效 DynamicCreateiveSwitch string `json:"dynamic_creative_switch,omitempty"` + // AdvancedDcSettings 动态创意高级设置,仅搜索广告下可设置。注意: + // 仅当广告类型ad_type = SEARCH搜索广告,动态创意开关dynamic_creative_switch =ON时可传入,否则报错 + // 必须传入至少1个值,动态创意开关开启dynamic_creative_switch =ON时,此参数传空值或非允许值会报错 + // 当ad_type = SEARCH搜索广告、动态创意开关开启dynamic_creative_switch =ON时,不传入此参数表示默认开启2个优化项 + // 搜索周期稳投广告不支持设置此参数,传入不会生效 + // 允许值: + // OPTIMIZE_SEARCH_RESULTS_PAGE优化视频、图片、标题等搜索结果页内容 + // OPTIMIZE_LANDING_PAGE优化落地页 + AdvancedDcSettings []enum.AdvancedDcSetting `json:"advanced_dc_settings,omitempty"` // ProductInfo 产品信息 ProductInfo *ProductInfo `json:"product_info,omitempty"` // CallToActionButtons 行动号召文案