adkcunit

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdkcunitStatusUpdate

func AdkcunitStatusUpdate(req *AdkcunitStatusUpdateRequest) (bool, error)

更新单元状态

Types

type ADGroupQuery

type ADGroupQuery struct {
	NewAreaId      string `json:"newAreaId,omitempty" codec:"newAreaId,omitempty"`           // 推广区域id
	Id             uint64 `json:"id,omitemmpty" codec:"id,omitempty"`                        // 单元ID
	Position       string `json:"position,omitempty" codec:"position,omitempty"`             // 广告位展示
	OuterFeeStr    string `json:"outerFeeStr,omitempty" codec:"outerFeeStr,omitempty"`       // 站外出价
	CampaignId     uint64 `json:"campaignId,omitempty" codec:"campaignId,omitepty"`          // 计划ID
	Status         uint8  `json:"status,omitempty" codec:"status,omitempty"`                 // status
	Name           string `json:"name,omitempty" codec:"name,omitempty"`                     // 推广单元名
	BillingType    uint8  `json:"billingType,omitempty" codec:"billingType,omitempty"`       //	计费类型
	GroupDirection string `json:"groupDirection,omitempty" codec:"groupDirection,omitempty"` // 人群定向
	InSearchFee    uint64 `json:"inSearchFee,omitempty" codec:"inSearchFee,omitempty"`       //	搜索出价
	FeeStr         string `json:"feeStr,omitempty" codec:"feeStr,omitempty"`                 // 站内出价
	Area           string `json:"area,omitempty" codec:"area,omitempty"`                     // 推广区域

	CreatedTime string `json:"createdTime,omitempty" codec:"createdTime,omitempty"` // 推广区域
	PutType     int8   `json:"putType,omitempty" codec:"putType,omitempty"`         // 推广类型
}

func AdkcunitAdgroupList

func AdkcunitAdgroupList(req *AdkcunitAdgroupListRequest) ([]*ADGroupQuery, int, error)

获取计划下的推广单元列表

type AdkcunitAdgroupListData

type AdkcunitAdgroupListData struct {
	Result *AdkcunitAdgroupListResult `json:"querylistbyparam_result,omitempty" codec:"querylistbyparam_result,omitempty"`
}

type AdkcunitAdgroupListRequest

type AdkcunitAdgroupListRequest struct {
	api.BaseRequest
	PageNum    int    `json:"page_num,omitempty" codec:"page_num,omitempty"`
	PageSize   int    `json:"page_size,omitempty" codec:"page_size,omitempty"`
	CampaignId uint64 `json:"campaign_id,omitempty" codec:"campaign_id,omitempty"` // 计划id
}

type AdkcunitAdgroupListResponse

type AdkcunitAdgroupListResponse struct {
	ErrorResp *api.ErrorResponnse      `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *AdkcunitAdgroupListData `json:"jingdong_dsp_adkcunit_adgroup_list_responce,omitempty" codec:"jingdong_dsp_adkcunit_adgroup_list_responce,omitempty"`
}

type AdkcunitAdgroupListResult

type AdkcunitAdgroupListResult struct {
	ErrorMsg   string                    `json:"errorMsg,omitempty" codec:"errorMsg,omitempty"`
	ResultCode string                    `json:"resultCode,omitempty" codec:"resultCode,omitempty"`
	Success    bool                      `json:"success,omitempty" codec:"success,omitempty"`
	Value      *AdkcunitAdgroupListValue `json:"data,omitempty" codec:"data,omitempty"`
}

type AdkcunitAdgroupListValue

type AdkcunitAdgroupListValue struct {
	Paginator *dsp.Paginator  `json:"paginator,omitempty" codec:"paginator,omitempty"` // 分页组件
	Datas     []*ADGroupQuery `json:"datas,omitempty" codec:"datas,omitempty"`
}

type AdkcunitStatusUpdateData

type AdkcunitStatusUpdateData struct {
	Result *AdkcunitStatusUpdateResult `json:"updatestatus_result,omitempty" codec:"updatestatus_result,omitempty"`
}

type AdkcunitStatusUpdateRequest

type AdkcunitStatusUpdateRequest struct {
	api.BaseRequest
	Status    uint8  `json:"status"`      // 0 1 2
	AdGroupId string `json:"ad_group_id"` //支持批量修改  "id1,id2,id3"
}

type AdkcunitStatusUpdateResponse

type AdkcunitStatusUpdateResponse struct {
	ErrorResp *api.ErrorResponnse       `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *AdkcunitStatusUpdateData `json:"jingdong_dsp_adkcunit_status_update_responce,omitempty" codec:"jingdong_dsp_adkcunit_status_update_responce,omitempty"`
}

type AdkcunitStatusUpdateResult

type AdkcunitStatusUpdateResult struct {
	Status     uint8  `json:"status,omitempty" codec:"status,omitempty"`
	ErrorMsg   string `json:"errorMsg,omitempty" codec:"errorMsg,omitempty"`
	ResultCode string `json:"resultCode,omitempty" codec:"resultCode,omitempty"`
	Success    bool   `json:"success,omitempty" codec:"success,omitempty"`
}

Jump to

Keyboard shortcuts

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