- 資源: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 |
在 |
方法 |
|
---|---|
|
建立新的規則資源。 |
|
擷取規則資源。 |
|
列出屬於指定演算法的規則資源。 |