Google Campaign Manager Directory Sites API

The DirectorySites API from Google Campaign Manager — 2 operation(s) for directorysites.

GitHub OpenAPI

Operations 3

GET /dfareporting/v5/userprofiles/{userprofilesId}/directorySites/{directorySitesId} Get directorySites #
GET /dfareporting/v5/userprofiles/{userprofilesId}/directorySites List directorySites #
POST /dfareporting/v5/userprofiles/{userprofilesId}/directorySites Insert directorySites #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-campaign-manager:google-campaign-manager-directorysites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-campaign-manager-directorysites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 Directory Sites API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: DirectorySites
paths:
  /dfareporting/v5/userprofiles/{userprofilesId}/directorySites/{directorySitesId}:
    get:
      operationId: dfareporting.directorySites.get
      summary: Get directorySites
      description: Gets one directory site by ID.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: directorySitesId
        in: path
        required: true
        description: Resource name segment (directorySitesId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectorySite'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - DirectorySites
  /dfareporting/v5/userprofiles/{userprofilesId}/directorySites:
    get:
      operationId: dfareporting.directorySites.list
      summary: List directorySites
      description: Retrieves a list of directory sites, possibly filtered. This method supports paging.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: acceptsInStreamVideoPlacements
        in: query
        required: false
        description: This search filter is no longer supported and will have no effect on the results returned.
        schema:
          type: boolean
      - name: acceptsInterstitialPlacements
        in: query
        required: false
        description: This search filter is no longer supported and will have no effect on the results returned.
        schema:
          type: boolean
      - name: acceptsPublisherPaidPlacements
        in: query
        required: false
        description: Select only directory sites that accept publisher paid placements. This field can be left blank.
        schema:
          type: boolean
      - name: active
        in: query
        required: false
        description: Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.
        schema:
          type: boolean
      - name: dfpNetworkCode
        in: query
        required: false
        description: Select only directory sites with this Ad Manager network code.
        schema:
          type: string
      - name: ids
        in: query
        required: false
        description: Select only directory sites with these IDs.
        schema:
          type: array
          items:
            format: int64
            type: string
      - name: maxResults
        in: query
        required: false
        description: Maximum number of results to return.
        schema:
          type: integer
          format: int32
          default: '1000'
      - name: pageToken
        in: query
        required: false
        description: Value of the nextPageToken from the previous result page.
        schema:
          type: string
      - name: searchString
        in: query
        required: false
        description: Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, "directory site*2015" will return objects with names like "directory site June 2015", "directory site April 2015", or simply "directory site 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "directory site" will match objects with name "my directory site", "directory site 2015" or simply, "directory site".
        schema:
          type: string
      - name: sortField
        in: query
        required: false
        description: Field by which to sort the list.
        schema:
          default: ID
          type: string
          enum:
          - ID
          - NAME
      - name: sortOrder
        in: query
        required: false
        description: Order of sorted results.
        schema:
          default: ASCENDING
          type: string
          enum:
          - ASCENDING
          - DESCENDING
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectorySitesListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - DirectorySites
    post:
      operationId: dfareporting.directorySites.insert
      summary: Insert directorySites
      description: Inserts a new directory site.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectorySite'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectorySite'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - DirectorySites
components:
  schemas:
    DirectorySite:
      type: object
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySite".'
          type: string
        publisherSpecificationId:
          readOnly: true
          type: string
          format: int64
          description: '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'
        inpageTagFormats:
          description: 'Tag types for regular placements. Acceptable values are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" '
          items:
            type: string
            enum:
            - STANDARD
            - IFRAME_JAVASCRIPT_INPAGE
            - INTERNAL_REDIRECT_INPAGE
            - JAVASCRIPT_INPAGE
          type: array
        idDimensionValue:
          $ref: '#/components/schemas/DimensionValue'
          description: Dimension value for the ID of this directory site. This is a read-only, auto-generated field.
        name:
          description: Name of this directory site.
          type: string
        interstitialTagFormats:
          description: 'Tag types for interstitial placements. Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" '
          type: array
          items:
            type: string
            enum:
            - IFRAME_JAVASCRIPT_INTERSTITIAL
            - INTERNAL_REDIRECT_INTERSTITIAL
            - JAVASCRIPT_INTERSTITIAL
        id:
          type: string
          description: ID of this directory site. This is a read-only, auto-generated field.
          format: int64
        url:
          type: string
          description: URL of this directory site.
        settings:
          $ref: '#/components/schemas/DirectorySiteSettings'
          description: Directory site settings.
      description: 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.
    DfpSettings:
      properties:
        dfpNetworkCode:
          type: string
          description: Ad Manager network code for this directory site.
        programmaticPlacementAccepted:
          type: boolean
          description: Whether this directory site accepts programmatic placements.
        pubPaidPlacementAccepted:
          type: boolean
          description: Whether this directory site accepts publisher-paid tags.
        dfpNetworkName:
          description: Ad Manager network name for this directory site.
          type: string
        publisherPortalOnly:
          description: Whether this directory site is available only via Publisher Portal.
          type: boolean
      type: object
      description: Google Ad Manager Settings
    DimensionValue:
      type: object
      description: Represents a DimensionValue resource.
      properties:
        id:
          type: string
          description: The ID associated with the value if available.
        value:
          type: string
          description: The value of the dimension.
        dimensionName:
          description: The name of the dimension.
          type: string
        matchType:
          type: string
          enum:
          - EXACT
          - BEGINS_WITH
          - CONTAINS
          - WILDCARD_EXPRESSION
          description: 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.
        etag:
          type: string
          description: The eTag of this response for caching purposes.
        kind:
          description: The kind of resource this is, in this case dfareporting#dimensionValue.
          type: string
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    DirectorySitesListResponse:
      properties:
        directorySites:
          type: array
          items:
            $ref: '#/components/schemas/DirectorySite'
          description: Directory site collection.
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#directorySitesListResponse".'
          type: string
        nextPageToken:
          description: Pagination token to be used for the next list operation.
          type: string
      type: object
      description: Directory Site List Response
    DirectorySiteSettings:
      description: Directory Site Settings
      properties:
        instreamVideoPlacementAccepted:
          description: Whether this site accepts in-stream video ads.
          type: boolean
        interstitialPlacementAccepted:
          description: Whether this site accepts interstitial ads.
          type: boolean
        dfpSettings:
          $ref: '#/components/schemas/DfpSettings'
          description: Directory site Ad Manager settings.
        activeViewOptOut:
          description: Whether this directory site has disabled active view creatives.
          type: boolean
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/ddmconversions: Manage DoubleClick Digital Marketing conversions
            https://www.googleapis.com/auth/dfatrafficking: View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
            https://www.googleapis.com/auth/dfareporting: View and manage DoubleClick for Advertisers reports
externalDocs:
  url: https://developers.google.com/doubleclick-advertisers/
x-provenance:
  method: harvested
  publisher: Google
  source: https://dfareporting.googleapis.com/$discovery/rest?version=v5
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)