marketingapi

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

巨量引擎 MarketingAPI Golang SDK

Go Reference Go goreleaser GitHub go.mod Go version of a Go module GoReportCard GitHub license GitHub release

  • Oauth2 授权 (api/oauth)
    • 生成授权链接 [ Url(clt *core.SDKClient, redirectUrl string, state string, materialAuth bool) string ]
    • 获取 AccessToken [ AccessToken(clt *core.SDKClient, authCode String) (*oauth.AccessTokenResponseData, error) ]
    • 刷新 Token [ RefreshToken(clt *core.SDKClient, refreshToken string) (*oauth.AccessTokenResponseData, error)]
    • 获取已授权账户 [ AdvertiserGet(clt *core.SDKClient, accessToken string) ([]oauth.Advertiser, error) ]
    • 获取授权 User 信息 [ UserInfo(clt *core.SDKClient, accessToken string) (*oauth.UserInfoResponseData, error) ]
  • 账号服务
    • 广告主信息与资质管理 (api/advertiser)
      • 广告主信息 [ Info(clt *core.SDKClient, accessToken string, req *advertiser.InfoRequest) ([]advertiser.Info, error) ]
      • 广告主公开信息 [ PublicInfo(clt *core.SDKClient, accessToken string, req *advertiser.PublicInfoRequest) ([]advertiser.PublicInfo, error) ]
      • 获取广告主头像信息 [ AvatarGet(clt *core.SDK, accessToken string, advertiserID uint64) (*advertiser.AvatarGetResponseData, error) ]
    • 代理商账号管理 (api/agent)
      • 广告主列表 [ AdvertiserSelect(clt *core.SDKClient, accessToken string, req *agent.AdvertiserSelectRequest) (*agent.AdvertiserSelectResponseData, error) ]
      • 修改广告主 [ AdvertiserUpdate(clt *core.SDKClient, accessToken string, req *agent.AdvertiserUpdateRequest) (*agent.AdvertiserUpdateResponseData, error) ]
      • 二级代理商列表 [ ChildAgentSelect(clt *core.SDKClient, accessToken string, req *agent.ChildAgentSelectRequest) ([]uint64, error) ]
      • 获取代理商信息 [ Info(clt *core.SDKClient, accessToken string, req *agent.InfoRequest) ([]agent.Info, error) ]
    • 账号管家管理 (api/majordomo)
      • 广告主列表 [ MajordomoSelect(clt *core.SDKClient, accessToken string, req *majordomo.AdvertiserSelectRequest) ([]majordomo.AdvertiserSelectResponseList, error) ]
    • 资金和流水管理 (api)
      • 查询账号余额 [ advertiser.FundGet(clt *core.SDKClient, accessToken string, advertiserID uint64) (*advertiser.FundGetResponseData, error) ]
      • 查询账号日流水 [ advertiser.FundDailyStat(clt *core.SDKClient, accessToken string, req *advertiser.FundDailyStatRequest) (*advertiser.FundDailyStatResponseData, error) ]
      • 查询账号流水明细 [ advertiser.FundTransactionGet(clt *core.SDKClient, accessToken string, req *advertiser.FundTransactionGetRequest) ([]advertiser.FundTransactionGetResponseList, error) ]
      • 代理商转账 [ agent.AdvertiserRecharge(clt *core.SDKClient, accessToken string, req *agent.AdvertiserRechargeRequest) (string, error) ]
      • 代理商退款 [ agent.AdvertiserRefund(clt *core.SDKClient, accessToken string, req *agent.AdvertiserRefundRequest) (string, error) ]
  • 广告投放
    • 广告账户预算 (api)
      • 获取账户日预算 [ advertiser.BudgetGet(clt *core.SDKClient, accessToken string, req *advertiser.BudgetGetRequest) ([]advertiser.BudgetGetResponseList, error) ]
      • 更新账户日预算 [ advertiser.UpdateBudget(clt *core.SDKClient, accessToken string, req *advertiser.UpdateBudgetRequest) error ]
    • 广告组 (api/campaign)
      • 获取广告组 [ Get(clt *core.SDKClient, accessToken string, req *campaign.GetRequest) (*campaign.GetResponseData, error) ]
      • 创建广告组 [ Create(clt *core.SDKClient, accessToken string, req *campaign.CreateRequest) (uint64, error) ]
      • 修改广告组 [ Update(clt *core.SDKClient, accessToken string, req *campaign.UpdateRequest) (uint64, error) ]
      • 广告组更新状态 [ UpdateStatus(clt *core.SDKClient, accessToken string, req *campaign.UpdateStatusRequest) (*campaign.UpdateResponseData, error) ]
    • 广告计划模块 (api/ad)
      • 获取广告计划 [ Get(clt *core.SDKClient, accessToken string, req *ad.GetRequest) (*ad.GetResponseData, error) ]
      • 更新计划状态 [ UpdateStatus(clt *core.SDKClient, accessToken string, req *ad.UpdateStatusRequest) (*ad.UpdateResponseData, error) ]
      • 更新计划预算 [ UpdateBudget(clt *core.SDKClient, accessToken string, req *ad.UpdateBudgetRequest) (*ad.UpdateResponseData, error) ]
      • 更新计划出价 [ UpdateBid(clt *core.SDKClient, accessToken string, req *ad.UpdateBidRequest) (*ad.UpdateResponseData, error) ]
  • 数据报表
    • 广告数据报表 (api/report)
      • 广告主数据 [ AdvertiserGet(clt *core.SDKClient, accessToken string, req *report.GetRequest) (*report.GetResponseData, error) ]
      • 广告组数据 [ CampaignGet(clt *core.SDKClient, accessToken string, req *report.GetRequest) (*report.GetResponseData, error) ]
      • 广告计划数据 [ AdGet(clt *core.SDKClient, accessToken string, req *report.GetRequest) (*report.GetResponseData, error) ]
      • 广告创意数据 [ CreativeGet(clt *core.SDKClient, accessToken string, req *report.GetRequest) (*report.GetResponseData, error) ]
      • 多合一数据报表接口 [ IntegratedGet(clt *core.SDKClient, accessToken string, req *report.IntegratedRequest) (*report.IntegratedResponseData, error) ]
      • 视频素材报表 [ VideoGet(clt *core.SDKClient, accessToken string, req *report.IntegratedRequest) (*report.IntegratedResponseData, error) ]
      • 视频互动流失数据 [ VideoFrameGet(clt *core.SDKClient, accessToken string, req *report.VideoFrameRequest) ([]report.VideoFrameResponseDataList, error) ]
      • 分级模糊数据 [ MistyGet(clt *core.SDKClient, accessToken string, req *report.IntegratedRequest) (*report.IntegratedResponseData, error) ]
    • 受众分析数据报表 (api/report/audience)
      • 行为兴趣数据 [ InterestActionList(clt *core.SDKClient, accessToken string, req *audience.ListRequest) (*audience.ListResponseData, error) ]
      • 抖音达人数据 [ AwemeList(clt *core.SDKClient, accessToken string, req *audience.ListRequest) (*audience.ListResponseData, error) ]
      • 省级数据 [ Province(clt *core.SDKClient, accessToken string, req *audience.Request) ([]audience.ResponseData, error) ]
      • 市级数据 [ City(clt *core.SDKClient, accessToken string, req *audience.Request) ([]audience.ResponseData, error) ]
      • 性别数据 [ Gender(clt *core.SDKClient, accessToken string, req *audience.Request) ([]audience.ResponseData, error) ]
      • 兴趣数据 [ Tag(clt *core.SDKClient, accessToken string, req *audience.Request) ([]audience.ResponseData, error) ]
      • 年龄数据 [ Age(clt *core.SDKClient, accessToken string, req *audience.Request) ([]audience.ResponseData, error) ]
    • 电商直播数据报表 (api/report/liveroom)
      • 直播间属性报表 [ AttributeGet(clt *core.SDKClient, accessToken string, req *liveroom.Request) (*liveroom.ResponseData, error) ]
      • 直播间分析报表 [ AnalysisGet(clt *core.SDKClient, accessToken string, req *liveroom.Request) (*liveroom.ResponseData, error) ]
      • 直播间流量来源报表 [ FlowCategoryGet(clt *core.SDKClient, accessToken string, req *liveroom.Request) (*liveroom.ResponseData, error) ]
      • 直播间商品分析报表 [ ProductGet(clt *core.SDKClient, accessToken string, req *liveroom.Request) (*liveroom.ResponseData, error) ]
      • 直播受众分析报表 [ AudiencePortraitGet(clt *core.SDKClient, accessToken string, req *liveroom.Request) (*liveroom.ResponseData, error) ]
  • DMP 人群管理 (api/dmp)
    • 数据源文件上传 [ datasource.FileUpload(clt *core.SDKClient, accessToken string, req *datasource.FileUploadRequest) (string, error) ]
    • 数据源创建 [ datasource.Create(clt *core.SDKClient, accessToken string, req *datasource.CreateRequest) (string, error) ]
    • 数据源更新 [ datasource.Update(clt *core.SDKClient, accessToken string, req *datasource.UpdateRequest) error ]
    • 数据源详细信息 [ datasource.Read(clt *core.SDKClient, accessToken string, req *datasource.ReadRequest) ([]datasource.DataSource, error) ]
    • 人群包列表 [ customaudience.Select(clt *core.SDKClient, accessToken string, req *customaudience.SelectRequest) (*customaudience.SelectResponseData, error) ]
    • 人群包详细信息 [ customaudience.Read(clt *core.SDKClient, accessToken string, req *customaudience.ReadRequest) ([]customaudience.CustomAudience, error) ]
    • 发布人群包 [ customaudience.Publish(clt *core.SDKClient, accessToken string, req *customaudience.PublishRequest) error ]
    • 推送人群包 [ customaudience.Push(clt *core.SDKClient, accessToken string, req *customaudience.PushRequest) error ]
    • 删除人群包 [ customaudience.Delete(clt *core.SDKClient, accessToken string, req *customaudience.DeleteRequest) error ]
  • 搜索广告
    • 广告组 [ campaign.Create(clt *core.SDKClient, accessToken string, req *campaign.CreateRequest) (uint64, error) ]
    • 关键词管理 (api/keyword)
      • 获取关键词列表 [ Get(clt *core.SDKClient, accessToken string, req *keyword.GetRequest) ([]keyword.Keyword, error) ]
      • 创建关键词 [ Create(clt *core.SDKClient, accessToken string, req *keyword.CreateRequest) (*keyword.ResponseData, error) ]
      • 更新关键词 [ Update(clt *core.SDKClient, accessToken string, req *keyword.UpdateRequest) (*keyword.ResponseData, error) ]
      • 删除关键词 [ Delete(clt *core.SDKClient, accessToken string, req *keyword.DeleteRequest) (*keyword.ResponseData, error) ]
      • 搜索快投关键词推荐 [ Suggest(clt *core.SDKClient, accessToken string, req *keyword.SuggestRequest) ([]keyword.SuggestKeyword, error) ]
    • 否定词管理 (api/privativeword)
      • 批量新增计划否定词 [ AdAdd(clt *core.SDKClient, accessToken string, req *privativeword.AdAddRequest) (*privativeword.AdAddResponseData, error) ]
      • 设置计划否定词 [ AdUpdate(clt *core.SDKClient, accessToken string, req *privativeword.AdUpdateRequest) (uint64, error) ]
      • 批量新增组否定词 [ CampaignAdd(clt *core.SDKClient, accessToken string, req *privativeword.CampaignAddRequest) (*privativeword.CampaignAddResponseData, error) ]
      • 设置组否定词 [ CampaignUpdate(clt *core.SDKClient, accessToken string, req *privativeword.AdUpdateRequest) (uint64, error) ]
      • 获取否定词列表 [ Get(clt *core.SDKClient, accessToken string, req *privativeword.GetRequest) (*privativeword.GetResponseData, error) ]
  • 素材管理 (api/file)
    • 上传广告主图片 [ ImageAdvertiser(clt *core.SDKClient, accessToken string, req *file.ImageAdvertiserRequest) (*file.Image, error) ]
    • 上传广告图片 [ ImageAd(clt *core.SDKClient, accessToken string, req *file.ImageAdRequest) (*file.Image, error) ]
    • 上传视频 [ VideoAd(clt *core.SDKClient, accessToken string, req *file.VideoAdRequest) (*file.Video, error) ]
    • 获取图片素材 [ ImageGet(clt *core.SDKClient, accessToken string, req *file.ImageGetRequest) (*file.ImageGetResponseData, error) ]
    • 获取视频素材 [ VideoGet(clt *core.SDKClient, accessToken string, req *file.VideoGetRequest) (*file.VideoGetResponseData, error) ]
    • 获取视频智能封面 [ VideoCoverSuggest(clt *core.SDKClient, accessToken string, req *file.VideoCoverSuggestRequest) (*file.VideoCoverSuggestResponseData, error) ]
    • 获取同主体下广告主图片素材 [ ImageAdGet(clt *core.SDKClient, accessToken string, req *file.ImageAdGetRequest) ([]file.Image, error) ]
    • 获取同主体下广告主视频素材 [ VideoAdGet(clt *core.SDKClient, accessToken string, req *file.VideoAdGetRequest) ([]file.Video, error) ]
    • 素材推送 [ MaterialBind(clt *core.SDKClient, accessToken string, req *file.MaterialBindRequest) ([]file.FailedMaterialBind, error) ]
    • 批量删除视频素材 [ VideoDelete(clt *core.SDKClient, accessToken string, req *file.VideoDeleteRequest) ([]string, error) ]
    • 更新视频 [ VideoUpdate(clt *core.SDKClient, accessToken string, req *file.VideoUpdateRequest) ([]file.VideoForUpdate, error) ]
  • 建站管理
    • 第三方落地页管理
      • 获取第三方落地页站点列表 [ tools/thirdsite.Get(clt *core.SDKClient, accessToken string, req *thirdsite.GetRequest) (*thirdsite.GetResponseData, error) ]
      • 创建第三方落地页站点 [ tools/thirdsite.Create(clt *core.SDKClient, accessToken string, req *thirdsite.CreateRequest) (uint64, error) ]
      • 修改第三方落地页站点 [ tools/thirdsite.Update(clt *core.SDKClient, accessToken string, req *thirdsite.UpdateRequest) (uint64, error) ]
      • 删除第三方落地页站点 [ tools/thirdsite.Delete(clt *core.SDKClient, accessToken string, req *thirdsite.DeleteRequest) (uint64, error) ]
      • 获取第三方落地页预览地址 [ tools/thirdsite.Preview(clt *core.SDKClient, accessToken string, req *thirdsite.PreviewRequest) (*thirdsite.PreviewResponseData, error) ]
  • 资产
    • 事件管理
      • 获取推广内容 [ tools/event.AssetsGet(clt *core.SDKClient, accessToken string, req *event.AssetsGetRequest) (*event.AssetsGetResponseData, error) ]
      • 获取优化目标 [ tools/event.ConvertOptimizedGoalGet(clt *core.SDKClient, accessToken string, req *event.ConvertOptimizedGoalGetRequest) (*event.ConvertOptimizedGoalGetResponseData, error) ]
  • 数据上报管理 (api/track)
    • 转化回传 [ Active(req *track.ActiveRequest) error ]
  • 事件管理(api/conversion)
    • 转化回传 [ Conversion(req *conversion.Request) error ]
  • 工具
    • 查询工具
      • 日志查询 [ tools/log.Search(clt *core.SDKClient, accessToken string, req *log.SearchRequest) (*log.SearchResponseData, error) ]
      • 查询广告质量度 [ tools.AdQualityGet(clt *core.SDKClient, accessToken string, req *tools.AdQualityGetRequest) ([]tools.AdQuality, error) ]
      • 查询广告计划学习期状态 [ tools.AdStatExtraInfoGet(clt *core.SDKClient, accessToken string, req *tools.AdStatExtraInfoGetRequest) ([]tools.AdStatExtraInfo, error) ]
      • 获取广告预览二维码 [ tools/adpreview.QrcodeGet(clt *core.SDKClient, accessToken string, req *adpreview.QrcodeGetRequest) (*adpreview.QrcodeGetResponseData, error) ]

Documentation

Overview

Package marketingapi 巨量引擎marketing-api

Directories

Path Synopsis
api
ad
Package ad 广告组相关API
Package ad 广告组相关API
advertiser
Package advertiser 账号服务相关API
Package advertiser 账号服务相关API
agent
Package agent 代理商账号管理相关API
Package agent 代理商账号管理相关API
campaign
Package campaign 广告计划相关API
Package campaign 广告计划相关API
conversion
Package conversion 数据回传管理相关API [事件管理操作手册](https://event-manager.oceanengine.com/docs/8650/event_manager_docs/)
Package conversion 数据回传管理相关API [事件管理操作手册](https://event-manager.oceanengine.com/docs/8650/event_manager_docs/)
dmp
Package dmp DMP人群管理相关API
Package dmp DMP人群管理相关API
dmp/customaudience
Package customaudience 人群包相关API
Package customaudience 人群包相关API
dmp/datasource
Package datasource 数据源相关API
Package datasource 数据源相关API
file
Package file 素材管理相关API
Package file 素材管理相关API
keyword
Package keyword 关键词管理相关API
Package keyword 关键词管理相关API
majordomo
Package majordomo 管家账号相关API
Package majordomo 管家账号相关API
oauth
Package oauth OAuth授权相关API
Package oauth OAuth授权相关API
privativeword
Package privativeword 否定词管理相关API
Package privativeword 否定词管理相关API
report
Package report 数据报表相关API
Package report 数据报表相关API
report/audience
Package audience 受众分析相关API
Package audience 受众分析相关API
report/liveroom
Package liveroom 电商直播间数据报表相关API
Package liveroom 电商直播间数据报表相关API
tools
Package tools 工具类API
Package tools 工具类API
tools/event
Package event 资产 - 事件管理 相关API
Package event 资产 - 事件管理 相关API
tools/log
Package log 工具-查询工具-日志查询API
Package log 工具-查询工具-日志查询API
tools/thirdsite
Package thirdsite 第三方落地页管理API
Package thirdsite 第三方落地页管理API
Package core 包含SDKClient
Package core 包含SDKClient
Package model 包含API所需结构体
Package model 包含API所需结构体
ad
Package ad 广告计划相关API models
Package ad 广告计划相关API models
agent
Package agent 代理商相关API models
Package agent 代理商相关API models
conversion
Package conversion 新版转换回传API models
Package conversion 新版转换回传API models
dmp
Package dmp DMP人群管理API models
Package dmp DMP人群管理API models
dmp/customaudience
Package customaudience人群包相关API models
Package customaudience人群包相关API models
dmp/datasource
Package datasource 数据源相关API models
Package datasource 数据源相关API models
file
Package file 素材管理相关API models
Package file 素材管理相关API models
keyword
Package keyword 关键词管理
Package keyword 关键词管理
majordomo
Package majordomo 管家账号相关API models
Package majordomo 管家账号相关API models
oauth
Package oauth OAuth授权相关API models
Package oauth OAuth授权相关API models
privativeword
Package privativeword 包含否定词相关API models
Package privativeword 包含否定词相关API models
report
Package report 数据报表相关API models
Package report 数据报表相关API models
report/audience
Package audience 受众分析数据报表 API models
Package audience 受众分析数据报表 API models
report/liveroom
Package liveroom 直播分析数据报表 API models
Package liveroom 直播分析数据报表 API models
sip
Package sip SPI推送相关API models
Package sip SPI推送相关API models
tools
Package tools 工具相关API models
Package tools 工具相关API models
tools/event
Package event 资产 - 事件管理 相关API models
Package event 资产 - 事件管理 相关API models
tools/log
Package log 工具-查询工具-日志查询API models
Package log 工具-查询工具-日志查询API models
tools/thirdsite
Package thirdsite 第三方落地页管理API models
Package thirdsite 第三方落地页管理API models
track
Package track 数据上报管理相关API models
Package track 数据上报管理相关API models

Jump to

Keyboard shortcuts

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