- 資源:CustomBiddingAlgorithmRules
- 狀態
- CustomBiddingAlgorithmRulesError
- ErrorCode
- CustomBiddingAlgorithmRulesRef
- 方法
資源:CustomBiddingAlgorithmRules
單一自訂出價演算法規則。
JSON 表示法 |
---|
{ "name": string, "customBiddingAlgorithmId": string, "customBiddingAlgorithmRulesId": string, "createTime": string, "active": boolean, "state": enum ( |
欄位 | |
---|---|
name |
僅供輸出。規則資源的資源名稱。 |
customBiddingAlgorithmId |
僅供輸出。規則資源所屬自訂出價演算法的專屬 ID。 |
customBiddingAlgorithmRulesId |
僅供輸出。規則資源的專屬 ID。 |
createTime |
僅供輸出。規則資源的建立時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數點後位數。系統也接受「Z」以外的偏移量。例如: |
active |
僅供輸出。規則資源目前是否由父項演算法用於評分。 |
state |
僅供輸出。規則資源的狀態。 |
error |
僅供輸出。遭拒絕的規則資源錯誤代碼。只有在狀態為 |
rules |
必要欄位。不可變更。上傳的 |
州
CustomBiddingAlgorithmRules
資源的可能狀態。
列舉 | |
---|---|
STATE_UNSPECIFIED |
這個版本的規則狀態不明或未指定。 |
ACCEPTED |
系統已接受這些規則,並用於計算曝光次數。 |
REJECTED |
後端管道已拒絕這些規則。可能含有錯誤。 |
CustomBiddingAlgorithmRulesError
CustomBiddingAlgorithmRules
資源的錯誤訊息。
JSON 表示法 |
---|
{
"errorCode": enum ( |
欄位 | |
---|---|
errorCode |
錯誤類型。 |
ErrorCode
CustomBiddingAlgorithmRules
資源的可能錯誤代碼。
列舉 | |
---|---|
ERROR_CODE_UNSPECIFIED |
這個版本未指定錯誤,或發生不明錯誤。 |
SYNTAX_ERROR |
規則有語法錯誤。 |
CONSTRAINT_VIOLATION_ERROR |
規則有違反限制的錯誤。 |
INTERNAL_ERROR |
處理規則時發生內部錯誤。 |
CustomBiddingAlgorithmRulesRef
上傳的 AlgorithmRules
檔案參照。使用 customBiddingAlgorithms.uploadRules
擷取要上傳新 AlgorithmRules
檔案的位置。
JSON 表示法 |
---|
{ "resourceName": string } |
欄位 | |
---|---|
resourceName |
用於 |
方法 |
|
---|---|
|
建立新的規則資源。 |
|
擷取規則資源。 |
|
列出屬於指定演算法的規則資源。 |