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

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

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

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}:uploadRules`
- 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 rules reference object for an AlgorithmRules file. The resulting reference object provides a resource path where the AlgorithmRules file should be uploaded. This reference object should be included when creating a new CustomBiddingAlgorithmRules resource.

## 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

- CustomBiddingAlgorithmRulesRef: The reference to the uploaded AlgorithmRules file. Retrieve the location to upload new AlgorithmRules file to using customBiddingAlgorithms.uploadRules.
  - `resourceName` string: A resource name to be used in media.download to download the rules files. Or media.upload to upload the rules files. Resource names have the format `customBiddingAlgorithms/{custom_bidding_algorithm_id}/rulesRef/{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)
