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

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

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

## Request

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

Lists rules resources that belong to the given algorithm. The order is defined by the order_by parameter.

## 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
- `orderBy` string
- `pageSize` integer
- `pageToken` string
- `partnerId` string, int64

## Response `200`

Successful response

- ListCustomBiddingAlgorithmRulesResponse
  - `customBiddingRules` CustomBiddingAlgorithmRules[]: The list of CustomBiddingAlgorithmRules resources. This list will be absent if empty.
    - `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.
  - `nextPageToken` string: A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListCustomBiddingAlgorithmRulesRequest` method to retrieve the next page of results. If this field is null, it means this is the last page.

---

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