unit

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package unit 广告单元相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrowdPackage

type CrowdPackage struct {
	// Value 人群包id
	Value string `json:"value,omitempty"`
	// Name 人群包名称
	Name string `json:"name,omitempty"`
	// Type 人群包类型
	Type string `json:"type,omitempty"`
}

CrowdPackage 人群包

type CrowdTarget

type CrowdTarget struct {
	// CrowdPkg 人群包列表
	CrowdPkg []CrowdPackage `json:"crowd_package,omitempty"`
}

CrowdTarget 人群包列表

type CustomizedDendelionCrowd

type CustomizedDendelionCrowd struct {
	// ActionType 行为类型:imp,read
	ActionType enum.CrowdActionType `json:"action_type,omitempty"`
	// TimePeriod 时间周期,30,90
	TimePeroid int `json:"time_period,omitempty"`
	// CrowdID 蒲公英定制人群包Id
	CrowdID uint64 `json:"crowd_id,omitempty"`
	// CrowdName 蒲公英定制人群包名称
	CrowdName string `json:"crowd_name,omitempty"`
	// NotIDList 笔记ids
	NoteIDList []string `json:"note_id_list,omitempty"`
	// Channels 流量渠道:ad/nature
	Channels []string `json:"channels,omitempty"`
}

type DendelionCrowd

type DendelionCrowd struct {
	NormalDendelionCrowdList     []NormalDendelionCrowd     `json:"normal_dandelion_crowd_list,omitempty"`
	CustomizedDendelionCrowdList []CustomizedDendelionCrowd `json:"customized_dandelion_crowd_List,omitempty"`
}

DendelionCrowd 蒲公英人群

type EcBehaviorTarget

type EcBehaviorTarget struct{}

EcBehaviorTarget 电商行为人群

type IndustryInterestTarget

type IndustryInterestTarget struct {
	// ContentInterest 内容兴趣
	ContentInterest []model.CodeNamePair `json:"content_interest,omitempty"`
	// ShoppingInterest 购物兴趣
	ShoppingInterest []model.CodeNamePair `json:"shopping_interest,omitempty"`
}

IndustryInterestTarget 行业兴趣

type ItemNoteConfig

type ItemNoteConfig struct {
	// ItemID 商品id
	ItemID string `json:"item_id,omitempty"`
	// NoteIDs 绑定的笔记id
	NoteIDs []string `json:"note_ids,omitempty"`
}

ItemNoteConfig 单元标的信息

type KeywordWithBid

type KeywordWithBid struct {
	// Keyword 关键词
	Keyword string `json:"keyword,omitempty"`
	// Bid 关键词出价
	Bid int64 `json:"bid,omitempty"`
	// KeywordSource 关键词来源
	// 2:旧通道来源
	// 11:笔记id通道
	// 14:笔记行业通道
	// 15:笔记类目通道
	// 16:笔记图模型通道
	// 18:笔记id-v2通道
	// 20:以词推词核心term通道
	// 21:以词推词queryRewrite通道
	// 25:以词推词ES通道
	// 31:商品id通道
	// 32:商品spu类目通道
	// 35:商品类目通道
	// 36:商品行业通道
	// 50:表单默认通道
	// 51:表单行业通道
	// 57:表单pageId通道
	// 102:在线向量召回通道
	// 103:高相关性通道
	// 110:智投话题通道
	// 113:基础词包通道
	// 120:智投默认通道
	// 131:智投swing通道
	// 211:抢赛道通道
	KeywordSource int `json:"keyword_source,omitempty"`
	// PhraseMatchType 匹配方式
	// 0:精确匹配
	// 1:短语匹配
	// 2:智能匹配
	PhraseMatchType enum.PhraseMatchType `json:"phrase_match_type,omitempty"`
	// FeedBid 搜索追投出价
	FeedBid int64 `json:"feed_bid,omitempty"`
}

KeywordWithBid 选词出价

type ListRequest

type ListRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CampaignID 广告计划id
	CampaignID uint64 `json:"campaign_id,omitempty"`
	// UnitIDs 单元id,不超过10个
	UnitIDs []uint64 `json:"unit_ids,omitempty"`
	// Status 投放状态:1:投放中2:暂停
	Status int `json:"status,omitempty"`
	// UnitName 单元名称
	UnitName string `json:"unit_name,omitempty"`
	// StartDate 创建单元开始时间
	StartDate string `json:"start_date,omitempty"`
	// EndDate 创建单元结束时间
	EndDate string `json:"end_date,omitempty"`
	// Page 请求的页码数,默认1
	Page int `json:"page,omitempty"`
	// PageSize 请求的每页行数,默认20
	PageSize int `json:"page_size,omitempty"`
}

ListRequest 获取单元列表 API Request

func (ListRequest) Encode

func (r ListRequest) Encode() []byte

Encode implement PostRequest interface

type ListResponse

type ListResponse struct {
	model.BaseResponse
	Data *ListResult `json:"data,omitempty"`
}

ListResponse 获取单元列表 API Response

type ListResult

type ListResult struct {
	// TotalCount 总数
	TotalCount int `json:"total_count,omitempty"`
	// UnitInfos 单元信息
	UnitInfos []Unit `json:"unit_infos,omitempty"`
}

type LiveRoomActiveTarget

type LiveRoomActiveTarget struct{}

LiveRoomActiveTarget 直播间活跃人群

type LiveStreamingFanTarget

type LiveStreamingFanTarget struct{}

LiveStreamingFanTarget 直播人群

type NormalDendelionCrowd

type NormalDendelionCrowd struct {
	// ActionType 行为类型:imp,read
	ActionType enum.CrowdActionType `json:"action_type,omitempty"`
	// TimePeriod 时间周期,30,90
	TimePeroid int `json:"time_period,omitempty"`
	// BrandUserID 品牌用户Id
	BrandUserID string `json:"brand_user_id,omitempty"`
}

type RecommendTarget

type RecommendTarget struct {
	// HighPotential 高潜词包
	HighPotential []string `json:"high_potential,omitempty"`
	// InterestHighPotential 关键词兴趣-高潜词包
	InterestHighPotential []string `json:"interest_high_potential,omitempty"`
}

RecommendTarget 推荐定向

type SpuNoteConfig

type SpuNoteConfig struct {
	// SpuID spuid
	SpuID string `json:"spu_id,omitempty"`
	// NoteIDs 绑定的笔记id
	NoteIDs []string `json:"note_ids,omitempty"`
}

SpuNoteConfig spu&笔记标的信息

type TargetConfig

type TargetConfig struct {
	// TargetGender 定向性别"0":男"1":女"all":全部
	TargetGender enum.TargetGender `json:"target_gender,omitempty"`
	// TargetAge 定向年龄"18-22""23-27""28-32""32-100""all"
	TargetAge string `json:"target_age,omitempty"`
	// TargetDevice 定向设备"ios""android""all"
	TargetDevice enum.TargetDevice `json:"target_device,omitempty"`
	// TargetCity 城市定向通过/get_available_target_info接口获取例如"北京#天津#衡阳"城市名称以#分割,all 代表全部省市
	TargetCity string `json:"target_city,omitempty"`
	// IndustryInterestTarget 行业兴趣
	IndustryInterestTarget *IndustryInterestTarget `json:"industry_interest_target,omitempty"`
	// CrowdTarget 人群包
	CrowdTarget *CrowdTarget `json:"crowd_target,omitempty"`
	// Keywords 关键词定向["口红","化妆"]
	Keywords []string `json:"keywords,omitempty"`
	// Recommend 推荐定向
	Recommend *RecommendTarget `json:"recommend_target,omitempty"`
	// DendelionCrowd 蒲公英人群
	DendelionCrowd *DendelionCrowd `json:"dendelion_crowd,omitempty"`
	// InterestKeywords 关键词兴趣定向,["口红","化妆"]
	InterestKeywords []string `json:"interest_keywords,omitempty"`
	// IntelligentExpension 智能扩量0:关闭1:开启
	IntelligentExpension int `json:"intelligent_expension,omitempty"`
	// HaveReverseBloggerFanTarget 是否选择反选博主粉丝人群
	HaveReverseBloggerFanTarget bool `json:"have_reverse_blogger_fan_target,omitempty"`
	// HaveReverseBloggerPurchasedTarget 是否选择反选博主购买人群
	HaveReverseBloggerPurchasedTarget bool `json:"have_reverse_blogger_purchased_target,omitempty"`
	// HaveBrandRecognitionGroup 是否选择本品牌认知人群
	HaveBrandRecognitionGroup bool `json:"have_brand_recognition_group,omitempty"`
	// HaveCategoryInterestGroup 是否选择行业种草人群
	HaveCategoryInterestGroup bool `json:"have_category_interest_group,omitempty"`
	// LiveStreamingFanTarget 直播人群
	LiveStreamingFanTarget *LiveStreamingFanTarget `json:"live_streaming_fan_target,omitempty"`
	// LiveRoomActiveTarget 直播间活跃人群
	LiveRoomActiveTarget *LiveRoomActiveTarget `json:"live_room_active_target,omitempty"`
	// EcBehaviorTarget 电商行为人群
	EcBehaviorTarget []EcBehaviorTarget `json:"ec_behavior_target,omitempty"`
}

TargetConfig 定向信息

type Unit

type Unit struct {
	// ID 单元id
	ID uint64 `json:"id,omitempty"`
	// CampaignID 计划id
	CampaignID uint64 `json:"campaign_id,omitempty"`
	// Name 单元名称
	Name string `json:"name,omitempty"`
	// Enable 投放状态:0:暂停1:投放中
	Enable int `json:"enable,omitempty"`
	// EventBid 出价,单位(分)
	EventBid int64 `json:"event_bid,omitempty"`
	// TargetType 定向类型1-通投,2-智能定向,3-高级定向
	TargetType enum.UnitTargetType `json:"target_type,omitempty"`
	// ItemIDs 商品ID
	ItemIDs []string `json:"item_ids,omitempty"`
	// NoteIDs 笔记ID
	NoteIDs []string `json:"note_ids,omitempty"`
	// LiveUserID 直播用户ID
	LiveUserID string `json:"live_user_id,omitempty"`
	// PageID 落地页ID
	PageID string `json:"page_id,omitempty"`
	// LandingPageURL 	落地页Url
	LandingPageURL string `json:"landing_page_url,omitempty"`
	// UnitExternalPageURL 外链Url
	UnitExternalPageURL string `json:"unit_external_page_url,omitempty"`
	// LandingPageType 落地页链接类型:1-表单,2-外跳链接,0-默认值,无实际意义
	LandingPageType enum.LandingPageType `json:"landing_page_type,omitempty"`
	// TargetPosition 抢占资源1-首位,3-第三位,0-不限位置
	TargetPosition int `json:"target_position,omitempty"`
	// TargetGoal 抢占目标1-点击抢占市场份额,0-默认值,无实际意义
	TargetGoal int `json:"target_goal,omitempty"`
	// WordTagName 词包名称
	WordTagName string `json:"word_tag_name,omitempty"`
	// ProportionGoal 占比目标
	ProportionGoal float64 `json:"proportion_goal,omitempty"`
	// BusinessTreeName 推广业务信息示例:生活服务>婚纱摄影;美妆个护;母婴>母婴食品>奶粉
	BusinessTreeName string `json:"business_tree_name,omitempty"`
	// UnitLandingPageSpec 落地页表单描述
	UnitLandingPageSpec []string `json:"unit_landing_page_spec,omitempty"`
	// KeywordTargetPeriod 关键词定向行为周期,单位天,枚举包括 3,7,15,30
	KeywordTargetPeriod int `json:"keyword_target_period,omitempty"`
	// KeywordTargetAction 关键词定向行为1:搜索,2:互动,3:阅读
	KeywordTargetAction []enum.KeywordTargetAction `json:"keyword_target_action,omitempty"`
	// SubstitutedUserID 代投账号b的userId
	SubstitutedUserID string `json:"substituted_user_id,omitempty"`
	// CreateTime 单元创建时间
	CreateTime string `json:"create_time,omitempty"`
	// UpdateTime 单元修改时间
	UpdateTime string `json:"update_time,omitempty"`
	// ItemNoteInfo 单元标的信息
	ItemNoteInfo []ItemNoteConfig `json:"item_note_info,omitempty"`
	// SpuNoteInfo spu&笔记标的信息
	SpuNoteInfo []SpuNoteConfig `json:"spu_note_info,omitempty"`
	// TargetConfig 定向信息
	TargetConfig *TargetConfig `json:"target_config,omitempty"`
	// KeywordGenType 单元选词方式: -1:无意义默认值 0:手动选词 1:智能拓词 2:手动+智能
	KeywordGenType enum.KeywordGenType `json:"keyword_gen_type,omitempty"`
	// KeywordWithBid 选词出价
	KeywordWithBid []KeywordWithBid `json:"keyword_with_bid,omitempty"`
}

Unit 广告单元

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL