Google Campaign Manager Event Tags API

The EventTags API from Google Campaign Manager — 2 operation(s) for eventtags.

GitHub OpenAPI

Operations 6

DELETE /dfareporting/v5/userprofiles/{userprofilesId}/eventTags/{eventTagsId} Delete eventTags #
GET /dfareporting/v5/userprofiles/{userprofilesId}/eventTags/{eventTagsId} Get eventTags #
GET /dfareporting/v5/userprofiles/{userprofilesId}/eventTags List eventTags #
POST /dfareporting/v5/userprofiles/{userprofilesId}/eventTags Insert eventTags #
PATCH /dfareporting/v5/userprofiles/{userprofilesId}/eventTags Patch eventTags #
PUT /dfareporting/v5/userprofiles/{userprofilesId}/eventTags Update eventTags #

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-eventtags-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-eventtags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 Event Tags API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 6 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: EventTags
paths:
  /dfareporting/v5/userprofiles/{userprofilesId}/eventTags/{eventTagsId}:
    delete:
      operationId: dfareporting.eventTags.delete
      summary: Delete eventTags
      description: Deletes an existing event tag.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: eventTagsId
        in: path
        required: true
        description: Resource name segment (eventTagsId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        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:
      - EventTags
    get:
      operationId: dfareporting.eventTags.get
      summary: Get eventTags
      description: Gets one event tag by ID.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: eventTagsId
        in: path
        required: true
        description: Resource name segment (eventTagsId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTag'
        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:
      - EventTags
  /dfareporting/v5/userprofiles/{userprofilesId}/eventTags:
    get:
      operationId: dfareporting.eventTags.list
      summary: List eventTags
      description: Retrieves a list of event tags, possibly filtered.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: adId
        in: query
        required: false
        description: Select only event tags that belong to this ad.
        schema:
          format: int64
          type: string
      - name: advertiserId
        in: query
        required: false
        description: Select only event tags that belong to this advertiser.
        schema:
          type: string
          format: int64
      - name: campaignId
        in: query
        required: false
        description: Select only event tags that belong to this campaign.
        schema:
          type: string
          format: int64
      - name: definitionsOnly
        in: query
        required: false
        description: Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.
        schema:
          type: boolean
      - name: enabled
        in: query
        required: false
        description: Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.
        schema:
          type: boolean
      - name: eventTagTypes
        in: query
        required: false
        description: Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.
        schema:
          type: array
          items:
            enum:
            - IMPRESSION_IMAGE_EVENT_TAG
            - IMPRESSION_JAVASCRIPT_EVENT_TAG
            - CLICK_THROUGH_EVENT_TAG
            type: string
      - name: ids
        in: query
        required: false
        description: Select only event tags with these IDs.
        schema:
          type: array
          items:
            format: int64
            type: string
      - name: searchString
        in: query
        required: false
        description: Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April 2015", or simply "eventtag 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 "eventtag" will match objects with name "my eventtag", "eventtag 2015", or simply "eventtag".
        schema:
          type: string
      - name: sortField
        in: query
        required: false
        description: Field by which to sort the list.
        schema:
          default: ID
          enum:
          - ID
          - NAME
          type: string
      - name: sortOrder
        in: query
        required: false
        description: Order of sorted results.
        schema:
          default: ASCENDING
          enum:
          - ASCENDING
          - DESCENDING
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTagsListResponse'
        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:
      - EventTags
    post:
      operationId: dfareporting.eventTags.insert
      summary: Insert eventTags
      description: Inserts a new event tag.
      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/EventTag'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTag'
        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:
      - EventTags
    patch:
      operationId: dfareporting.eventTags.patch
      summary: Patch eventTags
      description: Updates an existing event tag. This method supports patch semantics.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: id
        in: query
        required: true
        description: Required. EventTag ID.
        schema:
          type: string
          format: int64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventTag'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTag'
        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:
      - EventTags
    put:
      operationId: dfareporting.eventTags.update
      summary: Update eventTags
      description: Updates an existing event tag.
      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/EventTag'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTag'
        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:
      - EventTags
components:
  schemas:
    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
    EventTag:
      properties:
        subaccountId:
          type: string
          format: int64
          description: Subaccount ID of this event tag. This is a read-only field that can be left blank.
        url:
          description: Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion.
          type: string
        enabledByDefault:
          description: Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads.
          type: boolean
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#eventTag".'
        campaignIdDimensionValue:
          $ref: '#/components/schemas/DimensionValue'
          description: Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
        advertiserIdDimensionValue:
          $ref: '#/components/schemas/DimensionValue'
          description: Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
        status:
          description: Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field.
          type: string
          enum:
          - ENABLED
          - DISABLED
        type:
          enum:
          - IMPRESSION_IMAGE_EVENT_TAG
          - IMPRESSION_JAVASCRIPT_EVENT_TAG
          - CLICK_THROUGH_EVENT_TAG
          description: Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field.
          type: string
        urlEscapeLevels:
          type: integer
          description: Number of times the landing page URL should be URL-escaped before being appended to the click-through event tag URL. Only applies to click-through event tags as specified by the event tag type.
          format: int32
        name:
          type: string
          description: Name of this event tag. This is a required field and must be less than 256 characters long.
        sslCompliant:
          type: boolean
          description: Whether this tag is SSL-compliant or not. This is a read-only field.
        campaignId:
          format: int64
          type: string
          description: Campaign ID of this event tag. This field or the advertiserId field is required on insertion.
        excludeFromAdxRequests:
          description: Whether to remove this event tag from ads that are trafficked through Display & Video 360 to Ad Exchange. This may be useful if the event tag uses a pixel that is unapproved for Ad Exchange bids on one or more networks, such as the Google Display Network.
          type: boolean
        accountId:
          description: Account ID of this event tag. This is a read-only field that can be left blank.
          format: int64
          type: string
        siteIds:
          items:
            type: string
            format: int64
          description: Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter.
          type: array
        advertiserId:
          description: Advertiser ID of this event tag. This field or the campaignId field is required on insertion.
          format: int64
          type: string
        id:
          type: string
          format: int64
          description: ID of this event tag. This is a read-only, auto-generated field.
        siteFilterType:
          enum:
          - ALLOWLIST
          - BLOCKLIST
          type: string
          description: Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites.
      type: object
      description: Contains properties of an event tag.
    EventTagsListResponse:
      type: object
      description: Event Tag List Response
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#eventTagsListResponse".'
          type: string
        eventTags:
          type: array
          items:
            $ref: '#/components/schemas/EventTag'
          description: Event tag collection.
    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
  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)