TbkDgCpaActivityReportRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.dg.cpa.activity.report request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.10.21
  7. */
  8. class TbkDgCpaActivityReportRequest
  9. {
  10. /**
  11. * 日期(yyyyMMdd)
  12. **/
  13. private $bizDate;
  14. /**
  15. * CPA活动ID,详见https://www.yuque.com/docs/share/16905f3f-3a22-4e7c-b8c3-4d23791d42f7?#
  16. **/
  17. private $eventId;
  18. /**
  19. * 分页页数,从1开始
  20. **/
  21. private $pageNo;
  22. /**
  23. * 分页大小
  24. **/
  25. private $pageSize;
  26. /**
  27. * 媒体三段式id(如果传入pid则返回pid汇总数据,不传则返回member维度统计数据,pid和relationid不可同时传入)
  28. **/
  29. private $pid;
  30. /**
  31. * 数据类型:数据类型:1预估 2结算 (选择1可查询含当天实时预估统计的累计数据,选择2可查询最晚截止昨天结算的累计数据,具体逻辑以活动规则描述为准;)
  32. **/
  33. private $queryType;
  34. /**
  35. * 代理id(如果传入rid则返回rid统计数据,不传则返回member维度统计数据)
  36. **/
  37. private $relationId;
  38. private $apiParas = array();
  39. public function setBizDate($bizDate)
  40. {
  41. $this->bizDate = $bizDate;
  42. $this->apiParas["biz_date"] = $bizDate;
  43. }
  44. public function getBizDate()
  45. {
  46. return $this->bizDate;
  47. }
  48. public function setEventId($eventId)
  49. {
  50. $this->eventId = $eventId;
  51. $this->apiParas["event_id"] = $eventId;
  52. }
  53. public function getEventId()
  54. {
  55. return $this->eventId;
  56. }
  57. public function setPageNo($pageNo)
  58. {
  59. $this->pageNo = $pageNo;
  60. $this->apiParas["page_no"] = $pageNo;
  61. }
  62. public function getPageNo()
  63. {
  64. return $this->pageNo;
  65. }
  66. public function setPageSize($pageSize)
  67. {
  68. $this->pageSize = $pageSize;
  69. $this->apiParas["page_size"] = $pageSize;
  70. }
  71. public function getPageSize()
  72. {
  73. return $this->pageSize;
  74. }
  75. public function setPid($pid)
  76. {
  77. $this->pid = $pid;
  78. $this->apiParas["pid"] = $pid;
  79. }
  80. public function getPid()
  81. {
  82. return $this->pid;
  83. }
  84. public function setQueryType($queryType)
  85. {
  86. $this->queryType = $queryType;
  87. $this->apiParas["query_type"] = $queryType;
  88. }
  89. public function getQueryType()
  90. {
  91. return $this->queryType;
  92. }
  93. public function setRelationId($relationId)
  94. {
  95. $this->relationId = $relationId;
  96. $this->apiParas["relation_id"] = $relationId;
  97. }
  98. public function getRelationId()
  99. {
  100. return $this->relationId;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "taobao.tbk.dg.cpa.activity.report";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->bizDate,"bizDate");
  113. RequestCheckUtil::checkNotNull($this->eventId,"eventId");
  114. }
  115. public function putOtherTextParam($key, $value) {
  116. $this->apiParas[$key] = $value;
  117. $this->$key = $value;
  118. }
  119. }