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

# GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}:uploadScript

`GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}:uploadScript`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}:uploadScript`
- 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`

Creates a custom bidding script reference object for a script file. The resulting reference object provides a resource path to which the script file should be uploaded. This reference object should be included in when creating a new custom bidding script object.

## Path parameters

- `customBiddingAlgorithmsId` 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

- 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}`.

---

[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)
