REST Resource: customBiddingAlgorithms.rules

資源:CustomBiddingAlgorithmRules

單一自訂出價演算法規則。

JSON 表示法
{
  "name": string,
  "customBiddingAlgorithmId": string,
  "customBiddingAlgorithmRulesId": string,
  "createTime": string,
  "active": boolean,
  "state": enum (State),
  "error": {
    object (CustomBiddingAlgorithmRulesError)
  },
  "rules": {
    object (CustomBiddingAlgorithmRulesRef)
  }
}
欄位
name

string

僅供輸出。規則資源的資源名稱。

customBiddingAlgorithmId

string (int64 format)

僅供輸出。規則資源所屬的自訂出價演算法專屬 ID。

customBiddingAlgorithmRulesId

string (int64 format)

僅供輸出。規則資源的專屬 ID。

createTime

string (Timestamp format)

僅供輸出。規則資源的建立時間。

RFC3339 世界標準時間「Zulu」格式的時間戳記,採用奈秒解析度,且最多 9 個小數位數。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

active

boolean

僅供輸出。表示父項演算法目前是否使用規則資源為評分。

state

enum (State)

僅供輸出。規則資源的狀態。

error

object (CustomBiddingAlgorithmRulesError)

僅供輸出。遭拒規則資源的錯誤代碼。這個欄位只會在狀態為 REJECTED 時填入。

rules

object (CustomBiddingAlgorithmRulesRef)

必要欄位。無法變更。已上傳 AlgorithmRules 檔案的參照。

狀態

CustomBiddingAlgorithmRules 資源可能的狀態。

列舉
STATE_UNSPECIFIED 這個版本未指定或未指定規則狀態。
ACCEPTED 已接受計算曝光的規則。
REJECTED 後端管道已拒絕規則。可能有錯誤。

CustomBiddingAlgorithmRulesError

CustomBiddingAlgorithmRules 資源的錯誤訊息。

JSON 表示法
{
  "errorCode": enum (ErrorCode)
}
欄位
errorCode

enum (ErrorCode)

錯誤類型。

ErrorCode

CustomBiddingAlgorithmRules 資源可能發生的錯誤代碼。

列舉
ERROR_CODE_UNSPECIFIED 未指定錯誤,或這個版本中的錯誤不明。
SYNTAX_ERROR 規則語法有誤。
CONSTRAINT_VIOLATION_ERROR 規則有違反限制的錯誤。
INTERNAL_ERROR 系統在處理規則時擲回內部錯誤。

CustomBiddingAlgorithmRulesRef

已上傳 AlgorithmRules 檔案的參照。擷取位置以使用 customBiddingAlgorithms.uploadRules 上傳新的 AlgorithmRules 檔案。

JSON 表示法
{
  "resourceName": string
}
欄位
resourceName

string

用於下載規則檔案的 media.download 資源名稱。或 media.upload:上傳規則檔案。資源名稱採用以下格式:customBiddingAlgorithms/{customBiddingAlgorithmId}/rulesRef/{ref_id}

方法

create

建立新的規則資源。

get

擷取規則資源。

list

列出屬於指定演算法的規則資源。