v3

package
v1.28.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v3 获取计划诊断信息体验版

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdSuggestion

type AdSuggestion struct {
	// PromotionID 计划id
	PromotionID model.Uint64 `json:"promotion_id,omitempty"`
	// SceneList 计划对应的场景列表
	SceneList []diagnosis.SuggestScene `json:"scene_list,omitempty"`
}

AdSuggestion 诊断建议

type SuggestionAcceptFailed

type SuggestionAcceptFailed struct {
	// ToolType 采纳失败的工具
	ToolType string `json:"tool_type,omitempty"`
	// FailReason 采纳失败的原因
	FailReason string `json:"fail_reason,omitempty"`
}

SuggestionAcceptFailed 采纳失败

type SuggestionAcceptRequest

type SuggestionAcceptRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionID 广告计划ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
	// DiagnosisID 诊断id
	DiagnosisID string `json:"diagnosis_id,omitempty"`
	// Tools 工具列表
	Tools []diagnosis.Tool `json:"tools,omitempty"`
}

SuggestionAcceptRequest 采纳计划诊断建议 API Request

func (SuggestionAcceptRequest) Encode

func (r SuggestionAcceptRequest) Encode() []byte

Encode implement PostRequest interface

type SuggestionAcceptResponse

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

SuggestionAcceptResponse 采纳计划诊断建议 API Response

type SuggestionAcceptResponseData

type SuggestionAcceptResponseData struct {
	// SuggestionAccept 采纳成功的工具列表
	SuggestionAccept []string `json:"suggestion_accept,omitempty"`
	// SuggestionAcceptFailed 采纳失败的工具列表
	SuggestionAcceptFailed []SuggestionAcceptFailed `json:"suggestion_accept_failed,omitempty"`
}

SuggestionAcceptResponseData json返回值

type SuggestionGetRequest

type SuggestionGetRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// PromotionIDs 广告计划ID列表,最多100个
	PromotionIDs []uint64 `json:"ad_ids,omitempty"`
	// Scenes 希望获取建议的场景,允许值:CLEAN 清理低质计划场景、POTENTIAL 获取潜力计划场景, ZOMBIE 活跃度低广告(暂为白名单功能,如需获取请联系运营或销售)
	Scenes []string `json:"scenes,omitempty"`
}

SuggestionGetRequest 获取计划诊断建议 API Request

func (SuggestionGetRequest) Encode

func (r SuggestionGetRequest) Encode() string

Encode implement GetRequest interface

type SuggestionGetResponse

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

SuggestionGetResponse 获取计划诊断建议 API Response

type SuggestionGetResponseData

type SuggestionGetResponseData struct {
	// DiagnosisID 诊断id
	DiagnosisID string `json:"diagnosis_id,omitempty"`
	// ExpireTimestamp 诊断id的过期时间,格式:YYYY-MM-DD HH:mm:ss
	ExpireTimestamp string `json:"expire_timestamp,omitempty"`
	// SuggestList 获取的诊断建议列表
	SuggestionList []AdSuggestion `json:"suggestion_list,omitempty"`
}

SuggestionGetResponseData json返回值

Jump to

Keyboard shortcuts

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