Method: customBiddingAlgorithms.uploadScript

为脚本文件创建自定义出价脚本引用对象。

生成的引用对象会提供应将脚本文件上传到的资源路径。创建新的自定义出价脚本对象时,应包含此引用对象。

HTTP 请求

GET https://displayvideo.googleapis.com/v1/customBiddingAlgorithms/{customBiddingAlgorithmId}:uploadScript

网址采用 gRPC 转码语法。

路径参数

参数
customBiddingAlgorithmId

string (int64 format)

必需。脚本拥有的自定义出价算法的 ID。

查询参数

参数
联合参数 owner。必需。标识拥有父级自定义出价算法的 DV360 实体。它可以是合作伙伴或广告客户。owner 只能是下列其中一项:
partnerId

string (int64 format)

拥有父级自定义出价算法的合作伙伴的 ID。

只有此合作伙伴拥有此自定义出价脚本的写入权限。

advertiserId

string (int64 format)

拥有父级自定义出价算法的广告客户 ID。

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 CustomBiddingScriptRef 实例。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/display-video

有关详情,请参阅 OAuth 2.0 概览