youkudsp

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 YoukuDspDeliveryResourceMultigetAPIResponse

type YoukuDspDeliveryResourceMultigetAPIResponse struct {
	model.CommonResponse
	YoukuDspDeliveryResourceMultigetResponse
}

优酷实时批量获取可投放设备资源 API返回值 youku.dsp.delivery.resource.multiget

优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取

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

type YoukuDspDeliveryResourceMultigetRequest

type YoukuDspDeliveryResourceMultigetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

优酷实时批量获取可投放设备资源 API请求 youku.dsp.delivery.resource.multiget

优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取

func NewYoukuDspDeliveryResourceMultigetRequest

func NewYoukuDspDeliveryResourceMultigetRequest() *YoukuDspDeliveryResourceMultigetRequest

初始化YoukuDspDeliveryResourceMultigetRequest对象

func (YoukuDspDeliveryResourceMultigetRequest) GetApiMethodName

func (r YoukuDspDeliveryResourceMultigetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuDspDeliveryResourceMultigetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (YoukuDspDeliveryResourceMultigetRequest) GetChannelId

ChannelId Getter

func (YoukuDspDeliveryResourceMultigetRequest) GetDeliveryType

func (r YoukuDspDeliveryResourceMultigetRequest) GetDeliveryType() string

DeliveryType Getter

func (YoukuDspDeliveryResourceMultigetRequest) GetDeviceIdType

func (r YoukuDspDeliveryResourceMultigetRequest) GetDeviceIdType() string

DeviceIdType Getter

func (YoukuDspDeliveryResourceMultigetRequest) GetDeviceIds

DeviceIds Getter

func (YoukuDspDeliveryResourceMultigetRequest) GetSubChannelId

func (r YoukuDspDeliveryResourceMultigetRequest) GetSubChannelId() int64

SubChannelId Getter

func (*YoukuDspDeliveryResourceMultigetRequest) SetChannelId

func (r *YoukuDspDeliveryResourceMultigetRequest) SetChannelId(channelId int64) error

ChannelId Setter 渠道id

func (*YoukuDspDeliveryResourceMultigetRequest) SetDeliveryType

func (r *YoukuDspDeliveryResourceMultigetRequest) SetDeliveryType(deliveryType string) error

DeliveryType Setter 投放类型push或者feed

func (*YoukuDspDeliveryResourceMultigetRequest) SetDeviceIdType

func (r *YoukuDspDeliveryResourceMultigetRequest) SetDeviceIdType(deviceIdType string) error

DeviceIdType Setter 设备类型imei或者idfa

func (*YoukuDspDeliveryResourceMultigetRequest) SetDeviceIds

func (r *YoukuDspDeliveryResourceMultigetRequest) SetDeviceIds(deviceIds string) error

DeviceIds Setter 设备id串(md5加密),多个设备逗号隔开

func (*YoukuDspDeliveryResourceMultigetRequest) SetSubChannelId

func (r *YoukuDspDeliveryResourceMultigetRequest) SetSubChannelId(subChannelId int64) error

SubChannelId Setter 子渠道id

type YoukuDspDeliveryResourceMultigetResponse

type YoukuDspDeliveryResourceMultigetResponse 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"`
}

优酷实时批量获取可投放设备资源 成功返回结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL