---
title: "POST /userprofiles/{+profileId}/dynamicTargetingKeys"
method: POST
path: "/userprofiles/{+profileId}/dynamicTargetingKeys"
tags: ["dynamicTargetingKeys"]
---

# POST /userprofiles/{+profileId}/dynamicTargetingKeys

`POST /userprofiles/{+profileId}/dynamicTargetingKeys`

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.

## Path parameters

- `profileId` string, required

## Request body

- DynamicTargetingKey — 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.
  - `objectType` 'OBJECT_ADVERTISER' | 'OBJECT_AD' | 'OBJECT_CREATIVE' | 'OBJECT_PLACEMENT' — Type of the object of this dynamic targeting key. This is a required field.
  - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#dynamicTargetingKey".
  - `objectId` string, int64 — ID of the object of this dynamic targeting key. This is a required field.
  - `name` string — 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.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dfareporting.md) · [All operations](https://skmtc.net/google/apis/dfareporting/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dfareporting/revisions/8163d57aeb31/schema)
