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)

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

使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數點後位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

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

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