interestaction

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package interestaction 行为兴趣关键词管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCategoryRequest

type ActionCategoryRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ActionScene 行为场景,查询目标为行为时必填,兴趣不生效;允许值:E-COMMERCE、NEWS、APP
	ActionScene []enum.ActionScene `json:"action_scene,omitempty"`
	// ActionDays 行为天数,查询目标为行为时必填,兴趣不生效; 允许值:7, 15, 30, 60, 90, 180, 365
	ActionDays int `json:"action_days,omitempty"`
}

ActionCategoryRequest 行为类目查询 API Request

func (ActionCategoryRequest) Encode

func (r ActionCategoryRequest) Encode() string

Encode implement GetRequest interface

type ActionCategoryResponse

type ActionCategoryResponse struct {
	model.BaseResponse
	// Data json返回值
	Data []Object `json:"data,omitempty"`
}

ActionCategoryResponse 行为类目查询 API Response

type ActionKeywordRequest

type ActionKeywordRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// QueryWords 关键词
	QueryWords string `json:"query_words,omitempty"`
	// ActionScene 行为场景,查询目标为行为时必填,兴趣不生效;允许值:E-COMMERCE、NEWS、APP
	ActionScene []enum.ActionScene `json:"action_scene,omitempty"`
	// ActionDays 行为天数,查询目标为行为时必填,兴趣不生效; 允许值:7, 15, 30, 60, 90, 180, 365
	ActionDays int `json:"action_days,omitempty"`
}

ActionKeywordRequest 行为关键词查询 API Request

func (ActionKeywordRequest) Encode

func (r ActionKeywordRequest) Encode() string

Encode implement GetRequest interface

type ActionKeywordResponse

type ActionKeywordResponse struct {
	model.BaseResponse
	// Data json返回值
	Data ActionKeywordResponseData `json:"data,omitempty"`
}

ActionKeywordResponse 行为关键词查询 API Response

type ActionKeywordResponseData

type ActionKeywordResponseData struct {
	List []Object `json:"list,omitempty"`
}

ActionKeywordResponseData json返回值

type Id2WordRequest

type Id2WordRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// IDs 类目或关键词id列表
	IDs []uint64 `json:"ids,omitempty"`
	// TagType 查询类型:类目还是关键词; 允许值:CATEGORY(类目)、KEYWORD(关键词)
	TagType string `json:"tag_type,omitempty"`
	// TargetingType 查询目标:兴趣还是行为; 允许值:ACTION(行为)、INTEREST(兴趣)
	TargetingType string `json:"targeting_type,omitempty"`
	// ActionScene 行为场景,查询目标为行为时必填,兴趣不生效;允许值:E-COMMERCE、NEWS、APP
	ActionScene []enum.ActionScene `json:"action_scene,omitempty"`
	// ActionDays 行为天数,查询目标为行为时必填,兴趣不生效; 允许值:7, 15, 30, 60, 90, 180, 365
	ActionDays int `json:"action_days,omitempty"`
}

Id2WordRequest 兴趣行为类目关键词id转词 API Request

func (Id2WordRequest) Encode

func (r Id2WordRequest) Encode() string

Encode implement GetRequest interface

type Id2WordResponse

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

Id2WordResponse 兴趣行为类目关键词id转词 API Response

type Id2WordResponseData

type Id2WordResponseData struct {
	// Categories 类目列表
	Categories []Object `json:"categories,omitempty"`
	// Keywords 关键词列表
	Keywords []Object `json:"keywords,omitempty"`
}

Id2WordResponseData json返回值

type InterestCategoryRequest

type InterestCategoryRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
}

InterestCategoryRequest 兴趣类目查询 API Request

func (InterestCategoryRequest) Encode

func (r InterestCategoryRequest) Encode() string

Encode implement GetRequest interface

type InterestCategoryResponse

type InterestCategoryResponse struct {
	model.BaseResponse
	// Data json返回值
	Data []Object `json:"data,omitempty"`
}

InterestCategoryResponse 兴趣类目查询 API Response

type InterestKeywordRequest

type InterestKeywordRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// QueryWords 关键词
	QueryWords string `json:"query_words,omitempty"`
}

InterestKeywordRequest 兴趣关键词查询 API Request

func (InterestKeywordRequest) Encode

func (r InterestKeywordRequest) Encode() string

Encode implement GetRequest interface

type InterestKeywordResponse

type InterestKeywordResponse struct {
	model.BaseResponse
	// Data json返回值
	Data InterestKeywordResponseData `json:"data,omitempty"`
}

InterestKeywordResponse 兴趣关键词查询 API Response

type InterestKeywordResponseData

type InterestKeywordResponseData struct {
	List []Object `json:"list,omitempty"`
}

InterestKeywordResponseData json返回值

type KeywordSuggestRequest

type KeywordSuggestRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ID 类目或关键词id
	ID uint64 `json:"ids,omitempty"`
	// TagType 查询类型:类目还是关键词; 允许值:CATEGORY(类目)、KEYWORD(关键词)
	TagType string `json:"tag_type,omitempty"`
	// TargetingType 查询目标:兴趣还是行为; 允许值:ACTION(行为)、INTEREST(兴趣)
	TargetingType string `json:"targeting_type,omitempty"`
	// ActionScene 行为场景,查询目标为行为时必填,兴趣不生效;允许值:E-COMMERCE、NEWS、APP
	ActionScene []enum.ActionScene `json:"action_scene,omitempty"`
	// ActionDays 行为天数,查询目标为行为时必填,兴趣不生效; 允许值:7, 15, 30, 60, 90, 180, 365
	ActionDays int `json:"action_days,omitempty"`
}

KeywordSuggestRequest 获取行为兴趣推荐关键词

func (KeywordSuggestRequest) Encode

func (r KeywordSuggestRequest) Encode() string

Encode implement GetRequest interface

type KeywordSuggestResponse

type KeywordSuggestResponse struct {
	model.BaseResponse
	// Data json返回值
	Data KeywordSuggestResponseData `json:"data,omitempty"`
}

KeywordSuggestResponse 获取行为兴趣推荐关键词 API Response

type KeywordSuggestResponseData

type KeywordSuggestResponseData struct {
	// Keywords 关键词列表
	Keywords []Object `json:"keywords,omitempty"`
}

KeywordSuggestResponseData json返回值

type Object

type Object struct {
	// ID 类目/关键词IID
	ID json.Number `json:"id,omitempty"`
	// Name 名称
	Name string `json:"name,omitempty"`
	// Num 覆盖人数
	Num string `json:"num,omitempty"`
	// Children 子类目
	Children []Object `json:"children,omitempty"`
}

Object 类目/关键词对象

Jump to

Keyboard shortcuts

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