PddAdApiUnitBidUpdateRequest.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 PddAdApiUnitBidUpdateRequest 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\PddAdApiUnitBidUpdateRequest_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.update";
  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 PddAdApiUnitBidUpdateRequest_AdUnitBidsItem extends PopBaseJsonEntity
  54. {
  55. public function __construct()
  56. {
  57. }
  58. /**
  59. * @JsonProperty(Long, "bidId")
  60. */
  61. private $bidId;
  62. /**
  63. * @JsonProperty(Long, "bidValue")
  64. */
  65. private $bidValue;
  66. public function setBidId($bidId)
  67. {
  68. $this->bidId = $bidId;
  69. }
  70. public function setBidValue($bidValue)
  71. {
  72. $this->bidValue = $bidValue;
  73. }
  74. }