keywordsbidratio

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package keywordsbidratio 账户优词提量

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// WordList 优词列表,最多支持10个,字数最大限制:30,每个优词生成一个优词计划id
	// 每个账户最多支持200个优词
	WordList []string `json:"word_list,omitempty"`
	// BidRatio 优词提量系数,取值范围:[1.1,2],仅支持一位小数
	BidRatio float64 `json:"bid_ratio,omitempty"`
	// Dimension 生效维度,可选值:
	// ADVERTISER: 账户维度
	// PROJECT: 项目维度
	Dimension string `json:"dimension,omitempty"`
	// ProjectIDs 生效的项目id列表,最多100个,当dimension=PROJECT时必填
	ProjectIDs []uint64 `json:"project_ids,omitempty"`
}

CreateRequest 设置优词提量系数和生效维度

func (CreateRequest) Encode

func (r CreateRequest) Encode() []byte

Encode implement PostRequest interface

type DeleteRequest

type DeleteRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionWordIDs 要删除的优词计划ID列表,从【查询优词提量系数信息】接口获取,最多支持10个
	PromotionWordIDs []string `json:"promotion_word_ids,omitempty"`
}

DeleteRequest 删除优词提量系数和生效维度

func (DeleteRequest) Encode

func (r DeleteRequest) Encode() []byte

Encode implement PostRequest interface

type GetFilter

type GetFilter struct {
	// ProjectIDs 生效的项目id,最多50个
	ProjectIDs []uint64 `json:"project_ids,omitempty"`
	// Words 关键词,最多50个
	Words []string `json:"words,omitempty"`
}

GetFilter 筛选项

type GetRequest

type GetRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Filtering 筛选项
	Filtering *GetFilter `json:"filtering,omitempty"`
}

GetRequest 查询优词提量系数信息 API Request

func (GetRequest) Encode

func (r GetRequest) Encode() string

Encode implement GetRequest interface

type GetResponse

type GetResponse struct {
	model.BaseResponse
	// Data 返回数据
	Data struct {
		// List
		List []Keyword `json:"list,omitempty"`
	} `json:"data,omitempty"`
}

GetResponse 查询优词提量系数信息 API Response

type Keyword

type Keyword struct {
	// PromotionWordID 优词计划ID
	PromotionWordID string `json:"promotion_word_id,omitempty"`
	// Word 优词
	Word string `json:"word,omitempty"`
	// Dimension 生效维度
	// ADVERTISER: 账户维度
	// PROJECT: 项目维度
	Dimension string `json:"dimension,omitempty"`
	// BidRatio 优词提量系数
	BidRatio float64 `json:"bid_ratio,omitempty"`
	// ProjectNum 生效的项目数量,账户维度不返回数据
	ProjectNum int `json:"project_num,omitempty"`
}

Keyword 优词信息

type ProjectInfo

type ProjectInfo struct {
	// ProjectID 生效的项目Id
	ProjectID uint64 `json:"project_id,omitempty"`
	// ProjectName 生效的项目名称
	ProjectName string `json:"project_name,omitempty"`
}

ProjectInfo 生效的项目信息

type ProjectInfoGetRequest

type ProjectInfoGetRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionWordID 优词计划ID,从【查询优词提量系数信息】接口获取
	PromotionWordID string `json:"promotion_word_id,omitempty"`
}

ProjectInfoGetRequest 查询优词绑定的项目信息 API Request

func (ProjectInfoGetRequest) Encode

func (r ProjectInfoGetRequest) Encode() string

Encode implement GetRequest interface

type ProjectInfoGetResponse

type ProjectInfoGetResponse struct {
	model.BaseResponse
	// Data 返回数据
	Data struct {
		// ProjectInfo 生效的项目信息
		ProjectInfo *ProjectInfo `json:"project_info,omitempty"`
	} `json:"data,omitempty"`
}

ProjectInfoGetResponse 查询优词绑定的项目信息 API Response

type UpdateRequest

type UpdateRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionWordID 优词计划ID,从【查询优词提量系数信息】接口获取
	PromotionWordID string `json:"promotion_word_id,omitempty"`
	// BidRatio 优词提量系数,取值范围:[1.1,2],仅支持一位小数
	BidRatio float64 `json:"bid_ratio,omitempty"`
	// ProjectIDs 生效的项目id列表,最多100个,当dimension=PROJECT时必填
	ProjectIDs []uint64 `json:"project_ids,omitempty"`
}

UpdateRequest 设置优词提量系数和生效维度

func (UpdateRequest) Encode

func (r UpdateRequest) Encode() []byte

Encode implement PostRequest interface

Jump to

Keyboard shortcuts

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