AdGroup.java 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. package com.cloudcross.ssp.model;
  2. import java.util.Date;
  3. import java.util.List;
  4. import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
  5. /**
  6. * 投放管理中的投放管理表
  7. * @author chenyou
  8. *
  9. */
  10. public final class AdGroup implements ISelector{
  11. //投放id
  12. private Long id;
  13. //代理商id
  14. private Long agentId;
  15. //广告主id
  16. private Long advertiserId;
  17. //订单id
  18. private Long orderId;
  19. //活动id
  20. private Long campaignId;
  21. //运营商Id
  22. private Long operatorId;
  23. // 投放名称
  24. private String adGroupName;
  25. // 开始时间
  26. private Date startDate;
  27. // 结束时间
  28. private Date endDate;
  29. // 总预算
  30. private Double totalBudget;
  31. //投放模式
  32. private Integer mode;
  33. //单价
  34. private Double price;
  35. // 每日预算
  36. private Double dailyBudget;
  37. // 曝光总上限
  38. private Long maxImpression;
  39. // 点击总上限
  40. private Long maxClick;
  41. //转换总上限
  42. private Long maxConversion;
  43. // 每日曝光上限
  44. private Long dailyMaxImpression;
  45. // 每日点击上限
  46. private Long dailyMaxClick;
  47. // 每日转换上限
  48. private Long dailyMaxConversion;
  49. //单人曝光频次类型
  50. private Integer perImpressionType;
  51. //单人曝光频次
  52. private Long perImpression;
  53. //单人点击频次类型
  54. private Integer perClickType;
  55. //单人点击频次
  56. private Long perClick;
  57. //位置
  58. private String position;
  59. //点击找回
  60. private Integer retarget;
  61. //访客投放期
  62. private Long period;
  63. //状态
  64. private Integer status;
  65. //更新时间
  66. private Date updated;
  67. //这个活动的创意总数
  68. private Integer bannerNumber;
  69. //是否全客网站
  70. private Integer site;
  71. //操作系统 1-iOS,2-Android,3-WP,4-Symbian,5-MAC OS,6-Windows,7-other
  72. private String os;
  73. //广告位ID集合
  74. private List<Long> zoneIdList;
  75. //场景ID集合
  76. private List<Long> placeIdList;
  77. //媒体自定义分组ID集合
  78. private List<Long> wifigroupIdList;
  79. private String zoneId;
  80. private String place;
  81. private String placeName;
  82. private Integer priority;//优先级
  83. public Integer getPriority() {
  84. return priority;
  85. }
  86. public void setPriority(Integer priority) {
  87. this.priority = priority;
  88. }
  89. public String getZoneId() {
  90. return zoneId;
  91. }
  92. public void setZoneId(String zoneId) {
  93. this.zoneId = zoneId;
  94. }
  95. public String getPlace() {
  96. return place;
  97. }
  98. public void setPlace(String place) {
  99. this.place = place;
  100. }
  101. public String getPlaceName() {
  102. return placeName;
  103. }
  104. public void setPlaceName(String placeName) {
  105. this.placeName = placeName;
  106. }
  107. public List<Long> getZoneIdList() {
  108. return zoneIdList;
  109. }
  110. public void setZoneIdList(List<Long> zoneIdList) {
  111. this.zoneIdList = zoneIdList;
  112. }
  113. public List<Long> getPlaceIdList() {
  114. return placeIdList;
  115. }
  116. public void setPlaceIdList(List<Long> placeIdList) {
  117. this.placeIdList = placeIdList;
  118. }
  119. public List<Long> getWifigroupIdList() {
  120. return wifigroupIdList;
  121. }
  122. public void setWifigroupIdList(List<Long> wifigroupIdList) {
  123. this.wifigroupIdList = wifigroupIdList;
  124. }
  125. public Long getAgentId() {
  126. return agentId;
  127. }
  128. public void setAgentId(Long agentId) {
  129. this.agentId = agentId;
  130. }
  131. public Long getAdvertiserId() {
  132. return advertiserId;
  133. }
  134. public void setAdvertiserId(Long advertiserId) {
  135. this.advertiserId = advertiserId;
  136. }
  137. public Integer getSite() {
  138. return site;
  139. }
  140. public void setSite(Integer site) {
  141. this.site = site;
  142. }
  143. public Integer getMode() {
  144. return mode;
  145. }
  146. public void setMode(Integer mode) {
  147. this.mode = mode;
  148. }
  149. public Double getPrice() {
  150. return price;
  151. }
  152. public void setPrice(Double price) {
  153. this.price = price;
  154. }
  155. public String getPosition() {
  156. return position;
  157. }
  158. public void setPosition(String position) {
  159. this.position = position;
  160. }
  161. public Integer getRetarget() {
  162. return retarget;
  163. }
  164. public void setRetarget(Integer retarget) {
  165. this.retarget = retarget;
  166. }
  167. public Long getPeriod() {
  168. return period;
  169. }
  170. public void setPeriod(Long period) {
  171. this.period = period;
  172. }
  173. public Integer getBannerNumber() {
  174. return bannerNumber;
  175. }
  176. public void setBannerNumber(Integer bannerNumber) {
  177. this.bannerNumber = bannerNumber;
  178. }
  179. public Date getUpdated() {
  180. return updated;
  181. }
  182. public void setUpdated(Date updated) {
  183. this.updated = updated;
  184. }
  185. public Long getOperatorId() {
  186. return operatorId;
  187. }
  188. public void setOperatorId(Long operatorId) {
  189. this.operatorId = operatorId;
  190. }
  191. public Long getId() {
  192. return id;
  193. }
  194. public void setId(Long id) {
  195. this.id = id;
  196. }
  197. public Long getOrderId() {
  198. return orderId;
  199. }
  200. public void setOrderId(Long orderId) {
  201. this.orderId = orderId;
  202. }
  203. public Long getCampaignId() {
  204. return campaignId;
  205. }
  206. public void setCampaignId(Long campaignId) {
  207. this.campaignId = campaignId;
  208. }
  209. public String getAdGroupName() {
  210. return adGroupName;
  211. }
  212. public void setAdGroupName(String adGroupName) {
  213. this.adGroupName = adGroupName;
  214. }
  215. public Date getStartDate() {
  216. return startDate;
  217. }
  218. public void setStartDate(Date startDate) {
  219. this.startDate = startDate;
  220. }
  221. public Date getEndDate() {
  222. return endDate;
  223. }
  224. public void setEndDate(Date endDate) {
  225. this.endDate = endDate;
  226. }
  227. public Double getTotalBudget() {
  228. return totalBudget;
  229. }
  230. public void setTotalBudget(Double totalBudget) {
  231. this.totalBudget = totalBudget;
  232. }
  233. public Double getDailyBudget() {
  234. return dailyBudget;
  235. }
  236. public void setDailyBudget(Double dailyBudget) {
  237. this.dailyBudget = dailyBudget;
  238. }
  239. public Long getMaxImpression() {
  240. return maxImpression;
  241. }
  242. public void setMaxImpression(Long maxImpression) {
  243. this.maxImpression = maxImpression;
  244. }
  245. public Long getMaxClick() {
  246. return maxClick;
  247. }
  248. public void setMaxClick(Long maxClick) {
  249. this.maxClick = maxClick;
  250. }
  251. public Long getMaxConversion() {
  252. return maxConversion;
  253. }
  254. public void setMaxConversion(Long maxConversion) {
  255. this.maxConversion = maxConversion;
  256. }
  257. public Long getDailyMaxImpression() {
  258. return dailyMaxImpression;
  259. }
  260. public void setDailyMaxImpression(Long dailyMaxImpression) {
  261. this.dailyMaxImpression = dailyMaxImpression;
  262. }
  263. public Long getDailyMaxClick() {
  264. return dailyMaxClick;
  265. }
  266. public void setDailyMaxClick(Long dailyMaxClick) {
  267. this.dailyMaxClick = dailyMaxClick;
  268. }
  269. public Long getDailyMaxConversion() {
  270. return dailyMaxConversion;
  271. }
  272. public void setDailyMaxConversion(Long dailyMaxConversion) {
  273. this.dailyMaxConversion = dailyMaxConversion;
  274. }
  275. public Integer getPerImpressionType() {
  276. return perImpressionType;
  277. }
  278. public void setPerImpressionType(Integer perImpressionType) {
  279. this.perImpressionType = perImpressionType;
  280. }
  281. public Long getPerImpression() {
  282. return perImpression;
  283. }
  284. public void setPerImpression(Long perImpression) {
  285. this.perImpression = perImpression;
  286. }
  287. public Integer getPerClickType() {
  288. return perClickType;
  289. }
  290. public void setPerClickType(Integer perClickType) {
  291. this.perClickType = perClickType;
  292. }
  293. public Long getPerClick() {
  294. return perClick;
  295. }
  296. public void setPerClick(Long perClick) {
  297. this.perClick = perClick;
  298. }
  299. public Integer getStatus() {
  300. return status;
  301. }
  302. public void setStatus(Integer status) {
  303. this.status = status;
  304. }
  305. public String getOs() {
  306. return os;
  307. }
  308. public void setOs(String os) {
  309. this.os = os;
  310. }
  311. @Override
  312. public String toString() {
  313. return "AdGroup [id=" + id + ", agentId=" + agentId + ", advertiserId="
  314. + advertiserId + ", orderId=" + orderId + ", campaignId="
  315. + campaignId + ", operatorId=" + operatorId + ", adGroupName="
  316. + adGroupName + ", startDate=" + startDate + ", endDate="
  317. + endDate + ", totalBudget=" + totalBudget + ", mode=" + mode
  318. + ", price=" + price + ", dailyBudget=" + dailyBudget
  319. + ", maxImpression=" + maxImpression + ", maxClick=" + maxClick
  320. + ", maxConversion=" + maxConversion + ", dailyMaxImpression="
  321. + dailyMaxImpression + ", dailyMaxClick=" + dailyMaxClick
  322. + ", dailyMaxConversion=" + dailyMaxConversion
  323. + ", perImpressionType=" + perImpressionType
  324. + ", perImpression=" + perImpression + ", perClickType="
  325. + perClickType + ", perClick=" + perClick + ", position="
  326. + position + ", retarget=" + retarget + ", period=" + period
  327. + ", status=" + status + ", updated=" + updated
  328. + ", bannerNumber=" + bannerNumber + ", site=" + site + ", os="
  329. + os + ", zoneIdList=" + zoneIdList + ", placeIdList="
  330. + placeIdList + ", wifigroupIdList=" + wifigroupIdList
  331. + ", zoneId=" + zoneId + ", place=" + place + ", placeName="
  332. + placeName + ", priority=" + priority + "]";
  333. }
  334. @Override
  335. public String getLabel() {
  336. return this.adGroupName;
  337. }
  338. @Override
  339. public String getValue() {
  340. return String.valueOf(this.id);
  341. }
  342. }