- [Resource: DirectorySite](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySite)
  - [JSON representation](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySite.SCHEMA_REPRESENTATION)
- [DirectorySiteSettings](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySiteSettings)
  - [JSON representation](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySiteSettings.SCHEMA_REPRESENTATION)
- [DfpSettings](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DfpSettings)
  - [JSON representation](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DfpSettings.SCHEMA_REPRESENTATION)
- [InpageTagFormat](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InpageTagFormat)
- [InterstitialTagFormat](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InterstitialTagFormat)
- [Methods](https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#METHODS_SUMMARY)

## Resource: DirectorySite

DirectorySites contains properties of a website from the [Site Directory](https://support.google.com/dcm/answer/2829072). Sites need to be added to an account via the Sites resource before they can be assigned to a placement.

| JSON representation |
|---|
| ``` { "id": string, "name": string, "url": string, "kind": string, "settings": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySiteSettings`) }, "inpageTagFormats": [ enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InpageTagFormat`) ], "interstitialTagFormats": [ enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InterstitialTagFormat`) ], "idDimensionValue": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DimensionValue`) }, "publisherSpecificationId": string } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` ID of this directory site. This is a read-only, auto-generated field. |
| `name` | `string` Name of this directory site. |
| `url` | `string` URL of this directory site. |
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `"dfareporting#directorySite"`. |
| `settings` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DirectorySiteSettings`)`` Directory site settings. |
| `inpageTagFormats[]` | ``enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InpageTagFormat`)`` Tag types for regular placements. Acceptable values are: - "`STANDARD`" - "`IFRAME_JAVASCRIPT_INPAGE`" - "`INTERNAL_REDIRECT_INPAGE`" - "`JAVASCRIPT_INPAGE`" <br /> |
| `interstitialTagFormats[]` | ``enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#InterstitialTagFormat`)`` Tag types for interstitial placements. Acceptable values are: - "`IFRAME_JAVASCRIPT_INTERSTITIAL`" - "`INTERNAL_REDIRECT_INTERSTITIAL`" - "`JAVASCRIPT_INTERSTITIAL`" <br /> |
| `idDimensionValue` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DimensionValue`)`` Dimension value for the ID of this directory site. This is a read-only, auto-generated field. |
| `publisherSpecificationId` | `string (https://developers.google.com/discovery/v1/type-format format)` 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 |

## DirectorySiteSettings

Directory Site Settings

| JSON representation |
|---|
| ``` { "interstitialPlacementAccepted": boolean, "instreamVideoPlacementAccepted": boolean, "dfpSettings": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DfpSettings`) }, "activeViewOptOut": boolean } ``` |

| Fields ||
|---|---|
| `interstitialPlacementAccepted` | `boolean` Whether this site accepts interstitial ads. |
| `instreamVideoPlacementAccepted` | `boolean` Whether this site accepts in-stream video ads. |
| `dfpSettings` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites#DfpSettings`)`` Directory site Ad Manager settings. |
| `activeViewOptOut` | `boolean` Whether this directory site has disabled active view creatives. |

## DfpSettings

Google Ad Manager Settings

| JSON representation |
|---|
| ``` { "dfpNetworkCode": string, "dfpNetworkName": string, "pubPaidPlacementAccepted": boolean, "publisherPortalOnly": boolean, "programmaticPlacementAccepted": boolean } ``` |

| Fields ||
|---|---|
| `dfpNetworkCode` | `string` Ad Manager network code for this directory site. |
| `dfpNetworkName` | `string` Ad Manager network name for this directory site. |
| `pubPaidPlacementAccepted` | `boolean` Whether this directory site accepts publisher-paid tags. |
| `publisherPortalOnly` | `boolean` Whether this directory site is available only via [Publisher Portal.](https://support.google.com/dcm/answer/3227598) |
| `programmaticPlacementAccepted` | `boolean` Whether this directory site accepts programmatic placements. |

## InpageTagFormat

| Enums ||
|---|---|
| `STANDARD` |   |
| `IFRAME_JAVASCRIPT_INPAGE` |   |
| `INTERNAL_REDIRECT_INPAGE` |   |
| `JAVASCRIPT_INPAGE` |   |

## InterstitialTagFormat

| Enums ||
|---|---|
| `IFRAME_JAVASCRIPT_INTERSTITIAL` |   |
| `INTERNAL_REDIRECT_INTERSTITIAL` |   |
| `JAVASCRIPT_INTERSTITIAL` |   |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites/get` | Gets one directory site by ID. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites/insert` | Inserts a new directory site. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/directorySites/list` | Retrieves a list of directory sites, possibly filtered. |