baidusms

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

百度营销 MarketingAPI Golang SDK

  • 账户管理
    • 财务管理 (api/account/balance)
      • 查询账户余额成分 [ GetBalanceInfo(clt *core.SDKClient, auth model.RequestHeader, productIds[]int64) ([]balance.BalanceInfo, error) ]
      • 查询转账记录 [ GetAccountTransferHistory(clt *core.SDKClient, auth model.RequestHeader, startTime time.Time, endTime time.Time) ([]balance.AccountTransferHistory, error) ]
      • 查询待加款信息 [ GetPaymentHistory(clt *core.SDK, auth model.RequestHeader, reqBody balance.GetPaymentHistoryRequest) ([]balance.PaymentHistory, error) ]
      • 查询付款信息与待加款信息 [ GetPaymentRecord(clt *core.SDK, auth model.RequestHeader, reqBody balance.GetPaymentRecordRequest) (*balance.GetPaymentRecordResponse, error) ]
    • 账户管家管理 [ GetUserListByMccid(clt *core.SDK, auth model.RequestHeader) ([]account.MccUser, error) ]
  • 搜索广告投放 (api/search)
    • 账户 (api/search/account)
      • 查询账户 [ GetAccountInfo(clt *core.SDKClient, auth model.RequestHeader, accountFields []string) ([]account.Account, error) ]
      • 更新账户 [ UpdateAccountInfo(clt *core.SDKClient, auth model.RequestHeader, account *account.Account) ([]account.Account, error) ]
    • 计划 (api/search/campaign)
      • 查询计划 [ GetCampaign(clt *core.SDKClient, auth model.RequestHeader, reqBody *campaign.GetCampaignRequest) ([]campaign.Campaign, error) ]
      • 添加计划 [ AddCampaign(clt *core.SDKClient, auth model.RequestHeader, reqBody *campaign.AddCampaignRequest) ([]campaign.Campaign, error) ]
      • 更新计划 [ UpdateCampaign(clt *core.SDKClient, auth model.RequestHeader, campaigns []campaign.Campaign) ([]campaign.Campaign, error) ]
      • 删除计划 [ DeleteCampaign(clt *core.SDKClient, auth model.RequestHeader, campaignIds []int64) error ]
    • 单元 (api/search/adgroup)
      • 查询单元 [ GetAdgroup(clt *core.SDKClient, auth model.RequestHeader, reqBody *adgroup.GetAdgroupRequest) ([]adgroup.Adgroup, error) ]
      • 添加单元 [ AddAdgroup(clt *core.SDKClient, auth model.RequestHeader, reqBody *adgroup.AddAdgroupRequest) ([]adgroup.Adgroup, error) ]
      • 更新单元 [ UpdateAdgroup(clt *core.SDKClient, auth model.RequestHeader, adgroups []adgroup.Adgroup) ([]adgroup.Adgroup, error) ]
      • 删除单元 [ DeleteAdgroup(clt *core.SDKClient, auth model.RequestHeader, adgroupIds []int64) error ]
    • 创意 (api/search/creative)
      • 查询创意 [ GetCreative(clt *core.SDKClient, auth model.RequestHeader, reqBody *creative.GetCreativeRequest) ([]creative.Creative, error) ]
      • 添加创意 [ AddCreative(clt *core.SDKClient, auth model.RequestHeader, reqBody *creative.AddCreativeRequest) ([]creative.Creative, error) ]
      • 更新创意 [ UpdateCreative(clt *core.SDKClient, auth model.RequestHeader, creatives []creative.Creative) ([]creative.Creative, error) ]
      • 删除创意 [ DeleteCreative(clt *core.SDKClient, auth model.RequestHeader, creativeIds []int64) error ]
  • 信息流广告投放 (api/feed)
    • 账户 (api/feed/account)
      • 查询账户 [ GetAccountFeed(clt *core.SDKClient, auth model.RequestHeader, accountFields []string) ([]account.Account, error) ]
      • 更新账户 [ UpdateAccountFeed(clt *core.SDKClient, auth model.RequestHeader, budget float64) ([]account.Account, error) ]
    • 计划 (api/feed/campaign)
      • 查询计划 [ GetCampaign(clt *core.SDKClient, auth model.RequestHeader, reqBody *campaign.GetCampaignFeedRequest) ([]campaign.Campaign, error) ]
    • 单元
      • 原生推广单元 (api/feed/adgroup/native)
        • 查询原生推广单元 [ GetAdgroup(clt *core.SDKClient, auth model.RequestHeader, reqBody *native.GetAdgroupFeedRequest) ([]native.Adgroup, error) ]
      • 商品推广单元 (api/feed/adgroup/dpa)
        • 查询商品推广单元 [ GetAdgroup(clt *core.SDKClient, auth model.RequestHeader, reqBody *dpa.GetAdgroupFeedRequest) ([]dpa.Adgroup, error) ]
  • 搜索报告 (api/search/report)
    • 推广报告 [ GetRealTimeData(clt *core.SDKClient, auth model.RequestHeader, realTimeRequest *report.ReqlTimeRequest) ([]report.RealTimeResult, error) ]
    • 账户实时数据 [ GetAccountLiveData(clt *core.SDKClient, auth model.RequestHeader, dataType int, device int) ([]report.AccountLiveData, error) ]
    • 关键词实时数据 [ GetKeywordLiveData(clt *core.SDKClient, auth model.RequestHeader, reqBody *report.GetKeywordLiveDataRequest) ([]report.KeywordLiveData, error) ]
    • 创建异步报告,获取报告 ID(reportId) [ GetProfessionalReportId(clt *core.SDKClient, auth model.RequestHeader, reqBody *report.ReportRequest) (string, error) ]
    • 获取异步报告状态 [ GetReportState(clt *core.SDKClient, auth model.RequestHeader, reportId string) (int, error) ]
    • 获取异步报告文件 URL [ GetReportFileUrl(clt *core.SDKClient, auth model.RequestHeader, reportId string) (string, error) ]
  • 信息流报告 (api/feed/report)
    • 推广报告 [ GetRealTimeData(clt *core.SDKClient, auth model.RequestHeader, realTimeRequest *report.ReqlTimeRequest) ([]report.RealTimeResult, error) ]
    • 创建异步报告,获取报告 ID(reportId) [ GetReportFeedId(clt *core.SDKClient, auth model.RequestHeader, reqBody *report.ReportRequest) (string, error) ]
    • 获取异步报告状态 [ GetReportFeedState(clt *core.SDKClient, auth model.RequestHeader, reportId string) (int, error) ]
    • 获取异步报告文件 URL [ GetReportFeedFileUrl(clt *core.SDKClient, auth model.RequestHeader, reportId string) (string, error) ]
  • 资产管理 (api/asset)
    • 图片 (api/asset/image)
      • 查询图片 [ GetImage(clt *core.SDKClient, auth model.RequestHeader, reqBody *image.GetImageRequest) ([]image.Image, error) ]
    • 视频 (api/asset/video)
      • 查询图片 [ GetVideo(clt *core.SDKClient, auth model.RequestHeader, reqBody *image.GetVideoRequest) ([]video.Video, error) ]
  • 转化上报 (api/ocpc)
    • 广告主回传转化数据接口 [ UploadConvertData(clt *core.SDKClient, req *ocpc.UploadConvertDataRequest) error ]
    • 广告主回传无效转化数据接口 [ UploadInvalidConvertData(clt *core.SDKClient, req *ocpc.UploadInvalidConvertDataRequest) error ]
    • APP 转化数据收集 [ ActionCb(req *ocpc.ActionCbRequest) error ]

Documentation

Overview

百度营销 golang sdk

Directories

Path Synopsis
api
account
账户管理 实现账户信息管理,包括账户管家获取子账号,付款记录等财务信息的查询
账户管理 实现账户信息管理,包括账户管家获取子账号,付款记录等财务信息的查询
account/balance
财务管理
财务管理
asset
资产管理
资产管理
feed
信息流广告
信息流广告
feed/report
信息流数据报告
信息流数据报告
ocpc
转化上报 当前主要是oCPC相关的各种转化对接上报能力的介绍
转化上报 当前主要是oCPC相关的各种转化对接上报能力的介绍
search
搜索广告投放
搜索广告投放
search/account
账户服务,用于查询/更新账户所有属性,包括:账户余额、预算、地域、注册域名等
账户服务,用于查询/更新账户所有属性,包括:账户余额、预算、地域、注册域名等
search/report
搜索报告 通过报告接口,您可以拉取到广告的投放数据,同时支持实现实时、异步获取数据报告两种拉取方式。
搜索报告 通过报告接口,您可以拉取到广告的投放数据,同时支持实现实时、异步获取数据报告两种拉取方式。
feed/adgroup/dpa
Package dpa 商品推广单元相关api models
Package dpa 商品推广单元相关api models
feed/adgroup/native
Package native 原生推广单元相关API models
Package native 原生推广单元相关API models

Jump to

Keyboard shortcuts

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