v3

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest added in v1.14.1

type CreateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionID 待创建搜索关键词的广告ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
	// Keywords 关键词列表,一个广告最多可添加1000个
	Keywords []keyword.Keyword `json:"keywords,omitempty"`
}

CreateRequest 创建关键词 API Request

func (CreateRequest) Encode added in v1.14.1

func (r CreateRequest) Encode() []byte

Encode implement PostRequest interface

type DeleteRequest added in v1.14.1

type DeleteRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// KeywordIDs 待删除的关键词id列表,一次最多批量删除100个关键词
	KeywordIDs []uint64 `json:"keyword_ids,omitempty"`
}

DeleteRequest 删除关键词 API Request

func (DeleteRequest) Encode added in v1.14.1

func (r DeleteRequest) Encode() []byte

Encode implement PostRequest interface

type ListFiltering added in v1.14.1

type ListFiltering struct {
	// PromotionID 待过滤的广告ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
}

ListFiltering 过滤结构

func (ListFiltering) GetID added in v1.14.1

func (f ListFiltering) GetID() uint64

type ListRequest added in v1.14.1

type ListRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Filtering 过滤结构
	Filtering *ListFiltering `json:"filtering,omitempty"`
}

ListRequest 获取关键词列表 API Request

func (ListRequest) Encode added in v1.14.1

func (r ListRequest) Encode() string

Encode implement GetRequest interface

type PromotionMaterial added in v1.13.8

type PromotionMaterial struct {
	// Abstracts 广告摘要
	Abstracts []string `json:"abstracts,omitempty"`
	// QuantityWords 优词
	QuantityWords []string `json:"quantity_words,omitempty"`
	// AppName 应用名
	AppName string `json:"app_name,omitempty"`
	// Source 来源
	Source string `json:"source,omitempty"`
}

PromotionMaterial 广告素材

type SuggestRequest

type SuggestRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ProjectID 项目id
	ProjectID uint64 `json:"project_id,omitempty"`
	// QueryList 以词推词,最多只传入10个,长度要求30字内 ,可传入行业名称获取行业推词
	QueryList []string `json:"query_list,omitempty"`
	// PromotionMaterial 广告素材
	PromotionMaterial *PromotionMaterial `json:"promotion_material,omitempty"`
}

SuggestRequest 搜索快投关键词推荐 API Request

func (SuggestRequest) Encode

func (r SuggestRequest) Encode() []byte

Encode implement PostRequest interface

type UpdateRequest added in v1.14.1

type UpdateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionID 待更新搜索关键词属性的广告ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
	// Keywords 待更新搜索关键词列表,一次最多批量更新100个关键词
	Keywords []keyword.Keyword `json:"keywords,omitempty"`
}

UpdateRequest 更新关键词 API Request

func (UpdateRequest) Encode added in v1.14.1

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