Google Campaign Manager Campaign Manager Files API

The Campaign Manager Files API from Google Campaign Manager — 2 operation(s) for campaign manager files.

GitHub OpenAPI

Operations 2

GET /dfareporting/v5/reports/{reportId}/files/{fileId} Get files #
GET /dfareporting/v5/userprofiles/{profileId}/files List files #

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-files-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. 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-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 Files API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: Files
paths:
  /dfareporting/v5/reports/{reportId}/files/{fileId}:
    get:
      operationId: dfareporting.files.get
      summary: Get files
      description: Retrieves a report file by its report ID and file ID. This method supports media download.
      parameters:
      - name: reportId
        in: path
        required: true
        description: The ID of the report.
        schema:
          format: int64
          type: string
      - name: fileId
        in: path
        required: true
        description: The ID of the report file.
        schema:
          type: string
          format: int64
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
        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/dfareporting
      - apiKey: []
      tags:
      - Files
  /dfareporting/v5/userprofiles/{profileId}/files:
    get:
      operationId: dfareporting.files.list
      summary: List files
      description: Lists files for a user profile.
      parameters:
      - name: profileId
        in: path
        required: true
        description: The Campaign Manager 360 user profile ID.
        schema:
          type: string
          format: int64
      - name: maxResults
        in: query
        required: false
        description: Maximum number of results to return.
        schema:
          type: integer
          format: int32
          default: '10'
      - name: pageToken
        in: query
        required: false
        description: The value of the nextToken from the previous result page.
        schema:
          type: string
      - name: scope
        in: query
        required: false
        description: The scope that defines which results are returned.
        schema:
          enum:
          - ALL
          - MINE
          - SHARED_WITH_ME
          default: MINE
          type: string
      - name: sortField
        in: query
        required: false
        description: The field by which to sort the list.
        schema:
          default: LAST_MODIFIED_TIME
          type: string
          enum:
          - ID
          - LAST_MODIFIED_TIME
      - name: sortOrder
        in: query
        required: false
        description: Order of sorted results.
        schema:
          type: string
          enum:
          - ASCENDING
          - DESCENDING
          default: DESCENDING
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileList'
        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/dfareporting
      - apiKey: []
      tags:
      - Files
components:
  schemas:
    FileList:
      type: object
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#fileList".'
          type: string
        nextPageToken:
          type: string
          description: Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
        etag:
          type: string
          description: Etag of this resource.
        items:
          type: array
          description: The files returned in this response.
          items:
            $ref: '#/components/schemas/File'
      description: List of files for a report.
    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
    DateRange:
      properties:
        endDate:
          type: string
          format: date
        kind:
          description: The kind of resource this is, in this case dfareporting#dateRange.
          type: string
        startDate:
          format: date
          type: string
        relativeDateRange:
          description: The date range relative to the date of when the report is run.
          type: string
          enum:
          - TODAY
          - YESTERDAY
          - WEEK_TO_DATE
          - MONTH_TO_DATE
          - QUARTER_TO_DATE
          - YEAR_TO_DATE
          - PREVIOUS_WEEK
          - PREVIOUS_MONTH
          - PREVIOUS_QUARTER
          - PREVIOUS_YEAR
          - LAST_7_DAYS
          - LAST_30_DAYS
          - LAST_90_DAYS
          - LAST_365_DAYS
          - LAST_24_MONTHS
          - LAST_14_DAYS
          - LAST_60_DAYS
      type: object
      description: Represents a date range.
    File:
      description: Represents a File resource. A file contains the metadata for a report run. It shows the status of the run and holds the URLs to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
      properties:
        format:
          enum:
          - CSV
          - EXCEL
          type: string
          description: The output format of the report. Only available once the file is available.
        status:
          enum:
          - PROCESSING
          - REPORT_AVAILABLE
          - FAILED
          - CANCELLED
          - QUEUED
          type: string
          description: The status of the report file.
        dateRange:
          $ref: '#/components/schemas/DateRange'
          description: The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
        id:
          type: string
          description: The unique ID of this report file.
          format: int64
        urls:
          type: object
          description: The URLs where the completed report file can be downloaded.
          properties:
            browserUrl:
              description: The URL for downloading the report data through a browser.
              type: string
            apiUrl:
              description: The URL for downloading the report data through the API.
              type: string
        fileName:
          description: The filename of the file.
          type: string
        lastModifiedTime:
          format: int64
          description: The timestamp in milliseconds since epoch when this file was last modified.
          type: string
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#file".'
        reportId:
          description: The ID of the report this file was generated from.
          format: int64
          type: string
        etag:
          description: Etag of this resource.
          type: string
      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)