Google Ads Ad Events API

The AdEvents API from Google Ads — 1 operation(s) for adevents.

GitHub OpenAPI

Operations 1

POST /v1/adEvents:ingest Ingest adEvents #

Documentation

Specifications

Schemas & Data

Other Resources

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-ads:google-ads-adevents-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-ads-adevents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Data Manager Ad Events API
  version: v1
  description: Generated from Google's published Discovery document for Data Manager API (datamanager v1, revision 20261106). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://datamanager.googleapis.com
tags:
- name: AdEvents
paths:
  /v1/adEvents:ingest:
    post:
      operationId: datamanager.adEvents.ingest
      summary: Ingest adEvents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestAdEventsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestAdEventsResponse'
        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/datamanager
      - apiKey: []
      tags:
      - AdEvents
components:
  schemas:
    EncryptionInfo:
      properties:
        coordinatorKeyInfo:
          $ref: '#/components/schemas/CoordinatorKeyInfo'
        gcpWrappedKeyInfo:
          $ref: '#/components/schemas/GcpWrappedKeyInfo'
        awsWrappedKeyInfo:
          $ref: '#/components/schemas/AwsWrappedKeyInfo'
      type: object
    UserIdentifier:
      type: object
      properties:
        phoneNumber:
          type: string
        emailAddress:
          type: string
        address:
          $ref: '#/components/schemas/AddressInfo'
    GcpWrappedKeyInfo:
      properties:
        keyType:
          type: string
          enum:
          - KEY_TYPE_UNSPECIFIED
          - XCHACHA20_POLY1305
        kekUri:
          type: string
        wipProvider:
          type: string
        encryptedDek:
          type: string
      type: object
    ViewabilityInfo:
      type: object
      properties:
        mediaVolumePercent:
          format: int32
          type: integer
        viewablePercent:
          format: int32
          type: integer
        mediaDuration:
          type: string
          format: google-duration
        mediaSkippable:
          type: boolean
        viewableDuration:
          format: google-duration
          type: string
        playbackDuration:
          format: google-duration
          type: string
        viewType:
          type: string
          enum:
          - VIEW_TYPE_UNSPECIFIED
          - VIEW_TYPE_MRC_VIEWED
          - VIEW_TYPE_MRC_RENDERED
        mediaQuartile:
          type: string
          enum:
          - MEDIA_QUARTILE_UNSPECIFIED
          - MEDIA_QUARTILE_START
          - MEDIA_QUARTILE_FIRST_QUARTILE
          - MEDIA_QUARTILE_MIDPOINT
          - MEDIA_QUARTILE_THIRD_QUARTILE
          - MEDIA_QUARTILE_COMPLETE
    IngestAdEventsRequest:
      type: object
      properties:
        encryptionInfo:
          $ref: '#/components/schemas/EncryptionInfo'
        validateOnly:
          type: boolean
          deprecated: true
        adEvents:
          type: array
          items:
            $ref: '#/components/schemas/AdEvent'
    CoordinatorKeyInfo:
      properties:
        keyId:
          type: string
      type: object
    AddressInfo:
      properties:
        addressLine:
          type: string
        familyName:
          type: string
        postalCode:
          type: string
        city:
          type: string
        administrativeArea:
          type: string
        regionCode:
          type: string
        givenName:
          type: string
      type: object
    AdEvent:
      properties:
        measurementAllowed:
          type: boolean
        adPlacementString:
          type: string
        advertiserId:
          type: string
        campaignName:
          type: string
        mobileDeviceId:
          type: string
        campaignId:
          type: string
        adTypeString:
          type: string
        adFormat:
          type: string
          enum:
          - AD_FORMAT_UNSPECIFIED
          - AD_FORMAT_AR
          - AD_FORMAT_AUDIO
          - AD_FORMAT_BANNER
          - AD_FORMAT_BUMPER
          - AD_FORMAT_CAROUSEL
          - AD_FORMAT_COLLECTION
          - AD_FORMAT_IMAGE
          - AD_FORMAT_INTERACTIVE
          - AD_FORMAT_INTERSTITIAL
          - AD_FORMAT_IN_FEED
          - AD_FORMAT_IN_STREAM
          - AD_FORMAT_IN_STREAM_SKIPPABLE
          - AD_FORMAT_IN_STREAM_NON_SKIPPABLE
          - AD_FORMAT_NATIVE
          - AD_FORMAT_SHORTS
          - AD_FORMAT_STORY
          - AD_FORMAT_SPONSORED
          - AD_FORMAT_VIDEO
        eventId:
          type: string
        ipAddress:
          type: string
        deviceInfo:
          $ref: '#/components/schemas/DeviceInfo'
        eventType:
          type: string
          enum:
          - EVENT_TYPE_UNSPECIFIED
          - EVENT_TYPE_VIEW
          - EVENT_TYPE_CLICK
        regionCode:
          type: string
        viewabilityInfo:
          $ref: '#/components/schemas/ViewabilityInfo'
        targetingTypeString:
          type: string
        medium:
          type: string
        platformType:
          type: string
          enum:
          - PLATFORM_TYPE_UNSPECIFIED
          - PLATFORM_TYPE_MOBILE
          - PLATFORM_TYPE_DESKTOP
          - PLATFORM_TYPE_CTV
          - PLATFORM_TYPE_PHONE
          - PLATFORM_TYPE_TABLET
        adFormatString:
          type: string
        timestamp:
          type: string
          format: google-datetime
        platform:
          type: string
          enum:
          - PLATFORM_UNSPECIFIED
          - PLATFORM_IOS
          - PLATFORM_ANDROID
          - PLATFORM_WEB
        platformString:
          type: string
        adPlacement:
          type: string
          enum:
          - AD_PLACEMENT_UNSPECIFIED
          - AD_PLACEMENT_DISCOVER
          - AD_PLACEMENT_FEED
          - AD_PLACEMENT_FOOTER
          - AD_PLACEMENT_HEADER
          - AD_PLACEMENT_HOME
          - AD_PLACEMENT_IN_CONTENT
          - AD_PLACEMENT_PROMOTED
          - AD_PLACEMENT_SEARCH
          - AD_PLACEMENT_STORY
        attributionHint:
          type: string
          enum:
          - ATTRIBUTION_HINT_UNSPECIFIED
          - ATTRIBUTION_HINT_CONVERTED
          - ATTRIBUTION_HINT_NOT_CONVERTED
        adHeight:
          type: integer
          format: int32
        eventSubtypeString:
          type: string
        adGroupId:
          type: string
        source:
          type: string
        adId:
          type: string
        adWidth:
          type: integer
          format: int32
        targetingType:
          type: string
          enum:
          - TARGETING_TYPE_UNSPECIFIED
          - TARGETING_TYPE_AUDIENCE
          - TARGETING_TYPE_CONTEXTUAL
          - TARGETING_TYPE_DEMOGRAPHIC
          - TARGETING_TYPE_DEVICE
          - TARGETING_TYPE_GEO
          - TARGETING_TYPE_INTEREST
          - TARGETING_TYPE_PURCHASE_INTENT
          - TARGETING_TYPE_REMARKETING
        adType:
          type: string
          enum:
          - AD_TYPE_UNSPECIFIED
          - AD_TYPE_DISPLAY
          - AD_TYPE_TEXT
          - AD_TYPE_IMAGE
          - AD_TYPE_RICH_MEDIA
          - AD_TYPE_HTML
          - AD_TYPE_AUDIO
          - AD_TYPE_VIDEO
        userData:
          $ref: '#/components/schemas/UserData'
        platformTypeString:
          type: string
        eventSubtype:
          type: string
          enum:
          - EVENT_SUBTYPE_UNSPECIFIED
          - EVENT_SUBTYPE_IMPRESSION
          - EVENT_SUBTYPE_ENGAGED_VIEW
          - EVENT_SUBTYPE_ONSITE_CLICK
          - EVENT_SUBTYPE_OUTBOUND_CLICK
      type: object
    AwsWrappedKeyInfo:
      properties:
        encryptedDek:
          type: string
        kekUri:
          type: string
        roleArn:
          type: string
        keyType:
          type: string
          enum:
          - KEY_TYPE_UNSPECIFIED
          - XCHACHA20_POLY1305
      type: object
    DeviceInfo:
      type: object
      properties:
        brand:
          type: string
        languageCode:
          type: string
        browserVersion:
          type: string
        ipAddress:
          type: string
        model:
          type: string
        screenHeight:
          format: int32
          type: integer
        operatingSystem:
          type: string
        screenWidth:
          type: integer
          format: int32
        userAgent:
          type: string
        category:
          type: string
        operatingSystemVersion:
          type: string
        browser:
          type: string
    IngestAdEventsResponse:
      properties: {}
      type: object
    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
    UserData:
      properties:
        userIdentifiers:
          items:
            $ref: '#/components/schemas/UserIdentifier'
          type: array
      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/datamanager: See, edit, create, import, or delete your customer data in Google Ads, Google Marketing Platform (Campaign Manager 360, Search Ads 360, Display & Video 360), and Google Analytics
            https://www.googleapis.com/auth/datamanager.partnerlink: View, create, or delete your partner links in Google Ads, Marketing Platform (Campaign Manager 360, Search Ads 360, Display & Video 360), and Analytics
externalDocs:
  url: https://developers.google.com/data-manager
x-provenance:
  method: harvested
  publisher: Google
  source: https://datamanager.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)