PddAdApiUnitBidSyncRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddAdApiUnitBidSyncRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "adId")
  12. */
  13. private $adId;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItem>, "adUnitBids")
  16. */
  17. private $adUnitBids;
  18. /**
  19. * @JsonProperty(Integer, "bidReferenceType")
  20. */
  21. private $bidReferenceType;
  22. protected function setUserParams(&$params)
  23. {
  24. $this->setUserParam($params, "adId", $this->adId);
  25. $this->setUserParam($params, "adUnitBids", $this->adUnitBids);
  26. $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType);
  27. }
  28. public function getVersion()
  29. {
  30. return "V1";
  31. }
  32. public function getDataType()
  33. {
  34. return "JSON";
  35. }
  36. public function getType()
  37. {
  38. return "pdd.ad.api.unit.bid.sync";
  39. }
  40. public function setAdId($adId)
  41. {
  42. $this->adId = $adId;
  43. }
  44. public function setAdUnitBids($adUnitBids)
  45. {
  46. $this->adUnitBids = $adUnitBids;
  47. }
  48. public function setBidReferenceType($bidReferenceType)
  49. {
  50. $this->bidReferenceType = $bidReferenceType;
  51. }
  52. }
  53. class PddAdApiUnitBidSyncRequest_AdUnitBidsItem extends PopBaseJsonEntity
  54. {
  55. public function __construct()
  56. {
  57. }
  58. /**
  59. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO, "adTargetingVO")
  60. */
  61. private $adTargetingVO;
  62. /**
  63. * @JsonProperty(Long, "bidReferenceId")
  64. */
  65. private $bidReferenceId;
  66. /**
  67. * @JsonProperty(Long, "bidValue")
  68. */
  69. private $bidValue;
  70. /**
  71. * @JsonProperty(Long, "subBidReferenceId")
  72. */
  73. private $subBidReferenceId;
  74. public function setAdTargetingVO($adTargetingVO)
  75. {
  76. $this->adTargetingVO = $adTargetingVO;
  77. }
  78. public function setBidReferenceId($bidReferenceId)
  79. {
  80. $this->bidReferenceId = $bidReferenceId;
  81. }
  82. public function setBidValue($bidValue)
  83. {
  84. $this->bidValue = $bidValue;
  85. }
  86. public function setSubBidReferenceId($subBidReferenceId)
  87. {
  88. $this->subBidReferenceId = $subBidReferenceId;
  89. }
  90. }
  91. class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO extends PopBaseJsonEntity
  92. {
  93. public function __construct()
  94. {
  95. }
  96. /**
  97. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet, "adTargetingSet")
  98. */
  99. private $adTargetingSet;
  100. /**
  101. * @JsonProperty(String, "targetingName")
  102. */
  103. private $targetingName;
  104. public function setAdTargetingSet($adTargetingSet)
  105. {
  106. $this->adTargetingSet = $adTargetingSet;
  107. }
  108. public function setTargetingName($targetingName)
  109. {
  110. $this->targetingName = $targetingName;
  111. }
  112. }
  113. class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet extends PopBaseJsonEntity
  114. {
  115. public function __construct()
  116. {
  117. }
  118. /**
  119. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct, "areaStruct")
  120. */
  121. private $areaStruct;
  122. public function setAreaStruct($areaStruct)
  123. {
  124. $this->areaStruct = $areaStruct;
  125. }
  126. }
  127. class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct extends PopBaseJsonEntity
  128. {
  129. public function __construct()
  130. {
  131. }
  132. /**
  133. * @JsonProperty(List<Integer>, "areaIds")
  134. */
  135. private $areaIds;
  136. public function setAreaIds($areaIds)
  137. {
  138. $this->areaIds = $areaIds;
  139. }
  140. }