PddAdApiUnitCreativeUpdateSmartCreativeRequest.php 929 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 PddAdApiUnitCreativeUpdateSmartCreativeRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "text")
  12. */
  13. private $text;
  14. /**
  15. * @JsonProperty(Long, "unitCreativeId")
  16. */
  17. private $unitCreativeId;
  18. protected function setUserParams(&$params)
  19. {
  20. $this->setUserParam($params, "text", $this->text);
  21. $this->setUserParam($params, "unitCreativeId", $this->unitCreativeId);
  22. }
  23. public function getVersion()
  24. {
  25. return "V1";
  26. }
  27. public function getDataType()
  28. {
  29. return "JSON";
  30. }
  31. public function getType()
  32. {
  33. return "pdd.ad.api.unit.creative.update.smart.creative";
  34. }
  35. public function setText($text)
  36. {
  37. $this->text = $text;
  38. }
  39. public function setUnitCreativeId($unitCreativeId)
  40. {
  41. $this->unitCreativeId = $unitCreativeId;
  42. }
  43. }