Documentation ¶
Overview ¶
Package advertiser 账号服务相关API
Index ¶
- func AvatarGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.AvatarGetResponseData, error)
- func BudgetGet(clt *core.SDKClient, accessToken string, advertiserIDs []uint64) ([]advertiser.BudgetGetResponseList, error)
- func FundDailyStat(clt *core.SDKClient, accessToken string, req *advertiser.FundDailyStatRequest) (*advertiser.FundDailyStatResponseData, error)
- func FundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.FundGetResponseData, error)
- func FundTransactionGet(clt *core.SDKClient, accessToken string, ...) ([]advertiser.FundTransactionGetResponseList, error)
- func Info(clt *core.SDKClient, accessToken string, req *advertiser.InfoRequest) ([]advertiser.Info, error)
- func PublicInfo(clt *core.SDKClient, accessToken string, req *advertiser.PublicInfoRequest) ([]advertiser.PublicInfo, error)
- func TransferableFundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.TransferableFund, error)
- func UpdateBudget(clt *core.SDKClient, accessToken string, req *advertiser.UpdateBudgetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvatarGet ¶ added in v1.2.3
func AvatarGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.AvatarGetResponseData, error)
AvatarGet 获取广告主头像信息
func BudgetGet ¶ added in v1.2.3
func BudgetGet(clt *core.SDKClient, accessToken string, advertiserIDs []uint64) ([]advertiser.BudgetGetResponseList, error)
BudgetGet 获取账户日预算 此接口可以获取广告主账号设置的预算类型与预算,可以一次查询100个广告主账号预算;
func FundDailyStat ¶
func FundDailyStat(clt *core.SDKClient, accessToken string, req *advertiser.FundDailyStatRequest) (*advertiser.FundDailyStatResponseData, error)
FundDailyStat 查询账号日流水 获取广告主日流水信息,一般每天8点会出来前一天的数据,如果当天存在数据延迟可往后再尝试。
func FundGet ¶ added in v1.2.3
func FundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.FundGetResponseData, error)
FundGet 查询账号余额 获取广告主或代理商账户余额信息。
func FundTransactionGet ¶ added in v1.2.3
func FundTransactionGet(clt *core.SDKClient, accessToken string, req *advertiser.FundTransactionGetRequest) ([]advertiser.FundTransactionGetResponseList, error)
FundTransactionGet 查询账号流水明细 获取广告主或代理商账户流水明细信息。接口规则如下: 1.假设某广告主A是代理商下广告主,对于A来说,如果流水类型是转账,而收款方是A则意味着是转账加款,如果付款方是A则意味着是转账退款。 2.假设某广告主B是直客广告主,未在任何代理商下,如果交易流水类型为充值,则收款方和付款方将都显示广告主B,如果金额为正则是充值交易,金额为负则是退款交易。
func Info ¶
func Info(clt *core.SDKClient, accessToken string, req *advertiser.InfoRequest) ([]advertiser.Info, error)
Info 广告主信息 获取广告主账户详细信息,可指定fields查询所需元素。 目前上线了新版的代理商鉴权,如果查询报no permission错误,请前往代理商一站式平台为账号申请对应的权限。
func PublicInfo ¶
func PublicInfo(clt *core.SDKClient, accessToken string, req *advertiser.PublicInfoRequest) ([]advertiser.PublicInfo, error)
PublicInfo 广告主公开信息
func TransferableFundGet ¶ added in v1.5.8
func TransferableFundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.TransferableFund, error)
TransferableFundGet 查询账户可转余额 通过此接口可获取广告主、代理商或组织账户下的可转资金余额信息。
func UpdateBudget ¶
func UpdateBudget(clt *core.SDKClient, accessToken string, req *advertiser.UpdateBudgetRequest) error
UpdateBudget 更新账户日预算 此接口可以更新广告主账号设置的预算类型与预算。 账户预算类别:不限预算、日预算 范围1000<=X <= 9999999.99、仅支持最多2位小数
Types ¶
This section is empty.