文件名称:yandex-api:Yandex Direct API
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-28 01:06:06
Go
Yandex Direct API 用法 package main import ( "github.com/zoer/yandex-api/direct" ) func main () { token := os . Getenv ( "YANDEX_API_TOKEN" ) client := direct . NewClient ( token ) id := 123 // Campaigns list campaigns , err := client . Campaigns . GetList () // Campaign archive err := client . Campaigns . Archive ( id ) // Campaign unarchive err := client . Campaigns . UnArchive ( id )