Documentation ¶
Overview ¶
Package agent 代理商账号管理相关API
Index ¶
- func AdvertiserCopy(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.AdvertiserCopyResult, error)
- func AdvertiserRecharge(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func AdvertiserRefund(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func AdvertiserSelect(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.AdvertiserSelectResponseData, error)
- func AdvertiserUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.AdvertiserUpdateResponseData, error)
- func ChildAgentSelect(ctx context.Context, clt *core.SDKClient, accessToken string, ...) ([]uint64, error)
- func CreateTransfer(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func FundTransferSeqCommit(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func FundTransferSeqCreate(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func Info(ctx context.Context, clt *core.SDKClient, accessToken string, ...) ([]agent.Info, error)
- func QueryCanTransferBalance(ctx context.Context, clt *core.SDKClient, accessToken string, ...) ([]agent.CanTransferDetail, error)
- func QueryRiskPromotionList(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.QueryRiskPromotionListResult, error)
- func QueryTransferBalance(ctx context.Context, clt *core.SDKClient, accessToken string, ...) ([]agent.AccountAmountDetail, error)
- func QueryTransferDetail(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.TransferDetail, error)
- func RefundTransferSeqCommit(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func RefundTransferSeqCreate(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (string, error)
- func TransferTransactionRecord(ctx context.Context, clt *core.SDKClient, accessToken string, ...) (*agent.TransferTransactionRecordResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvertiserCopy ¶ added in v1.19.2
func AdvertiserCopy(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.AdvertiserCopyRequest) (*agent.AdvertiserCopyResult, error)
AdvertiserCopy 广告主账户复制
func AdvertiserRecharge ¶
func AdvertiserRecharge(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.AdvertiserRechargeRequest) (string, error)
AdvertiserRecharge 代理商转账 通过此接口可给代理商下管理的广告主或二级代理商进行转账操作。 提醒:1月15日代理商平台和API都新增了转账类型字段,代理商如果使用了转账退款接口,请尽快调整上传最新的transfer_type字段,历史转账会按一定的规则和比例进行转账,新功能上线后需要您实际选择是希望转现金还是赠款,在1月31日之前如果不传transfer_type我们将按历史逻辑处理,在31日后如果不传transfer_type将默认优先转现金,请您尽快调整。
func AdvertiserRefund ¶
func AdvertiserRefund(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.AdvertiserRefundRequest) (string, error)
AdvertiserRefund 代理商退款 通过此接口可给代理商下管理的广告主或二级代理商进行退款操作。 提醒:1月15日代理商平台和API都新增了转账类型字段,代理商如果使用了转账退款接口,请尽快调整上传最新的transfer_type字段,历史转账会按一定的规则和比例进行转账,新功能上线后需要您实际选择是希望转现金还是赠款,在1月31日之前如果不传transfer_type我们将按历史逻辑处理,在31日后如果不传transfer_type将默认优先转现金,请您尽快调整。
func AdvertiserSelect ¶
func AdvertiserSelect(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.AdvertiserSelectRequest) (*agent.AdvertiserSelectResponseData, error)
AdvertiserSelect 广告主列表 获取代理商下的广告主ID列表,如果存在二级代理,要获取二级代理商列表请使用agent/child_agent/select/接口。如果您需要获取二级代理商下的广告主,需要传递二级代理商id调用此接口即可获得。如果要查看广告主ID的详细信息请参考广告主信息接口。
func AdvertiserUpdate ¶
func AdvertiserUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.AdvertiserUpdateRequest) (*agent.AdvertiserUpdateResponseData, error)
AdvertiserUpdate 修改广告主 修改广告主信息,可更改内容包括账户名称、联系人、手机号码、固定电话,除此之外其他内容不允许修改。
func ChildAgentSelect ¶
func ChildAgentSelect(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.ChildAgentSelectRequest) ([]uint64, error)
ChildAgentSelect 二级代理商列表 获取代理商下的广告主ID列表,如果存在二级代理,要获取二级代理商列表请使用agent/child_agent/select/接口。如果您需要获取二级代理商下的广告主,需要传递二级代理商id调用此接口即可获得。如果要查看广告主ID的详细信息请参考广告主信息接口。
func CreateTransfer ¶ added in v1.25.0
func CreateTransfer(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.CreateTransferRequest) (string, error)
CreateTransfer 转账-发起转账(代理) 发起转账,支持1:N转账、不停投转账、虚客互转
func FundTransferSeqCommit ¶ added in v1.13.9
func FundTransferSeqCommit(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.FundTransferSeqCommitRequest) (string, error)
FundTransferSeqCommit 提交转账交易号(方舟) 转账接口分为两步, 包含创建转账接口 和 提交转账接口,本接口为第二步
func FundTransferSeqCreate ¶ added in v1.13.9
func FundTransferSeqCreate(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.FundTransferSeqCreateRequest) (string, error)
FundTransferSeqCreate 创建转账交易号(方舟) 转账接口分为两步, 包含创建转账接口 和 提交转账接口,本接口为第一步
func Info ¶
func Info(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.InfoRequest) ([]agent.Info, error)
Info 获取代理商信息
func QueryCanTransferBalance ¶ added in v1.25.0
func QueryCanTransferBalance(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.QueryCanTransferBalanceRequest) ([]agent.CanTransferDetail, error)
QueryCanTransferBalance 转账-获取最大可转余额(代理) 查询减款方与加款方之间最大可转金额,接口内已自动扣除需要预留的竞价消耗保证金,支持查询1:N转账的最大可转金额
func QueryRiskPromotionList ¶ added in v1.27.8
func QueryRiskPromotionList(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.QueryRiskPromotionListRequest) (*agent.QueryRiskPromotionListResult, error)
QueryRiskPromotionList 【代理商】查询广告违规信息 通过此接口,用户可以获取代理商账户下: 支持获取在投放中图片、视频和落地页被拒审的巨量广告信息,仅展示广告拒审时的信息 支持获取广告中未过审的素材信息以及这个素材还在同代理商的哪些广告下(只披露近7天有消耗的关联广告)
func QueryTransferBalance ¶ added in v1.25.0
func QueryTransferBalance(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.QueryTransferBalanceRequest) ([]agent.AccountAmountDetail, error)
QueryTransferBalance 转账-查询账户转账余额(代理) 查询账户自身转账余额、作为减款方需要预留的竞价消耗保证金
func QueryTransferDetail ¶ added in v1.25.0
func QueryTransferDetail(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.QueryTransferDetailRequest) (*agent.TransferDetail, error)
QueryTransferDetail 转账-查询转账单信息(代理) 转账单信息,包括状态、双方账户、转账金额
func RefundTransferSeqCommit ¶ added in v1.13.9
func RefundTransferSeqCommit(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.FundTransferSeqCommitRequest) (string, error)
RefundTransferSeqCommit 提交退款交易号(方舟) 退款接口分为两步, 包含创建退款接口 和 提交退款接口,本接口为第二步
func RefundTransferSeqCreate ¶ added in v1.13.9
func RefundTransferSeqCreate(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.FundTransferSeqCreateRequest) (string, error)
RefundTransferSeqCreate 创建退款交易号(方舟) 退款接口分为两步, 包含创建退款接口 和 提交退款接口,本接口为第一步
func TransferTransactionRecord ¶ added in v1.25.1
func TransferTransactionRecord(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.TransferTransactionRecordRequest) (*agent.TransferTransactionRecordResult, error)
TransferTransactionRecord 查询代理商转账记录 代理商转账记录查询,相关功能与代理商平台的「商务-转账记录-账户转账记录」模块对齐。
Types ¶
This section is empty.
Source Files ¶
- advertiser_copy.go
- advertiser_recharge.go
- advertiser_refund.go
- advertiser_select.go
- advertiser_update.go
- child_agent_select.go
- create_transfer.go
- doc.go
- fund_transfer_seq_commit.go
- fund_transfer_seq_create.go
- info.go
- query_can_tranfser_balance.go
- query_risk_promotion_list.go
- query_tranfser_balance.go
- query_transfer_detail.go
- refund_transfer_seq_commit.go
- refund_transfer_seq_create.go
- transfer_transaction_record.go