Resource: DirectorySite
DirectorySites contains properties of a website from the Site Directory. 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 (  | 
              
| Fields | |
|---|---|
id | 
                
                   
 ID of this directory site. This is a read-only, auto-generated field.  | 
              
name | 
                
                   
 Name of this directory site.  | 
              
url | 
                
                   
 URL of this directory site.  | 
              
kind | 
                
                   
 Identifies what kind of resource this is. Value: the fixed string 
 .  | 
              
settings | 
                
                   
 Directory site settings.  | 
              
inpageTagFormats[] | 
                
                   
 Tag types for regular placements. 
  | 
              
interstitialTagFormats[] | 
                
                   
 Tag types for interstitial placements. 
  | 
              
idDimensionValue | 
                
                   
 Dimension value for the ID of this directory site. This is a read-only, auto-generated field.  | 
              
publisherSpecificationId | 
                
                   
 Output only. Default publisher specification ID of video placements under this directory site. Possible values are: 
  | 
              
DirectorySiteSettings
Directory Site Settings
| JSON representation | 
|---|
{
  "interstitialPlacementAccepted": boolean,
  "instreamVideoPlacementAccepted": boolean,
  "dfpSettings": {
    object ( | 
              
| Fields | |
|---|---|
interstitialPlacementAccepted | 
                
                   
 Whether this site accepts interstitial ads.  | 
              
instreamVideoPlacementAccepted | 
                
                   
 Whether this site accepts in-stream video ads.  | 
              
dfpSettings | 
                
                   
 Directory site Ad Manager settings.  | 
              
activeViewOptOut | 
                
                   
 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 | 
                
                   
 Ad Manager network code for this directory site.  | 
              
dfpNetworkName | 
                
                   
 Ad Manager network name for this directory site.  | 
              
pubPaidPlacementAccepted | 
                
                   
 Whether this directory site accepts publisher-paid tags.  | 
              
publisherPortalOnly | 
                
                   
 Whether this directory site is available only via Publisher Portal.  | 
              
programmaticPlacementAccepted | 
                
                   
 Whether this directory site accepts programmatic placements.  | 
              
Methods | 
            |
|---|---|
                
 | 
              Gets one directory site by ID. | 
                
 | 
              Inserts a new directory site. | 
                
 | 
              Retrieves a list of directory sites, possibly filtered. |