AdGroup.java 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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. public String getZoneId() {
  83. return zoneId;
  84. }
  85. public void setZoneId(String zoneId) {
  86. this.zoneId = zoneId;
  87. }
  88. public String getPlace() {
  89. return place;
  90. }
  91. public void setPlace(String place) {
  92. this.place = place;
  93. }
  94. public String getPlaceName() {
  95. return placeName;
  96. }
  97. public void setPlaceName(String placeName) {
  98. this.placeName = placeName;
  99. }
  100. public List<Long> getZoneIdList() {
  101. return zoneIdList;
  102. }
  103. public void setZoneIdList(List<Long> zoneIdList) {
  104. this.zoneIdList = zoneIdList;
  105. }
  106. public List<Long> getPlaceIdList() {
  107. return placeIdList;
  108. }
  109. public void setPlaceIdList(List<Long> placeIdList) {
  110. this.placeIdList = placeIdList;
  111. }
  112. public List<Long> getWifigroupIdList() {
  113. return wifigroupIdList;
  114. }
  115. public void setWifigroupIdList(List<Long> wifigroupIdList) {
  116. this.wifigroupIdList = wifigroupIdList;
  117. }
  118. public Long getAgentId() {
  119. return agentId;
  120. }
  121. public void setAgentId(Long agentId) {
  122. this.agentId = agentId;
  123. }
  124. public Long getAdvertiserId() {
  125. return advertiserId;
  126. }
  127. public void setAdvertiserId(Long advertiserId) {
  128. this.advertiserId = advertiserId;
  129. }
  130. public Integer getSite() {
  131. return site;
  132. }
  133. public void setSite(Integer site) {
  134. this.site = site;
  135. }
  136. public Integer getMode() {
  137. return mode;
  138. }
  139. public void setMode(Integer mode) {
  140. this.mode = mode;
  141. }
  142. public Double getPrice() {
  143. return price;
  144. }
  145. public void setPrice(Double price) {
  146. this.price = price;
  147. }
  148. public String getPosition() {
  149. return position;
  150. }
  151. public void setPosition(String position) {
  152. this.position = position;
  153. }
  154. public Integer getRetarget() {
  155. return retarget;
  156. }
  157. public void setRetarget(Integer retarget) {
  158. this.retarget = retarget;
  159. }
  160. public Long getPeriod() {
  161. return period;
  162. }
  163. public void setPeriod(Long period) {
  164. this.period = period;
  165. }
  166. public Integer getBannerNumber() {
  167. return bannerNumber;
  168. }
  169. public void setBannerNumber(Integer bannerNumber) {
  170. this.bannerNumber = bannerNumber;
  171. }
  172. public Date getUpdated() {
  173. return updated;
  174. }
  175. public void setUpdated(Date updated) {
  176. this.updated = updated;
  177. }
  178. public Long getOperatorId() {
  179. return operatorId;
  180. }
  181. public void setOperatorId(Long operatorId) {
  182. this.operatorId = operatorId;
  183. }
  184. public Long getId() {
  185. return id;
  186. }
  187. public void setId(Long id) {
  188. this.id = id;
  189. }
  190. public Long getOrderId() {
  191. return orderId;
  192. }
  193. public void setOrderId(Long orderId) {
  194. this.orderId = orderId;
  195. }
  196. public Long getCampaignId() {
  197. return campaignId;
  198. }
  199. public void setCampaignId(Long campaignId) {
  200. this.campaignId = campaignId;
  201. }
  202. public String getAdGroupName() {
  203. return adGroupName;
  204. }
  205. public void setAdGroupName(String adGroupName) {
  206. this.adGroupName = adGroupName;
  207. }
  208. public Date getStartDate() {
  209. return startDate;
  210. }
  211. public void setStartDate(Date startDate) {
  212. this.startDate = startDate;
  213. }
  214. public Date getEndDate() {
  215. return endDate;
  216. }
  217. public void setEndDate(Date endDate) {
  218. this.endDate = endDate;
  219. }
  220. public Double getTotalBudget() {
  221. return totalBudget;
  222. }
  223. public void setTotalBudget(Double totalBudget) {
  224. this.totalBudget = totalBudget;
  225. }
  226. public Double getDailyBudget() {
  227. return dailyBudget;
  228. }
  229. public void setDailyBudget(Double dailyBudget) {
  230. this.dailyBudget = dailyBudget;
  231. }
  232. public Long getMaxImpression() {
  233. return maxImpression;
  234. }
  235. public void setMaxImpression(Long maxImpression) {
  236. this.maxImpression = maxImpression;
  237. }
  238. public Long getMaxClick() {
  239. return maxClick;
  240. }
  241. public void setMaxClick(Long maxClick) {
  242. this.maxClick = maxClick;
  243. }
  244. public Long getMaxConversion() {
  245. return maxConversion;
  246. }
  247. public void setMaxConversion(Long maxConversion) {
  248. this.maxConversion = maxConversion;
  249. }
  250. public Long getDailyMaxImpression() {
  251. return dailyMaxImpression;
  252. }
  253. public void setDailyMaxImpression(Long dailyMaxImpression) {
  254. this.dailyMaxImpression = dailyMaxImpression;
  255. }
  256. public Long getDailyMaxClick() {
  257. return dailyMaxClick;
  258. }
  259. public void setDailyMaxClick(Long dailyMaxClick) {
  260. this.dailyMaxClick = dailyMaxClick;
  261. }
  262. public Long getDailyMaxConversion() {
  263. return dailyMaxConversion;
  264. }
  265. public void setDailyMaxConversion(Long dailyMaxConversion) {
  266. this.dailyMaxConversion = dailyMaxConversion;
  267. }
  268. public Integer getPerImpressionType() {
  269. return perImpressionType;
  270. }
  271. public void setPerImpressionType(Integer perImpressionType) {
  272. this.perImpressionType = perImpressionType;
  273. }
  274. public Long getPerImpression() {
  275. return perImpression;
  276. }
  277. public void setPerImpression(Long perImpression) {
  278. this.perImpression = perImpression;
  279. }
  280. public Integer getPerClickType() {
  281. return perClickType;
  282. }
  283. public void setPerClickType(Integer perClickType) {
  284. this.perClickType = perClickType;
  285. }
  286. public Long getPerClick() {
  287. return perClick;
  288. }
  289. public void setPerClick(Long perClick) {
  290. this.perClick = perClick;
  291. }
  292. public Integer getStatus() {
  293. return status;
  294. }
  295. public void setStatus(Integer status) {
  296. this.status = status;
  297. }
  298. public String getOs() {
  299. return os;
  300. }
  301. public void setOs(String os) {
  302. this.os = os;
  303. }
  304. @Override
  305. public String toString() {
  306. return "AdGroup [id=" + id + ", agentId=" + agentId + ", advertiserId="
  307. + advertiserId + ", orderId=" + orderId + ", campaignId="
  308. + campaignId + ", operatorId=" + operatorId + ", adGroupName="
  309. + adGroupName + ", startDate=" + startDate + ", endDate="
  310. + endDate + ", totalBudget=" + totalBudget + ", mode=" + mode
  311. + ", price=" + price + ", dailyBudget=" + dailyBudget
  312. + ", maxImpression=" + maxImpression + ", maxClick=" + maxClick
  313. + ", maxConversion=" + maxConversion + ", dailyMaxImpression="
  314. + dailyMaxImpression + ", dailyMaxClick=" + dailyMaxClick
  315. + ", dailyMaxConversion=" + dailyMaxConversion
  316. + ", perImpressionType=" + perImpressionType
  317. + ", perImpression=" + perImpression + ", perClickType="
  318. + perClickType + ", perClick=" + perClick + ", position="
  319. + position + ", retarget=" + retarget + ", period=" + period
  320. + ", status=" + status + ", updated=" + updated
  321. + ", bannerNumber=" + bannerNumber + ", site=" + site + ", os="
  322. + os + "]";
  323. }
  324. @Override
  325. public String getLabel() {
  326. return this.adGroupName;
  327. }
  328. @Override
  329. public String getValue() {
  330. return String.valueOf(this.id);
  331. }
  332. }