Documentation ¶
Overview ¶
Package advertiser 账号服务相关API
Index ¶
- func AccountFundGet(clt *core.SDKClient, accessToken string, req *advertiser.AccountFundGetRequest) ([]advertiser.AccountFund, error)
- func AttachmentUpload(clt *core.SDKClient, accessToken string, ...) (uint64, error)
- func AvatarGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.AvatarGetResponseData, error)
- func AvatarSubmit(clt *core.SDKClient, accessToken string, req *advertiser.AvatarSubmitRequest) error
- func AvatarUpload(clt *core.SDKClient, accessToken string, req *advertiser.AvatarUploadRequest) (string, error)
- func BudgetGet(clt *core.SDKClient, accessToken string, advertiserIDs []uint64) ([]advertiser.BudgetGetResponseList, error)
- func DeliveryPkgConfig(clt *core.SDKClient, accessToken string, ...) (*advertiser.IndustryConfig, error)
- func DeliveryPkgGet(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryPkgGetRequest) (*advertiser.DeliveryPkg, error)
- func DeliveryPkgSubmit(clt *core.SDKClient, accessToken string, ...) (*advertiser.DeliveryPkgSubmitResult, error)
- func DeliveryQualificationList(clt *core.SDKClient, accessToken string, ...) (*advertiser.DeliveryQualificationListData, error)
- func DeliveryQualificationSubmit(clt *core.SDKClient, accessToken string, ...) ([]uint64, error)
- func FundDailyStat(clt *core.SDKClient, accessToken string, req *advertiser.FundDailyStatRequest) (*advertiser.FundDailyStatResponseData, error)
- func FundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.FundGetResult, 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 QualificationCreate(clt *core.SDKClient, accessToken string, ...) error
- func QualificationGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.Qualification, error)
- func QualificationSelect(clt *core.SDKClient, accessToken string, advertiserID uint64) ([]advertiser.AdQualification, error)
- func QualificationSubmit(clt *core.SDKClient, accessToken string, ...) 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 AccountFundGet ¶ added in v1.25.1
func AccountFundGet(clt *core.SDKClient, accessToken string, req *advertiser.AccountFundGetRequest) ([]advertiser.AccountFund, error)
AccountFundGet 批量查询账户余额 批量查询账号余额,支持AD、星图、本地推账户
func AttachmentUpload ¶ added in v1.11.0
func AttachmentUpload(clt *core.SDKClient, accessToken string, req *advertiser.AttachmentUploadRequest) (uint64, error)
AttachmentUpload 批量上传资质附件 附件上传接口,在通过【投放资质提交】接口提交资质前,需要将资质附件从本接口上传至认证中心,获取附件id,将附件id作为入参传入投放资质提交接口
func AvatarGet ¶ added in v1.2.3
func AvatarGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.AvatarGetResponseData, error)
AvatarGet 获取广告主头像信息
func AvatarSubmit ¶ added in v1.23.4
func AvatarSubmit(clt *core.SDKClient, accessToken string, req *advertiser.AvatarSubmitRequest) error
AvatarSubmit 更新广告主账户头像
func AvatarUpload ¶ added in v1.23.4
func AvatarUpload(clt *core.SDKClient, accessToken string, req *advertiser.AvatarUploadRequest) (string, error)
AvatarUpload 获取广告主账户头像ID 本接口用户获取广告主账户头像的image_id,您可使用该id调用「更新广告主账户头像」接口完成账户头像更新 【注意】本接口的功能仅用于获取image_id,上传成功 ≠ 更新头像,更新头像的接口是「更新广告主账户头像」接口
func BudgetGet ¶ added in v1.2.3
func BudgetGet(clt *core.SDKClient, accessToken string, advertiserIDs []uint64) ([]advertiser.BudgetGetResponseList, error)
BudgetGet 获取账户日预算 此接口可以获取广告主账号设置的预算类型与预算,可以一次查询100个广告主账号预算;
func DeliveryPkgConfig ¶ added in v1.21.5
func DeliveryPkgConfig(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryPkgConfigRequest) (*advertiser.IndustryConfig, error)
DeliveryPkgConfig 查询推广产品资质规则配置 根据商业化行业获取不同行业下对应的资质提交规则。需注意:每个行业下的资质提交规则可能会因平台及外部监管的要求而发生变化,当规则发生变更时,规则的版本号+1
func DeliveryPkgGet ¶ added in v1.21.5
func DeliveryPkgGet(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryPkgGetRequest) (*advertiser.DeliveryPkg, error)
DeliveryPkgGet 查询推广产品资质 用于查询广告主以推广产品形式提交的投放资质,可以获取到资质审核状态等信息
func DeliveryPkgSubmit ¶ added in v1.21.5
func DeliveryPkgSubmit(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryPkgSubmitRequest) (*advertiser.DeliveryPkgSubmitResult, error)
DeliveryPkgSubmit 提交/编辑推广产品资质 用于提交以推广产品形式整组提交的投放资质,该接口可以同时用于新增和编辑。针对审核不通过的推广产品资质支持编辑提交
func DeliveryQualificationList ¶ added in v1.11.0
func DeliveryQualificationList(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryQualificationListRequest) (*advertiser.DeliveryQualificationListData, error)
DeliveryQualificationList 投放资质查询 用于查询账户投放资质
func DeliveryQualificationSubmit ¶ added in v1.11.0
func DeliveryQualificationSubmit(clt *core.SDKClient, accessToken string, req *advertiser.DeliveryQualificationSubmitRequest) ([]uint64, error)
DeliveryQualificationSubmit 投放资质提交 ## 提交接口使用必看 该接口用于广告主投放资质提交,请注意以下使用规则: - 需要将资质上传至对应的同名资质类型中,资质类型选择错误将会被审核拒绝。若找不到对应的资质类型,可以上传至“其他资质”,详细的资质类型可选值见下方接口入参。 - 需要上传多份资质时,例如要上传三份肖像授权书,请将每一份肖像授权书分开上传,多份资质合并上传将会被审核拒绝。 - 对于一份完整资质的多张图片请上传至一个资质id中,例如一份经销授权书的3张图片内容
- 错误方式:分3次调用接口,会导致资质接收不全而被拒绝
- 正确方式:将一份完整的资质调一次接口上传至一个资质中,保证审核平台能够一次收到完整的资质内容
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.FundGetResult, 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 QualificationCreate ¶ added in v1.9.11
func QualificationCreate(clt *core.SDKClient, accessToken string, req *advertiser.QualificationCreateRequest) error
QualificationCreate 批量上传投放资质
func QualificationGet ¶ added in v1.9.11
func QualificationGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.Qualification, error)
QualificationGet 获取广告主资质(新版) 获取广告主资质信息为全量接口,会返回广告主所有资质,注意如果广告主没有任何资质,这个接口的data将会是空。
func QualificationSelect ¶ added in v1.9.11
func QualificationSelect(clt *core.SDKClient, accessToken string, advertiserID uint64) ([]advertiser.AdQualification, error)
QualificationSelect 获取投放资质信息(新版) 获取广告主资质信息,资质分为描述,营业执照,开户资质,投放资质。不同类型的资质有不同的字段,具体字段见下表。
func QualificationSubmit ¶ added in v1.9.11
func QualificationSubmit(clt *core.SDKClient, accessToken string, req *advertiser.QualificationSubmitRequest) error
QualificationSubmit 提交广告主资质(新版) 提交广告主资质信息为全量接口。更新的时候需要全量先获取所有资质,然后更新相应资质。
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.
Source Files ¶
- account_fund_get.go
- attachment_upload.go
- avatar_get.go
- avatar_submit.go
- avatar_upload.go
- budget_get.go
- delivery_pkg_config.go
- delivery_pkg_get.go
- delivery_pkg_submit.go
- delivery_qualification_list.go
- delivery_qualification_submit.go
- doc.go
- fund_daily_stat.go
- fund_get.go
- fund_transaction_get.go
- info.go
- public_info.go
- qualification_create.go
- qualification_get.go
- qualification_select.go
- qualification_submit.go
- transferable_fund_get.go
- update_budget.go