---
title: "GET /studio/dynamicProfiles/{dynamicProfilesId}/generateCode"
method: GET
path: "/studio/dynamicProfiles/{dynamicProfilesId}/generateCode"
tags: ["dynamicProfiles"]
---

# GET /studio/dynamicProfiles/{dynamicProfilesId}/generateCode

`GET /studio/dynamicProfiles/{dynamicProfilesId}/generateCode`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/studio/dynamicProfiles/{dynamicProfilesId}/generateCode`
- 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/studio/dynamicProfiles/:dynamicProfilesId/generateCode/get.ts> (a function with typed inputs; its response is checked against the schema)

Generates code for a dynamic profile, which will need unescaping.

## Path parameters

- `dynamicProfilesId` string, required

## Response `200`

Successful response

- DynamicProfileGenerateCodeResponse: Response message for DfareportingDynamicProfiles.GenerateCode.
  - `code` string: Generated code for the dynamic profile. The code will need to be unescaped.

---

[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)
