oceanengine

package module
v0.0.0-...-85f63e2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 1 Imported by: 0

README

oceanengine

巨量引擎 头条广告SDK

Usage Examples
// 初始化
adClient := ads.Init(true)
adClient.UseProduction()
adClient.Cfg.SetAccessToken("token")
adClient.Cfg.SetUserAgent("golang sdk")
apiLog, _ := os.OpenFile("api.log", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0644)
defer apiLog.Close()
adClient.AppendMiddleware(ads.NewLogMiddleware(adClient, apiLog))

param := models.AdAdGetOpts{}
param.PageSize = optional.NewInt64(100)
if rsp, header, err := adClient.Client.AdApi.Get(context.Background(), 123456789, param); err != nil {
    e := err.(api.SwaggerError)
    fmt.Printf("Code: \n",e.Code())
    fmt.Printf("RawBody: \n",e.Body())
    fmt.Printf("Message: \n",e.Message())
    fmt.Printf("RequestId: \n",e.RequestId())
    }
fmt.Printf("response: %+v\n",rsp)
fmt.Printf("headers: %+v\n",header)
已实现接口
  • 广告投放
  • 广告账户预算
    • 获取账户日预算
    • 更新账户日预算
  • 广告组
    • 获取广告组
    • 创建广告组
    • 修改广告组
    • 广告组更新状态
  • 广告计划模块
    • 获取广告计划
    • 创建广告计划
    • 修改广告计划
    • 更新计划状态
    • 更新计划预算
    • 更新计划出价
    • 获取计划审核建议
  • 广告创意模块
    • 获取创意列表
    • 创建广告创意
    • 创意详细信息
    • 修改创意信息
    • 更新创意状态
    • 创意素材信息
    • 获取创意审核建议

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneralScheduleTime

func GeneralScheduleTime(start, end int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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