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