account

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// UserId 账户ID
	UserId int64 `json:"userId,omitempty"`
	// Balance 账户余额。此字段仅用于查询,updateAccountFeed接口传此字段无效。
	Balance float64 `json:"balance,omitempty"`
	// Budget 账户预算。默认为0,表示不限预算。正常取值范围为[50-9999999.99]
	Budget float64 `json:"budget,omitempty"`
	// BalancePackage 资金包类型。此字段仅用于查询,updateAccountFeed接口传此字段无效。取值范围如下:0:原生资金包 1:凤巢资金包 2:代理商原生资金包
	BalancePackage int `json:"balancePackage,omitempty"`
	// UserStat 账户状态。此字段仅用于查询,updateAccountFeed接口传此字段无效。取值范围如下:1:开户金未到 2:生效 3:账户余额为0 4:被拒绝 6:审核中 7:被禁用 8:待激活 11:账户预算不足
	UserStat int `json:"userStat,omitempty"`
	// UaStat 是否开通feed产品线权限。此字段仅用于查询,updateAccountFeed接口传此字段无效。取值范围如下:1:已开通 2:待开通 3:不允许开通(KA客户)
	UaStat int `json:"uaStat,omitempty"`
	// ValidFlows 可投放流量。此字段仅用于查询,updateAccountFeed接口传此字段无效。数组为空时表示无可投放流量。流量类型与推广单元对象的ftypes字段定义保持一致,取值范围如下:1:手机百度 2:贴吧 4:百青藤 8:好看视频 64:百度小说
	ValidFlows []int `json:"validFlow,omitempty"`
}

Account 账户信息

type GetAccountFeedRequest

type GetAccountFeedRequest struct {
	// AccountFeedFields 需要查询的账户属性。取值范围参考账户信息对象中的字段取值
	AccountFeedFields []string `json:"accountFeedFields,omitempty"`
}

GetAccountFeedRequest 查询账户信息 API Request

func (GetAccountFeedRequest) Url

func (r GetAccountFeedRequest) Url() string

type GetAccountFeedResponse

type GetAccountFeedResponse struct {
	Data []Account `json:"data,omitempty"`
}

GetAccountFeedResponse 查询账户信息 API Response

type RTASetting

type RTASetting struct {
	// UserId 账户ID
	UserId int64 `json:"userId,omitempty"`
	// Url 接口地址,长度不超过1024个字符,http/https开头,不含空格,必填
	Url string `json:"url,omitempty"`
	// Qps 请求qps,大于等于0,0表示不限制(默认),单位次/秒,选填,此字段暂不生效
	Qps *int `json:"qps,omitempty"`
	// CacheTime 缓存时长,大于等于0,0表示不使用缓存(默认),单位秒,选填,此字段暂不生效
	CacheTime *int64 `json:"cacheTime,omitempty"`
	// StrategyIds 策略ids,大于0,上限100个,选填
	StrategyIds []int64 `json:"strategyIds,omitempty"`
	// CustomToken 自定义token,最大256个字符,选填
	CustomToken string `json:"customToken,omitempty"`
	// Token 百度认证token,系统自动生成,新增无效
	Token string `json:"token,omitempty"`
}

RTASetting rta 设置

type UpdateAccountFeedRequest

type UpdateAccountFeedRequest struct {
	// Budget 账户预算。默认为0,表示不限预算。正常取值范围为[50-9999999.99]
	Budget float64 `json:"budget,omitempty"`
}

UpdateAccountFeedRequest 更新账户信息 API Request

func (UpdateAccountFeedRequest) Url

type UpdateAccountFeedResponse

type UpdateAccountFeedResponse struct {
	Data []Account `json:"data,omitempty"`
}

UpdateAccountFeedResponse 更新账户信息 API Response

Jump to

Keyboard shortcuts

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