AI-generated Key Takeaways
- 
          A CustomBiddingScript represents a single custom bidding script within the Display & Video 360 API v2. 
- 
          The state of a custom bidding script indicates whether it has been accepted, rejected, or is pending processing. 
- 
          ScriptError provides details about errors encountered in a custom bidding script, including error code, line, column, and error message. 
- 
          ErrorCode lists the possible types of errors for a custom bidding script, such as syntax errors or internal errors. 
- 
          CustomBiddingScriptRef is a reference to the uploaded custom bidding script file used for downloading or uploading script content. 
Resource: CustomBiddingScript
A single custom bidding script.
| JSON representation | 
|---|
| { "name": string, "customBiddingAlgorithmId": string, "customBiddingScriptId": string, "createTime": string, "active": boolean, "state": enum ( | 
| Fields | |
|---|---|
| name | 
 Output only. The resource name of the custom bidding script. | 
| customBiddingAlgorithmId | 
 Output only. The unique ID of the custom bidding algorithm the script belongs to. | 
| customBiddingScriptId | 
 Output only. The unique ID of the custom bidding script. | 
| createTime | 
 Output only. The time when the script was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:  | 
| active | 
 Output only. Whether the script is currently being used for scoring by the parent algorithm. | 
| state | 
 Output only. The state of the custom bidding script. | 
| errors[] | 
 Output only. Error details of a rejected custom bidding script. This field will only be populated when  | 
| script | 
 The reference to the uploaded script file. | 
State
Possible states of a custom bidding script.
| Enums | |
|---|---|
| STATE_UNSPECIFIED | The script state is not specified or is unknown in this version. | 
| ACCEPTED | The script has been accepted for scoring impressions. | 
| REJECTED | The script has been rejected by backend pipelines. It may have errors. | 
| PENDING | The script is being processed for backend pipelines. | 
ScriptError
An error message for a custom bidding script.
| JSON representation | 
|---|
| {
  "errorCode": enum ( | 
| Fields | |
|---|---|
| errorCode | 
 The type of error. | 
| line | 
 The line number in the script where the error was thrown. | 
| column | 
 The column number in the script where the error was thrown. | 
| errorMessage | 
 The detailed error message. | 
ErrorCode
Possible error codes of a custom bidding script error.
| Enums | |
|---|---|
| ERROR_CODE_UNSPECIFIED | The script error is not specified or is unknown in this version. | 
| SYNTAX_ERROR | The script has a syntax error. | 
| DEPRECATED_SYNTAX | The script uses deprecated syntax. | 
| INTERNAL_ERROR | Internal errors were thrown while processing the script. | 
CustomBiddingScriptRef
The reference to the uploaded custom bidding script file.
| JSON representation | 
|---|
| { "resourceName": string } | 
| Fields | |
|---|---|
| resourceName | 
 A resource name to be used in  | 
| Methods | |
|---|---|
| 
 | Creates a new custom bidding script. | 
| 
 | Gets a custom bidding script. | 
| 
 | Lists custom bidding scripts that belong to the given algorithm. |