Documentation ¶
Overview ¶
优酷网盟 model
Index ¶
- type DeliveryList
- type YoukuDspDeliveryResourceMultigetAPIRequest
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName() string
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams() url.Values
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId() int64
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType() string
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType() string
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds() string
- func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId() int64
- func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId(_channelId int64) error
- func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType(_deliveryType string) error
- func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType(_deviceIdType string) error
- func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds(_deviceIds string) error
- func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId(_subChannelId int64) error
- type YoukuDspDeliveryResourceMultigetAPIResponse
- type YoukuDspDeliveryResourceMultigetAPIResponseModel
- type YoukuDspDeliveryResourceMultigetMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliveryList ¶
type DeliveryList struct { // 投放类型push或者feed DeliveryType string `json:"delivery_type,omitempty" xml:"delivery_type,omitempty"` // 渠道id ChannelId int64 `json:"channel_id,omitempty" xml:"channel_id,omitempty"` // 素材信息 Resource *YoukuDspDeliveryResourceMultigetMap `json:"resource,omitempty" xml:"resource,omitempty"` // 设备类型imei或者idfa DeviceIdType string `json:"device_id_type,omitempty" xml:"device_id_type,omitempty"` // 子渠道id SubChannelId int64 `json:"sub_channel_id,omitempty" xml:"sub_channel_id,omitempty"` // 设备id(md5加密) DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"` }
DeliveryList 结构体
type YoukuDspDeliveryResourceMultigetAPIRequest ¶ added in v1.2.0
type YoukuDspDeliveryResourceMultigetAPIRequest struct { model.Params // contains filtered or unexported fields }
YoukuDspDeliveryResourceMultigetAPIRequest
优酷实时批量获取可投放设备资源 API请求 youku.dsp.delivery.resource.multiget
优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取
func NewYoukuDspDeliveryResourceMultigetRequest ¶
func NewYoukuDspDeliveryResourceMultigetRequest() *YoukuDspDeliveryResourceMultigetAPIRequest
NewYoukuDspDeliveryResourceMultigetRequest 初始化YoukuDspDeliveryResourceMultigetAPIRequest对象
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId() int64
Get ChannelId Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType() string
Get DeliveryType Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType() string
Get DeviceIdType Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds() string
Get DeviceIds Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId() int64
Get SubChannelId Getter
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId(_channelId int64) error
Set is ChannelId Setter 渠道id
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType(_deliveryType string) error
Set is DeliveryType Setter 投放类型push或者feed
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType(_deviceIdType string) error
Set is DeviceIdType Setter 设备类型imei或者idfa
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds(_deviceIds string) error
Set is DeviceIds Setter 设备id串(md5加密),多个设备逗号隔开
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId(_subChannelId int64) error
Set is SubChannelId Setter 子渠道id
type YoukuDspDeliveryResourceMultigetAPIResponse ¶
type YoukuDspDeliveryResourceMultigetAPIResponse struct { model.CommonResponse YoukuDspDeliveryResourceMultigetAPIResponseModel }
YoukuDspDeliveryResourceMultigetAPIResponse
优酷实时批量获取可投放设备资源 API返回值 youku.dsp.delivery.resource.multiget
优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取
type YoukuDspDeliveryResourceMultigetAPIResponseModel ¶ added in v1.2.0
type YoukuDspDeliveryResourceMultigetAPIResponseModel struct { XMLName xml.Name `xml:"youku_dsp_delivery_resource_multiget_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 素材列表 Models []DeliveryList `json:"models,omitempty" xml:"models>delivery_list,omitempty"` // 错误码 MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` // 额外信息 ExtraInfo string `json:"extra_info,omitempty" xml:"extra_info,omitempty"` // 错误信息 MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` // 是否成功 SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` }
YoukuDspDeliveryResourceMultigetAPIResponseModel is 优酷实时批量获取可投放设备资源 成功返回结果
type YoukuDspDeliveryResourceMultigetMap ¶
type YoukuDspDeliveryResourceMultigetMap struct { // 图片json Imgs string `json:"imgs,omitempty" xml:"imgs,omitempty"` // 标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 描述 Text string `json:"text,omitempty" xml:"text,omitempty"` // 换端地址 DeeplinkUrl string `json:"deeplink_url,omitempty" xml:"deeplink_url,omitempty"` // 投放类型 Type string `json:"type,omitempty" xml:"type,omitempty"` // h5地址 DestinationUrl string `json:"destination_url,omitempty" xml:"destination_url,omitempty"` }
YoukuDspDeliveryResourceMultigetMap 结构体