AI-generated Key Takeaways
- 
          This page details how to retrieve a list of dynamic targeting keys using an HTTP GET request. 
- 
          The request requires a user profile ID in the path parameters. 
- 
          Optional query parameters allow filtering the list by name, object type, object ID, and advertiser ID. 
- 
          The request body must be empty. 
- 
          The successful response body will contain a list of dynamic targeting key objects. 
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Retrieves a list of dynamic targeting keys.
HTTP request
GET https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| profileId | 
 User profile ID associated with this request. | 
Query parameters
| Parameters | |
|---|---|
| names[] | 
 Select only dynamic targeting keys exactly matching these names. | 
| objectType | 
 Select only dynamic targeting keys with this object type. | 
| objectId | 
 Select only dynamic targeting keys with this object ID. | 
| advertiserId | 
 Select only dynamic targeting keys whose object has this advertiser ID. | 
Request body
The request body must be empty.
Response body
Dynamic Targeting Key dynamicTargetingKeys.list Response
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "kind": string,
  "dynamicTargetingKeys": [
    {
      object ( | 
| Fields | |
|---|---|
| kind | 
 Identifies what kind of resource this is. Value: the fixed string 
 . | 
| dynamicTargetingKeys[] | 
 Dynamic targeting key collection. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/dfatrafficking