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

# GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/rules/{rulesId}

`GET /v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/rules/{rulesId}`

## Request

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

Retrieves a rules resource.

## Path parameters

- `customBiddingAlgorithmsId` string, required
- `rulesId` 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

- CustomBiddingAlgorithmRules: A single custom bidding algorithm rules.
  - `active` boolean: Output only. Whether the rules resource is currently being used for scoring by the parent algorithm.
  - `createTime` string, google-datetime: Output only. The time when the rules resource was created.
  - `customBiddingAlgorithmId` string, int64: Output only. The unique ID of the custom bidding algorithm that the rules resource belongs to.
  - `customBiddingAlgorithmRulesId` string, int64: Output only. The unique ID of the rules resource.
  - `error` CustomBiddingAlgorithmRulesError: An error message for a CustomBiddingAlgorithmRules resource.
    - `errorCode` 'ERROR_CODE_UNSPECIFIED' | 'SYNTAX_ERROR' | 'CONSTRAINT_VIOLATION_ERROR' | 'INTERNAL_ERROR': The type of error.
  - `name` string: Output only. The resource name of the rules resource.
  - `rules` 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}`.
  - `state` 'STATE_UNSPECIFIED' | 'ACCEPTED' | 'REJECTED': Output only. The state of the rules resource.

---

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