AI-generated Key Takeaways
-
Custom Bidding Algorithm Rules represent a single set of rules for a custom bidding algorithm.
-
The state of the rules can be
ACCEPTED, meaning they are used for scoring, orREJECTED, indicating an error. -
Errors in custom bidding algorithm rules are described by an
ErrorCodewhich can indicate syntax, constraint violations, or internal issues. -
A
CustomBiddingAlgorithmRulesRefprovides a reference to the uploaded algorithm rules file. -
Methods are available to create, get, and list custom bidding algorithm rules resources.
- Resource: CustomBiddingAlgorithmRules
- State
- CustomBiddingAlgorithmRulesError
- ErrorCode
- CustomBiddingAlgorithmRulesRef
- Methods
Resource: CustomBiddingAlgorithmRules
A single custom bidding algorithm rules.
| JSON representation |
|---|
{ "name": string, "customBiddingAlgorithmId": string, "customBiddingAlgorithmRulesId": string, "createTime": string, "active": boolean, "state": enum ( |
| Fields | |
|---|---|
name |
Output only. The resource name of the rules resource. |
customBiddingAlgorithmId |
Output only. The unique ID of the custom bidding algorithm that the rules resource belongs to. |
customBiddingAlgorithmRulesId |
Output only. The unique ID of the rules resource. |
createTime |
Output only. The time when the rules resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
active |
Output only. Whether the rules resource is currently being used for scoring by the parent algorithm. |
state |
Output only. The state of the rules resource. |
error |
Output only. Error code of the rejected rules resource. This field will only be populated when the state is |
rules |
Required. Immutable. The reference to the uploaded |
State
Possible states of a CustomBiddingAlgorithmRules resource.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The rules state are unspecified or unknown in this version. |
ACCEPTED |
The rules have been accepted for scoring impressions. |
REJECTED |
The rules have been rejected by backend pipelines. They may have errors. |
CustomBiddingAlgorithmRulesError
An error message for a CustomBiddingAlgorithmRules resource.
| JSON representation |
|---|
{
"errorCode": enum ( |
| Fields | |
|---|---|
errorCode |
The type of error. |
ErrorCode
Possible error codes of a CustomBiddingAlgorithmRules resource.
| Enums | |
|---|---|
ERROR_CODE_UNSPECIFIED |
The error is not specified or is unknown in this version. |
SYNTAX_ERROR |
The rules have a syntax error. |
CONSTRAINT_VIOLATION_ERROR |
The rules have a constraint violation error. |
INTERNAL_ERROR |
Internal errors were thrown while processing the rules. |
CustomBiddingAlgorithmRulesRef
The reference to the uploaded AlgorithmRules file. Retrieve the location to upload new AlgorithmRules file to using customBiddingAlgorithms.uploadRules.
| JSON representation |
|---|
{ "resourceName": string } |
| Fields | |
|---|---|
resourceName |
A resource name to be used in |
Methods |
|
|---|---|
|
Creates a new rules resource. |
|
Retrieves a rules resource. |
|
Lists rules resources that belong to the given algorithm. |