---
title: "GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}"
method: GET
path: "/v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}"
tags: ["customBiddingAlgorithms"]
---

# GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}

`GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`

Gets a custom bidding script.

## Path parameters

- `customBiddingAlgorithmsId` string, required
- `scriptsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `advertiserId` string, int64
- `partnerId` string, int64

## Response `200`

Successful response

- CustomBiddingScript: A single custom bidding script.
  - `active` boolean: Output only. Whether the script is currently being used for scoring by the parent algorithm.
  - `createTime` string, google-datetime: Output only. The time when the script was created.
  - `customBiddingAlgorithmId` string, int64: Output only. The unique ID of the custom bidding algorithm the script belongs to.
  - `customBiddingScriptId` string, int64: Output only. The unique ID of the custom bidding script.
  - `errors` ScriptError[]: Output only. Error details of a rejected custom bidding script. This field will only be populated when state is REJECTED.
    - `column` string, int64: The column number in the script where the error was thrown.
    - `errorCode` 'ERROR_CODE_UNSPECIFIED' | 'SYNTAX_ERROR' | 'DEPRECATED_SYNTAX' | 'INTERNAL_ERROR': The type of error.
    - `errorMessage` string: The detailed error message.
    - `line` string, int64: The line number in the script where the error was thrown.
  - `name` string: Output only. The resource name of the custom bidding script.
  - `script` CustomBiddingScriptRef: The reference to the uploaded custom bidding script file.
    - `resourceName` string: A resource name to be used in media.download to Download the script files. Or media.upload to Upload the script files. Resource names have the format `customBiddingAlgorithms/{custom_bidding_algorithm_id}/scriptRef/{ref_id}`.
  - `state` 'STATE_UNSPECIFIED' | 'ACCEPTED' | 'REJECTED' | 'PENDING': Output only. The state of the custom bidding script.

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/c4f5eaed2791?raw)
