advertiser

package
v1.22.2 Latest Latest
Warning

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

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

Documentation

Overview

Package advertiser 账户信息获取

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBudgetGetRequest added in v1.19.9

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

AccountBudgetGetRequest 获取账户日预算

func (AccountBudgetGetRequest) Encode added in v1.19.9

func (r AccountBudgetGetRequest) Encode() string

Encode implement GetRequest interface

type AccountBudgetGetResponse added in v1.19.9

type AccountBudgetGetResponse struct {
	model.BaseResponse
	Data *Budget `json:"data,omitempty"`
}

AccountBudgetGetResponse 获取账户日预算

type AccountBudgetUpdateRequest added in v1.19.9

type AccountBudgetUpdateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// BudgetMode 预算类型
	// INFINITE 不限
	// SPECIFIED 日预算
	BudgetMode qianchuan.BudgetMode `json:"budget_mode,omitempty"`
	// Budget 账户今日竞价预算,单位元
	Budget float64 `json:"budget,omitempty"`
}

AccountBudgetUpdateRequest 更新账户日预算 API Request

func (AccountBudgetUpdateRequest) Encode added in v1.19.9

func (r AccountBudgetUpdateRequest) Encode() []byte

type Advertiser

type Advertiser struct {
	// EcpType 账户类型,可选值:
	// SHOP: 商家
	// SHOP_STAR: 商家达人
	// COMMON_STAR: 普通达人
	// AGENT: 百应机构
	EcpType qianchuan.EcpType `json:"ecp_type,omitempty"`
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
}

type Balance added in v1.21.9

type Balance struct {
	// AdvertiserID 广告主ID或代理商ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// AccountTotal 账户总余额
	AccountTotal float64 `json:"account_total,omitempty"`
	// AccountValid 账户可用总余额
	AccountValid float64 `json:"account_valid,omitempty"`
	// AccountFrozen 账户冻结总余额
	AccountFrozen float64 `json:"account_frozen,omitempty"`
	// AccountGeneralTotal 通用总余额
	AccountGeneralTotal float64 `json:"account_general_total,omitempty"`
	// AccountGeneralValid 通用可用余额
	AccountGeneralValid float64 `json:"account_general_valid,omitempty"`
	// AccountGeneralFrozen 通用冻结余额
	AccountGeneralFrozen float64 `json:"account_general_frozen,omitempty"`
	// AccountBiddingTotal 竞价总余额
	AccountBiddingTotal float64 `json:"account_bidding_total,omitempty"`
	// AccountBiddingValid 竞价可用余额
	AccountBiddingValid float64 `json:"account_bidding_valid,omitempty"`
	// AccountBiddingFrozen 竞价冻结余额
	AccountBiddingFrozen float64 `json:"account_bidding_frozen,omitempty"`
	// AccountBrandTotal 账户品牌总余额
	AccountBrandTotal float64 `json:"account_brand_total,omitempty"`
	// AccountBrandValid 账户品牌可用余额
	AccountBrandValid float64 `json:"account_brand_valid,omitempty"`
	// AccountBrandFrozen 账户品牌冻结余额
	AccountBrandFrozen float64 `json:"account_brand_frozen,omitempty"`
	// ShareGrantTotal 总共享赠款
	ShareGrantTotal float64 `json:"share_grant_total,omitempty"`
	// ShareWalletGeneralValid 共享钱包通用可用余额
	ShareWalletGeneralValid float64 `json:"share_wallet_general_valid,omitempty"`
	// ShareWalletBiddingValid 共享钱包竞价可用余额
	ShareWalletBiddingValid float64 `json:"share_wallet_bidding_valid,omitempty"`
	// ShareWalletBrandValid 共享钱包品牌可用余额
	ShareWalletBrandValid float64 `json:"share_wallet_brand_valid,omitempty"`
	// ShareWalletID 共享钱包id
	ShareWalletID string `json:"share_wallet_id,omitempty"`
	// ShareWalletName 共享钱包名称
	ShareWalletName string `json:"share_wallet_name,omitempty"`
	// ShareWalletTotal 共享钱包可用总余额
	ShareWalletTotal float64 `json:"share_wallet_total,omitempty"`
}

type BalanceGetRequest added in v1.21.9

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

BalanceGetRequest 获取账户余额 API Request

func (BalanceGetRequest) Encode added in v1.21.9

func (r BalanceGetRequest) Encode() string

Encode implement GetRequest interface

type BalanceGetResponse added in v1.21.9

type BalanceGetResponse struct {
	model.BaseResponse
	Data *Balance `json:"data,omitempty"`
}

BalanceGetResponse 获取账户余额 API Response

type Budget added in v1.19.9

type Budget struct {
	// BudgetMode 预算类型
	// INFINITE 不限
	// SPECIFIED 日预算
	BudgetMode qianchuan.BudgetMode `json:"budget_mode,omitempty"`
	// Budget 账户今日竞价预算,单位元
	Budget float64 `json:"budget,omitempty"`
}

type TypeGetRequest

type TypeGetRequest struct {
	// AdvertiserIDs 千川广告主账户id,一次请求不超过20个
	AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"`
}

TypeGetRequest 获取千川账户类型 API Request

func (TypeGetRequest) Encode

func (r TypeGetRequest) Encode() string

Encode implement GetRequest interface

type TypeGetResponse

type TypeGetResponse struct {
	model.BaseResponse
	Data struct {
		// List 广告主数据列表
		List []Advertiser `json:"list,omitempty"`
	} `json:"data,omitempty"`
}

TypeGetResponse 获取千川账户类型 API Response

Jump to

Keyboard shortcuts

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