Google Campaign Manager Dynamic Targeting Keys API

The DynamicTargetingKeys API from Google Campaign Manager — 2 operation(s) for dynamictargetingkeys.

GitHub OpenAPI

Operations 3

POST /dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys Insert dynamicTargetingKeys #
GET /dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys List dynamicTargetingKeys #
DELETE /dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId} Delete dynamicTargetingKeys #

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-dynamictargetingkeys-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-dynamictargetingkeys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 Dynamic Targeting Keys API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: DynamicTargetingKeys
paths:
  /dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys:
    post:
      operationId: dfareporting.dynamicTargetingKeys.insert
      summary: Insert dynamicTargetingKeys
      description: Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.
      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/DynamicTargetingKey'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicTargetingKey'
        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:
      - DynamicTargetingKeys
    get:
      operationId: dfareporting.dynamicTargetingKeys.list
      summary: List dynamicTargetingKeys
      description: Retrieves a list of dynamic targeting keys.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: advertiserId
        in: query
        required: false
        description: Select only dynamic targeting keys whose object has this advertiser ID.
        schema:
          format: int64
          type: string
      - name: names
        in: query
        required: false
        description: Select only dynamic targeting keys exactly matching these names.
        schema:
          type: array
          items:
            type: string
      - name: objectId
        in: query
        required: false
        description: Select only dynamic targeting keys with this object ID.
        schema:
          format: int64
          type: string
      - name: objectType
        in: query
        required: false
        description: Select only dynamic targeting keys with this object type.
        schema:
          enum:
          - OBJECT_ADVERTISER
          - OBJECT_AD
          - OBJECT_CREATIVE
          - OBJECT_PLACEMENT
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicTargetingKeysListResponse'
        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:
      - DynamicTargetingKeys
  /dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}:
    delete:
      operationId: dfareporting.dynamicTargetingKeys.delete
      summary: Delete dynamicTargetingKeys
      description: Deletes an existing dynamic targeting key.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: dynamicTargetingKeysId
        in: path
        required: true
        description: Resource name segment (dynamicTargetingKeysId).
        schema:
          type: string
      - name: name
        in: query
        required: true
        description: Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.
        schema:
          type: string
      - name: objectType
        in: query
        required: true
        description: Required. Type of the object of this dynamic targeting key. This is a required field.
        schema:
          enum:
          - OBJECT_ADVERTISER
          - OBJECT_AD
          - OBJECT_CREATIVE
          - OBJECT_PLACEMENT
          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:
      - DynamicTargetingKeys
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
    DynamicTargetingKey:
      properties:
        objectType:
          enum:
          - OBJECT_ADVERTISER
          - OBJECT_AD
          - OBJECT_CREATIVE
          - OBJECT_PLACEMENT
          type: string
          description: Type of the object of this dynamic targeting key. This is a required field.
        name:
          type: string
          description: Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.
        kind:
          type: string
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#dynamicTargetingKey".'
        objectId:
          description: ID of the object of this dynamic targeting key. This is a required field.
          format: int64
          type: string
      description: Contains properties of a dynamic targeting key. Dynamic targeting keys are unique, user-friendly labels, created at the advertiser level in DCM, that can be assigned to ads, creatives, and placements and used for targeting with Studio dynamic creatives. Use these labels instead of numeric Campaign Manager IDs (such as placement IDs) to save time and avoid errors in your dynamic feeds.
      type: object
    DynamicTargetingKeysListResponse:
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#dynamicTargetingKeysListResponse".'
          type: string
        dynamicTargetingKeys:
          items:
            $ref: '#/components/schemas/DynamicTargetingKey'
          description: Dynamic targeting key collection.
          type: array
      type: object
      description: Dynamic Targeting Key List Response
  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)