Google Campaign Manager Report Data API

The ReportData API from Google Campaign Manager — 1 operation(s) for reportdata.

GitHub OpenAPI

Operations 1

POST /dfareporting/v5/userprofiles/{profileId}/reportdata/query Query reportData #

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-reportdata-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-reportdata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 Report Data API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: ReportData
paths:
  /dfareporting/v5/userprofiles/{profileId}/reportdata/query:
    post:
      operationId: dfareporting.reportData.query
      summary: Query reportData
      description: Executes an ad-hoc query and returns structured JSON payload data.
      parameters:
      - name: profileId
        in: path
        required: true
        description: Required. The Campaign Manager 360 user profile ID.
        schema:
          type: string
          format: int64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportDataQueryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportDataResponse'
        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:
      - ReportData
components:
  schemas:
    SortBy:
      type: object
      properties:
        sortOrder:
          enum:
          - ASCENDING
          - DESCENDING
          type: string
          description: Optional. The sort order of this column.
        name:
          type: string
          description: Required. The dimension or metric field name to sort on.
      description: Specifies the sort configuration for a specific field in the report.
    ReportDataRow:
      properties:
        values:
          items:
            type: string
          readOnly: true
          type: array
          description: Output only. A single sequential list of all cell values matching column_headers indices exactly. - Metric cells that are suppressed due to Minimum Reporting Standard (MRS) privacy protection constraints return "-".
      type: object
      description: A row of report data.
    ReportDataQueryRequest:
      properties:
        sortBys:
          type: array
          items:
            $ref: '#/components/schemas/SortBy'
          description: Optional. Sort options across either requested dimensions or metrics.
        metricNames:
          type: array
          items:
            type: string
          description: Required. The list of metric names to include.
        dimensionNames:
          items:
            type: string
          type: array
          description: Optional. The list of dimension names to group by.
        pageToken:
          description: Optional. Continuation token for paginating results.
          type: string
        dimensionFilters:
          type: array
          items:
            $ref: '#/components/schemas/DimensionValue'
          description: Optional. The list of dimension values on which report lines are filtered. Utilizes the existing legacy filter message `DimensionValue`.
        maxResults:
          description: Optional. Maximum number of result rows to return per page. The default value is 100. The maximum allowed value is 1000. Values above 1000 will be coerced (clamped) down to 1000. Negative values will be rejected.
          format: int32
          type: integer
        dateRange:
          $ref: '#/components/schemas/DateRange'
          description: Optional. The requested date range covering the report duration.
      type: object
      description: The request body containing ad-hoc query parameters.
    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.
    ColumnHeader:
      description: A column header in the report.
      type: object
      properties:
        name:
          description: Output only. The column name.
          type: string
          readOnly: true
        type:
          enum:
          - COLUMN_TYPE_UNSPECIFIED
          - DIMENSION
          - METRIC
          description: Output only. The column type.
          readOnly: true
          type: string
    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
    ReportDataResponse:
      type: object
      properties:
        columnHeaders:
          items:
            $ref: '#/components/schemas/ColumnHeader'
          type: array
          description: Output only. Ordered descriptors of the requested column fields.
          readOnly: true
        rows:
          items:
            $ref: '#/components/schemas/ReportDataRow'
          description: Output only. The resulting set of matching data rows.
          readOnly: true
          type: array
        totalRow:
          $ref: '#/components/schemas/ReportDataRow'
          description: 'Output only. Singular aggregate total row for the entire query matching the criteria. Column headers apply in the exact same order as data rows. In the total_row: - All dimension columns contain an empty string (""), as aggregation does not apply. - Non-summable metric columns (e.g. Reach metrics) contain an empty string (""), as grand total aggregation cannot be mathematically/logically computed for them.'
        nextPageToken:
          description: Output only. Token to retrieve the next page of rows, or empty if end of results.
          readOnly: true
          type: string
      description: Represents a response to report data request.
  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)