v3

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 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 AddRequest

type AddRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ProjectList 项目列表
	ProjectList []Word `json:"project_list,omitempty"`
}

AddRequest 批量新增计划否定词 API Request

func (AddRequest) Encode

func (r AddRequest) Encode() []byte

Encode implement PostRequest interface

type AddResponse

type AddResponse struct {
	model.BaseResponse
	// Data json返回值
	Data *AddResponseData `json:"data,omitempty"`
}

AddResponse 批量新增计划否定词 API Response

type AddResponseData

type AddResponseData struct {
	// ProjectErrorList 添加失败的项目id列表
	ProjectErrorList []uint64 `json:"project_error_list,omitempty"`
	// ProjectList 添加成功的项目列表
	ProjectList []Word `json:"project_list,omitempty"`
}

AddResponseData json返回值

type GetRequest

type GetRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ProjectIDs 项目id列表,最多100个
	ProjectIDs []uint64 `json:"project_ids,omitempty"`
}

GetRequest 获取否定词列表 API Request

func (GetRequest) Encode

func (r GetRequest) Encode() string

Encode implement GetRequest interface

type GetResponse

type GetResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// List 项目否定词列表
		List []Word `json:"projects_privative,omitempty"`
	} `json:"data,omitempty"`
}

GetResponse 获取否定词列表 API Response

type Word

type Word struct {
	// ProjectID 项目id
	ProjectID uint64 `json:"project_id,omitempty"`
	// PhraseWords 短语否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。
	PhraseWords []string `json:"phrase_words,omitempty"`
	// PreciseWords 精确否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。
	PreciseWords []string `json:"precise_words,omitempty"`
}

Word 否定词

Jump to

Keyboard shortcuts

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