---
title: "GET /userprofiles/{userprofilesId}/directorySites"
method: GET
path: "/userprofiles/{userprofilesId}/directorySites"
tags: ["directorySites"]
---

# GET /userprofiles/{userprofilesId}/directorySites

`GET /userprofiles/{userprofilesId}/directorySites`

## Request

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

Retrieves a list of directory sites, possibly filtered. This method supports paging.

## Path parameters

- `userprofilesId` string, required

## Query parameters

- `acceptsInStreamVideoPlacements` boolean
- `acceptsInterstitialPlacements` boolean
- `acceptsPublisherPaidPlacements` boolean
- `active` boolean
- `dfpNetworkCode` string
- `ids` string[]
- `maxResults` integer
- `pageToken` string
- `searchString` string
- `sortField` 'ID' | 'NAME'
- `sortOrder` 'ASCENDING' | 'DESCENDING'

## Response `200`

Successful response

- DirectorySitesListResponse: Directory Site List Response
  - `directorySites` DirectorySite[]: Directory site collection.
    - `id` string, int64: ID of this directory site. This is a read-only, auto-generated field.
    - `idDimensionValue` DimensionValue: Represents a DimensionValue resource.
      - `dimensionName` string: The name of the dimension.
      - `etag` string: The eTag of this response for caching purposes.
      - `id` string: The ID associated with the value if available.
      - `kind` string: The kind of resource this is, in this case dfareporting#dimensionValue.
      - `matchType` 'EXACT' | 'BEGINS_WITH' | 'CONTAINS' | 'WILDCARD_EXPRESSION': Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      - `value` string: The value of the dimension.
    - `inpageTagFormats` string[]: Tag types for regular placements. Acceptable values are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE"
    - `interstitialTagFormats` string[]: Tag types for interstitial placements. Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL"
    - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite".
    - `name` string: Name of this directory site.
    - `publisherSpecificationId` string, int64: Output only. Default publisher specification ID of video placements under this directory site. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max
    - `settings` DirectorySiteSettings: Directory Site Settings
      - `activeViewOptOut` boolean: Whether this directory site has disabled active view creatives.
      - `dfpSettings` DfpSettings: Google Ad Manager Settings
        - `dfpNetworkCode` string: Ad Manager network code for this directory site.
        - `dfpNetworkName` string: Ad Manager network name for this directory site.
        - `programmaticPlacementAccepted` boolean: Whether this directory site accepts programmatic placements.
        - `pubPaidPlacementAccepted` boolean: Whether this directory site accepts publisher-paid tags.
        - `publisherPortalOnly` boolean: Whether this directory site is available only via Publisher Portal.
      - `instreamVideoPlacementAccepted` boolean: Whether this site accepts in-stream video ads.
      - `interstitialPlacementAccepted` boolean: Whether this site accepts interstitial ads.
    - `url` string: URL of this directory site.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySitesListResponse".
  - `nextPageToken` string: Pagination token to be used for the next list operation.

---

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