---
title: "Change a TikTok ad group's or LinkedIn campaign's budget, end date or name"
method: PATCH
path: "/api/v1/ads/ad-groups/{adGroupId}"
tags: ["Ads"]
---

# Change a TikTok ad group's or LinkedIn campaign's budget, end date or name

`PATCH /api/v1/ads/ad-groups/{adGroupId}`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/ads/ad-groups/{adGroupId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/ads/ad-groups/:adGroupId/patch.ts> (a function with typed inputs; its response is checked against the schema)

TikTok and LinkedIn; Meta returns 400 unsupported_for_platform.

## Path parameters

- `adGroupId` string, required

## Query parameters

- `accountId` string, uuid
- `profileId` string, uuid
- `platform` 'meta_ads' | 'tiktok_ads' | 'linkedin_ads'

## Request body

- union
  - object
    - `adAccountId` string, required
    - `name` string
    - `dailyBudget` number
    - `endDate` string
  - object
    - `adAccountId` string, required
    - `name` string
    - `dailyBudget` number
    - `endDate` string

## Response `200`

Success

- object
  - `platform` 'tiktok_ads' | 'linkedin_ads', required
  - `accountId` string, uuid, required
  - `adAccountId` string, required
  - `adGroup` object, required
    - `adGroupId` string, required
    - `name` string
    - `dailyBudget` number
    - `endDate` string

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `403`: The connection lacks a permission or provider-confirmed resource
- `404`: Profile, account, or object not found
- `409`: The request conflicts with existing state
- `422`: The connected account cannot perform this operation
- `429`: Provider quota or rate limit exhausted
- `502`: Invalid request or provider failure

---

[API](https://skmtc.dev/adeli/apis/adeli-api.md) - [All operations](https://skmtc.dev/adeli/apis/adeli-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adeli/apis/adeli-api/revisions/ed680dfa9033?raw)
