AI-generated Key Takeaways
-
Custom bidding scripts are resources associated with custom bidding algorithms and have unique IDs and creation times.
-
Each script has a state indicating if it is accepted, rejected, or pending processing.
-
Rejected scripts include details about errors such as error code, line, column, and error message.
-
A
CustomBiddingScriptRefobject provides a resource name for downloading or uploading script files. -
Methods are available to create, get, and list custom bidding scripts.
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.state][] is REJECTED. |
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. |