---
title: "GET /userprofiles/{userprofilesId}/dynamicTargetingKeys"
method: GET
path: "/userprofiles/{userprofilesId}/dynamicTargetingKeys"
tags: ["dynamicTargetingKeys"]
---

# GET /userprofiles/{userprofilesId}/dynamicTargetingKeys

`GET /userprofiles/{userprofilesId}/dynamicTargetingKeys`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/dynamicTargetingKeys/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of dynamic targeting keys.

## Path parameters

- `userprofilesId` string, required

## Query parameters

- `advertiserId` string, int64
- `names` string[]
- `objectId` string, int64
- `objectType` 'OBJECT_ADVERTISER' | 'OBJECT_AD' | 'OBJECT_CREATIVE' | 'OBJECT_PLACEMENT'

## Response `200`

Successful response

- DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response
  - `dynamicTargetingKeys` DynamicTargetingKey[]: Dynamic targeting key collection.
    - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#dynamicTargetingKey".
    - `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.
    - `objectId` string, int64: ID of the object of this dynamic targeting key. This is a required field.
    - `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#dynamicTargetingKeysListResponse".

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
