---
title: "GET /v1/buyers/{buyersId}/userLists"
method: GET
path: "/v1/buyers/{buyersId}/userLists"
tags: ["buyers"]
---

# GET /v1/buyers/{buyersId}/userLists

`GET /v1/buyers/{buyersId}/userLists`

## Request

- Base URL: `https://realtimebidding.googleapis.com`
- URL: `https://realtimebidding.googleapis.com/v1/buyers/{buyersId}/userLists`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/realtime-bidding`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/realtime-bidding`
- TypeScript: <https://skmtc.dev/google/apis/realtimebidding/docs/v1/buyers/:buyersId/userLists/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists the user lists visible to the current user.

## Path parameters

- `buyersId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListUserListsResponse: The list user list response.
  - `nextPageToken` string: The continuation page token to send back to the server in a subsequent request. Due to a currently known issue, it is recommended that the caller keep invoking the list method until the time a next page token is not returned, even if the result set is empty.
  - `userLists` UserList[]: List of user lists from the search.
    - `description` string: The description for the user list.
    - `displayName` string: Required. Display name of the user list. This must be unique across all user lists for a given account.
    - `membershipDurationDays` string, int64: Required. The number of days a user's cookie stays on the user list. The field must be between 0 and 540 inclusive.
    - `name` string: Output only. Name of the user list that must follow the pattern `buyers/{buyer}/userLists/{user_list}`, where `{buyer}` represents the account ID of the buyer who owns the user list. For a bidder accessing user lists on behalf of a child seat buyer, `{buyer}` represents the account ID of the child seat buyer. `{user_list}` is an int64 identifier assigned by Google to uniquely identify a user list.
    - `status` 'STATUS_UNSPECIFIED' | 'OPEN' | 'CLOSED': Output only. The status of the user list. A new user list starts out as open.
    - `urlRestriction` UrlRestriction: Deprecated. This will be removed in October 2023. For more information, see the release notes: https://developers.google.com/authorized-buyers/apis/relnotes#real-time-bidding-api Represents the URL restriction (for the URL captured by the pixel callback) for a user list.
      - `endDate` Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
        - `day` integer: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        - `month` integer: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        - `year` integer: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      - `restrictionType` 'RESTRICTION_TYPE_UNSPECIFIED' | 'CONTAINS' | 'EQUALS' | 'STARTS_WITH' | 'ENDS_WITH' | 'DOES_NOT_EQUAL' | 'DOES_NOT_CONTAIN' | 'DOES_NOT_START_WITH' | 'DOES_NOT_END_WITH': The restriction type for the specified URL.
      - `startDate` Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
        - `day` integer: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        - `month` integer: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        - `year` integer: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      - `url` string: Required. The URL to use for applying the restriction on the user list.

---

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