package entity // UnifiedTargeting 统一的定向条件 type UnifiedTargeting struct { // 地理定向 Countries []string `bson:"countries" json:"countries"` // 国家列表 Regions []string `bson:"regions" json:"regions"` // 地区列表 Cities []string `bson:"cities" json:"cities"` // 城市列表 PostalCodes []string `bson:"postalCodes" json:"postalCodes"` // 邮政编码列表 // 人口统计定向 AgeRange *UnifiedAgeRange `bson:"ageRange" json:"ageRange"` // 年龄范围 Gender []string `bson:"gender" json:"gender"` // 性别 Income []string `bson:"income" json:"income"` // 收入水平 Education []string `bson:"education" json:"education"` // 教育程度 Occupation []string `bson:"occupation" json:"occupation"` // 职业类型 // 兴趣定向 Interests []string `bson:"interests" json:"interests"` // 兴趣标签 Lifestyle []string `bson:"lifestyle" json:"lifestyle"` // 生活方式 // 行为定向 SearchHistory []string `bson:"searchHistory" json:"searchHistory"` // 搜索历史 BrowseHistory []string `bson:"browseHistory" json:"browseHistory"` // 浏览历史 PurchaseHistory []string `bson:"purchaseHistory" json:"purchaseHistory"` // 购买历史 AdInteractions []string `bson:"adInteractions" json:"adInteractions"` // 广告互动 Behaviors []string `bson:"behaviors" json:"behaviors"` // 行为标签 Segments []string `bson:"segments" json:"segments"` // 用户分群 // 上下文定向 Categories []string `bson:"categories" json:"categories"` // 内容分类 Keywords []string `bson:"keywords" json:"keywords"` // 关键词 Tags []string `bson:"tags" json:"tags"` // 标签 Sentiment string `bson:"sentiment" json:"sentiment"` // 情感倾向 ContentType string `bson:"contentType" json:"contentType"` // 内容类型 ContentRating string `bson:"contentRating" json:"contentRating"` // 内容评级 // 设备定向 DeviceTypes []string `bson:"deviceTypes" json:"deviceTypes"` // 设备类型 OS []string `bson:"os" json:"os"` // 操作系统 Browsers []string `bson:"browsers" json:"browsers"` // 浏览器 Carriers []string `bson:"carriers" json:"carriers"` // 运营商 ConnectionTypes []string `bson:"connectionTypes" json:"connectionTypes"` // 连接类型 // 时间定向 TimeSlots []UnifiedTimeSlot `bson:"timeSlots" json:"timeSlots"` // 时间段 DaysOfWeek []int `bson:"daysOfWeek" json:"daysOfWeek"` // 星期几 Dates []string `bson:"dates" json:"dates"` // 日期范围 Timezone string `bson:"timezone" json:"timezone"` // 时区 ExcludeHolidays bool `bson:"excludeHolidays" json:"excludeHolidays"` // 排除节假日 // 扩展定向条件 CustomTargeting map[string]interface{} `bson:"customTargeting" json:"customTargeting"` // 自定义定向 } // UnifiedAgeRange 统一的年龄范围 type UnifiedAgeRange struct { Min int `bson:"min" json:"min"` // 最小年龄 Max int `bson:"max" json:"max"` // 最大年龄 } // UnifiedTimeSlot 统一的时间段 type UnifiedTimeSlot struct { DayOfWeek int `bson:"dayOfWeek" json:"dayOfWeek"` // 星期几:0-6,0表示星期日 StartTime string `bson:"startTime" json:"startTime"` // 开始时间,格式:HH:mm EndTime string `bson:"endTime" json:"endTime"` // 结束时间,格式:HH:mm Timezone string `bson:"timezone" json:"timezone"` // 时区 }