---
title: "POST /userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations"
method: POST
path: "/userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations"
tags: ["campaignCreativeAssociations"]
---

# POST /userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations

`POST /userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations`
- 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/campaigns/:campaignsId/campaignCreativeAssociations/post.ts> (a function with typed inputs; its response is checked against the schema)

Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.

## Path parameters

- `userprofilesId` string, required
- `campaignsId` string, required

## Request body

- CampaignCreativeAssociation: Identifies a creative which has been associated with a given campaign.
  - `creativeId` string, int64: ID of the creative associated with the campaign. This is a required field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignCreativeAssociation".

## Response `200`

Successful response

- CampaignCreativeAssociation: Identifies a creative which has been associated with a given campaign.
  - `creativeId` string, int64: ID of the creative associated with the campaign. This is a required field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignCreativeAssociation".

---

[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/1a6f46a2467c?raw)
