Skip to content

Commit

Permalink
Merge branch 'release/v1.22.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Jan 16, 2024
2 parents f877f2a + d749b64 commit 45a1ace
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions marketing-api/enum/advanced_dc_setting.go
Original file line number Diff line number Diff line change
@@ -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"
)
4 changes: 4 additions & 0 deletions marketing-api/enum/promotion_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 新建
Expand Down
12 changes: 12 additions & 0 deletions marketing-api/model/duoplus/order_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 筛选条件
Expand Down Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions marketing-api/model/v3/promotion/promotion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 行动号召文案
Expand Down

0 comments on commit 45a1ace

Please sign in to comment.