Skip to content

Commit

Permalink
Merge branch 'v1.9.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Dec 9, 2022
2 parents cdf5569 + a67ce44 commit c08d5b6
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18

- name: Build
run: go build -v ./...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
15 changes: 15 additions & 0 deletions marketing-api/enum/anchor_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package enum

// AnchorType 锚点类型
type AnchorType string

const (
// AnchorType_APP_GAME 应用下载-游戏
AnchorType_APP_GAME AnchorType = "APP_GAME"
// AnchorType_APP_INTERNET_SERVICE 应用下载-网服
AnchorType_APP_INTERNET_SERVICE AnchorType = "APP_INTERNET_SERVICE"
// AnchorType_APP_SHOP 应用下载-电商
AnchorType_APP_SHOP AnchorType = "APP_SHOP"
// AnchorType_ONLINE_SUBSCRIBE 高级在线预约
AnchorType_ONLINE_SUBSCRIBE AnchorType = "ONLINE_SUBSCRIBE"
)
17 changes: 15 additions & 2 deletions marketing-api/model/creative/ad_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type AdData struct {
ExternalURL string `json:"external_url,omitempty"`
// ExternalUrlParams 落地页检测参数
ExternalUrlParams *string `json:"external_url_params,omitempty"`
// IsCommentDisabled 是否关闭评论,0为开启,1为关闭,默认值:0; 允许值: 0, 1
IsCommentDisabled *int `json:"is_comment_disabled,omitempty"`
// IsCommentDisable 是否关闭评论,0为开启,1为关闭,默认值:0; 允许值: 0, 1
IsCommentDisable *int `json:"is_comment_disable,omitempty"`
// AdDownloadStatus 允许客户端下载视频功能,0为开启,即允许客户端下载视频;1为关闭,即不允许客户端下载视频。默认不传值,表示允许客户端下载视频。关闭客户端下载视频功能仅对本地上传的视频有效。
AdDownloadStatus *int `json:"ad_download_status,omitempty"`
// PriorityTrail 是否优先调起试玩。当推广目的为应用推广且使用搭配试玩素材时可以开启该功能。允许值:ON开启,OFF关闭
Expand All @@ -49,6 +49,19 @@ type AdData struct {
OpenURL string `json:"open_url,omitempty"`
// MiniProgramInfo 字节小程序信息
MiniProgramInfo *MiniProgramInfo `json:"mini_program_info,omitempty"`
// AnchorRelatedType 原生锚点启用类型,允许值:不启用OFF,自动生成AUTO,手动选择SELECT
// 默认值为OFF
// 自动生成AUTO仅应用推广目的下时支持
AnchorRelatedType string `json:"anchor_related_type,omitempty"`
// AnchorType 锚点类型,允许值:
// - 应用下载-游戏:APP_GAME
// - 应用下载-网服:APP_INTERNET_SERVICE
// - 应用下载-电商:APP_SHOP
// - 高级在线预约:ONLINE_SUBSCRIBE
// 当 anchor_related_type = SELECT时必填
AnchorType enum.AnchorType `json:"anchor_type,omitempty"`
// AnchorID 原生锚点id,当 anchor_related_type = SELECT时必填,可从【获取账户下原生锚点】接口中获取
AnchorID string `json:"anchor_id,omitempty"`
}

// SupplementInfo 云游戏列表
Expand Down
4 changes: 4 additions & 0 deletions marketing-api/model/creative/creative_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ type CreativeInfo struct {
SubTitleMaterial *TitleMaterial `json:"sub_title_material,omitempty"`
// PlayableMaterial 基础试玩素材,image_mode为基础试玩素材时使用,不支持和image_materials同时传入
PlayableMaterial *PlayableMaterial `json:"playable_material,omitempty"`
// InteractiveMaterial 直出互动素材信息
InteractiveMaterial *InteractiveMaterial `json:"interactive_material,omitempty"`
// CompnentMaterials 组件信息,数组传入最大长度2,每种类型(基础/附加组件)最多支持1个; 附加组件:选择磁贴、投票磁贴、图片磁贴、电商磁贴、优惠券磁贴、游戏礼包码; 基础组件:推广卡片
ComponentMaterials []ComponentMaterial `json:"component_materials,omitempty"`
// AbstractMaterials 摘要素材,使用标签摘要时必须要传入3个;使用搜索广告时必传
AbstractMaterials []AbstractMaterial `json:"abstract_materials,omitempty"`
// DecorationMaterial 家装卡券素材
DecorationMaterial *DecorationMaterial `json:"decoration_material,omitempty"`
// DerivePosterCid 是否将视频的封面和标题同步到图片创意。视频素材可填写。在创建完视频创意后,在计划下同步新建图片创意,允许值:0(不开启),1(开启)
DerivePosterCid *int `json:"derive_poster_cid,omitempty"`
// ThirdPartyID 创意自定义参数,例如开发者可设定此参数为创意打标签,用于区分使用的素材
Expand Down
11 changes: 11 additions & 0 deletions marketing-api/model/creative/decoration_material.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package creative

import "github.com/bububa/oceanengine/marketing-api/enum"

// DecorationMaterial 家装卡券素材
type DecorationMaterial struct {
// ActivityID 活动ID
ActivityID string `json:"activity_id,omitempty"`
// ImageMode 素材类型
ImageMode enum.ImageMode `json:"image_mode,omitempty"`
}
7 changes: 7 additions & 0 deletions marketing-api/model/creative/interactive_material.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package creative

// InteractiveMaterial 直出互动素材信息
type InteractiveMaterial struct {
// PlayableID 直出互动素材id
PlayableID uint64 `json:"playable_id,omitempty"`
}

0 comments on commit c08d5b6

Please sign in to comment.