shop-php/extend/taobao/request/TbkDgOptimusMaterialRequest.php

210 lines
3.9 KiB
PHP
Raw Normal View History

2023-10-10 14:54:50 +08:00
<?php
/**
* TOP API: taobao.tbk.dg.optimus.material request
*
* @author auto create
* @since 1.0, 2022.09.20
*/
class TbkDgOptimusMaterialRequest
{
/**
* mm_xxx_xxx_xxx的第三位
**/
private $adzoneId;
/**
* 内容专用-内容详情ID
**/
private $contentId;
/**
* 内容专用-内容渠道信息
**/
private $contentSource;
/**
* 智能匹配-设备号加密类型MD5类型为OAID时不传
**/
private $deviceEncrypt;
/**
* 智能匹配-设备号类型IMEI或者IDFA或者UTDIDUTDID不支持MD5加密或者OAID
**/
private $deviceType;
/**
* 智能匹配-设备号加密后的值MD5加密需32位小写类型为OAID时传原始OAID值
**/
private $deviceValue;
/**
* 选品库投放id
**/
private $favoritesId;
/**
* 商品ID用于相似商品推荐
**/
private $itemId;
/**
* 官方的物料Id(详细物料id见https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a)
**/
private $materialId;
/**
* 第几页默认1
**/
private $pageNo;
/**
* 页大小默认201~100
**/
private $pageSize;
private $apiParas = array();
public function setAdzoneId($adzoneId)
{
$this->adzoneId = $adzoneId;
$this->apiParas["adzone_id"] = $adzoneId;
}
public function getAdzoneId()
{
return $this->adzoneId;
}
public function setContentId($contentId)
{
$this->contentId = $contentId;
$this->apiParas["content_id"] = $contentId;
}
public function getContentId()
{
return $this->contentId;
}
public function setContentSource($contentSource)
{
$this->contentSource = $contentSource;
$this->apiParas["content_source"] = $contentSource;
}
public function getContentSource()
{
return $this->contentSource;
}
public function setDeviceEncrypt($deviceEncrypt)
{
$this->deviceEncrypt = $deviceEncrypt;
$this->apiParas["device_encrypt"] = $deviceEncrypt;
}
public function getDeviceEncrypt()
{
return $this->deviceEncrypt;
}
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
$this->apiParas["device_type"] = $deviceType;
}
public function getDeviceType()
{
return $this->deviceType;
}
public function setDeviceValue($deviceValue)
{
$this->deviceValue = $deviceValue;
$this->apiParas["device_value"] = $deviceValue;
}
public function getDeviceValue()
{
return $this->deviceValue;
}
public function setFavoritesId($favoritesId)
{
$this->favoritesId = $favoritesId;
$this->apiParas["favorites_id"] = $favoritesId;
}
public function getFavoritesId()
{
return $this->favoritesId;
}
public function setItemId($itemId)
{
$this->itemId = $itemId;
$this->apiParas["item_id"] = $itemId;
}
public function getItemId()
{
return $this->itemId;
}
public function setMaterialId($materialId)
{
$this->materialId = $materialId;
$this->apiParas["material_id"] = $materialId;
}
public function getMaterialId()
{
return $this->materialId;
}
public function setPageNo($pageNo)
{
$this->pageNo = $pageNo;
$this->apiParas["page_no"] = $pageNo;
}
public function getPageNo()
{
return $this->pageNo;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function getApiMethodName()
{
return "taobao.tbk.dg.optimus.material";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
RequestCheckUtil::checkNotNull($this->materialId,"materialId");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}