AdMob Campaign Report API

The campaignReport API from AdMob — 1 operation(s) for campaignreport.

Operations 1

POST /v1beta/accounts/{accountsId}/campaignReport:generate Generates Campaign Report based on provided specifications. #

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/admob-campaignreport-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

admob-campaignreport-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AdMob Campaign Report API
  version: v1beta
  description: The AdMob API allows publishers to programmatically get information about their AdMob account.
  contact:
    name: Google
    url: https://developers.google.com/admob/api/
  termsOfService: https://developers.google.com/terms
  license:
    name: Google APIs Terms of Service
    url: https://developers.google.com/terms
  x-discovery-revision: '20260731'
servers:
- url: https://admob.googleapis.com
  description: AdMob API
security:
- GoogleOAuth2:
  - https://www.googleapis.com/auth/admob.readonly
  - https://www.googleapis.com/auth/admob.report
tags:
- name: campaignReport
paths:
  /v1beta/accounts/{accountsId}/campaignReport:generate:
    post:
      operationId: accounts_campaignReport_generate
      summary: Generates Campaign Report based on provided specifications.
      description: Generates Campaign Report based on provided specifications.
      tags:
      - campaignReport
      parameters:
      - name: parent
        in: path
        description: 'Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654'
        required: true
        schema:
          type: string
          pattern: ^accounts/[^/]+$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateCampaignReportRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateCampaignReportResponse'
      security:
      - GoogleOAuth2:
        - https://www.googleapis.com/auth/admob.readonly
        - https://www.googleapis.com/auth/admob.report
components:
  schemas:
    CampaignReportSpec:
      type: object
      description: 'The specification for generating a Campaign report. For example, the specification to get IMPRESSIONS and CLICKS sliced by CAMPAIGN_ID can look like the following example: { "date_range": { "start_date": {"year": 2021, "month": 12, "day": 1}, "end_date": {"year": 2021, "month": 12, "day": 30} }, "dimensions": ["CAMPAIGN_ID"], "metrics": ["IMPRESSIONS", "CLICKS"], }'
      properties:
        dateRange:
          $ref: '#/components/schemas/DateRange'
        languageCode:
          type: string
          description: Language used for any localized text, such as certain applicable dimension values. The language tag is defined in the IETF BCP47. Defaults to 'en-US' if unspecified or invalid.
        dimensions:
          type: array
          description: List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.
          items:
            type: string
            enum:
            - DIMENSION_UNSPECIFIED
            - DATE
            - CAMPAIGN_ID
            - CAMPAIGN_NAME
            - AD_ID
            - AD_NAME
            - PLACEMENT_ID
            - PLACEMENT_NAME
            - PLACEMENT_PLATFORM
            - COUNTRY
            - FORMAT
            x-enumDescriptions:
            - Default value of an unspecified dimension. Do not use.
            - A date in the YYYYMMDD format (for example, "20210701").
            - The unique ID of the campaign, for example "123456789", which is consistent with the campaign id from campaign list api.
            - The name of the campaign.
            - The unique ID of the ad, for example "123456789".
            - The name of the ad, which may not be unique.
            - The vendor-specific unique ID of the app where the ad is placed. For example, com.goog.bar for Android and 123456789 for iOS apps.
            - The name of the app where the ad is placed.
            - The platform of the app where the ad is placed.
            - The name of the targeted country.
            - Format of the ad unit (for example, "banner", "native"), an ad delivery dimension.
        metrics:
          type: array
          description: List of metrics of the report. A report must specify at least one metric.
          items:
            type: string
            enum:
            - METRIC_UNSPECIFIED
            - IMPRESSIONS
            - CLICKS
            - CLICK_THROUGH_RATE
            - INSTALLS
            - ESTIMATED_COST
            - AVERAGE_CPI
            - INTERACTIONS
            x-enumDescriptions:
            - Default value for an unset field. Do not use.
            - The number of times an ad is shown to the user.
            - The number of times a user clicks an ad.
            - The number of clicks an ad receives divided by the number of times the ad is shown.
            - The number of times apps were downloaded to devices.
            - The estimated cost of serving a campaign ad instead of an ad that earns revenue. The currency is the reporting currency for campaigns.
            - The average cost per install. This means the average amount that was spent to acquire a new user. The currency is the reporting currency for campaigns.
            - The number of times a user interacts with an ad. This consists of clicks and engagements.
    Date:
      type: object
      description: 'Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp'
      properties:
        day:
          type: integer
          format: int32
          description: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        year:
          type: integer
          format: int32
          description: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        month:
          type: integer
          format: int32
          description: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    GenerateCampaignReportResponse:
      type: object
      description: Campaign Report API response.
      properties:
        rows:
          type: array
          description: The campaign report data from the specified publisher. At most 100000 rows will be returned from the API.
          items:
            $ref: '#/components/schemas/ReportRow'
    GenerateCampaignReportRequest:
      type: object
      description: Request to generate campaign report.
      properties:
        reportSpec:
          $ref: '#/components/schemas/CampaignReportSpec'
    DateRange:
      type: object
      description: Specification of a single date range. Both dates are inclusive.
      properties:
        startDate:
          $ref: '#/components/schemas/Date'
        endDate:
          $ref: '#/components/schemas/Date'
    ReportRowMetricValue:
      type: object
      description: Representation of a metric value.
      properties:
        integerValue:
          type: string
          format: int64
          description: Metric integer value.
        doubleValue:
          type: number
          format: double
          description: Double precision (approximate) decimal values. Rates are from 0 to 1.
        microsValue:
          type: string
          format: int64
          description: Amount in micros. One million is equivalent to one unit. Currency value is in the unit (USD, EUR or other) specified by the request. For example, $6.50 whould be represented as 6500000 micros.
    ReportRow:
      type: object
      description: A row of the returning report.
      properties:
        dimensionValues:
          type: object
          description: Map of dimension values in a row, with keys as enum name of the dimensions.
          additionalProperties:
            $ref: '#/components/schemas/ReportRowDimensionValue'
        metricValues:
          type: object
          description: Map of metric values in a row, with keys as enum name of the metrics. If a metric being requested has no value returned, the map will not include it.
          additionalProperties:
            $ref: '#/components/schemas/ReportRowMetricValue'
    ReportRowDimensionValue:
      type: object
      description: Representation of a dimension value.
      properties:
        displayLabel:
          type: string
          description: The localized string representation of the value. If unspecified, the display label should be derived from the value.
        value:
          type: string
          description: Dimension value in the format specified in the report's spec Dimension enum.
  securitySchemes:
    GoogleOAuth2:
      type: oauth2
      description: Google OAuth 2.0. See https://developers.google.com/admob/api/v1/auth
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/admob.readonly: See your AdMob data
            https://www.googleapis.com/auth/admob.report: See your AdMob data
externalDocs:
  url: https://developers.google.com/admob/api/