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 }
优酷实时批量获取可投放设备资源 API请求 youku.dsp.delivery.resource.multiget
优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取
func NewYoukuDspDeliveryResourceMultigetRequest ¶
func NewYoukuDspDeliveryResourceMultigetRequest() *YoukuDspDeliveryResourceMultigetAPIRequest
初始化YoukuDspDeliveryResourceMultigetAPIRequest对象
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId() int64
ChannelId Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType() string
DeliveryType Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType() string
DeviceIdType Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds() string
DeviceIds Getter
func (YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId ¶ added in v1.2.0
func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId() int64
SubChannelId Getter
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId(_channelId int64) error
ChannelId Setter 渠道id
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType(_deliveryType string) error
DeliveryType Setter 投放类型push或者feed
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType(_deviceIdType string) error
DeviceIdType Setter 设备类型imei或者idfa
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds(_deviceIds string) error
DeviceIds Setter 设备id串(md5加密),多个设备逗号隔开
func (*YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId ¶ added in v1.2.0
func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId(_subChannelId int64) error
SubChannelId Setter 子渠道id
type YoukuDspDeliveryResourceMultigetAPIResponse ¶
type YoukuDspDeliveryResourceMultigetAPIResponse struct { model.CommonResponse YoukuDspDeliveryResourceMultigetAPIResponseModel }
优酷实时批量获取可投放设备资源 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"` }
优酷实时批量获取可投放设备资源 成功返回结果
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