---
title: "POST /v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add"
method: POST
path: "/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add"
tags: ["accounts"]
---

# POST /v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add

`POST /v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add`

## Request

- Base URL: `https://adexchangebuyer.googleapis.com`
- URL: `https://adexchangebuyer.googleapis.com/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/adexchange.buyer`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/adexchange.buyer`

Associate an existing deal with a creative.

## Path parameters

- `accountId` string, required
- `creativeId` string, required

## Request body

- AddDealAssociationRequest: A request for associating a deal and a creative.
  - `association` CreativeDealAssociation: The association between a creative and a deal.
    - `accountId` string: The account the creative belongs to.
    - `creativeId` string: The ID of the creative associated with the deal.
    - `dealsId` string: The externalDealId for the deal associated with the creative.

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Changes

- **2026-10-10** `af1a744df07b`: 2 breaking
  - removed the request body
  - removed the media type `*/*` for the response with the status `200`

[Operation history](https://skmtc.dev/google/apis/adexchangebuyer2/changes/v2beta1/accounts/:accountId/creatives/:creativeId/dealAssociations:add/post.md)

---

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