Documentation menu
Ads

Update ad group

Change a Meta ad set's budget, bid, dates or targeting, or a TikTok ad group's or LinkedIn campaign's budget, end date or name.

PATCHhttps://app.tryadeli.com/api/v1/ads/ad-groups/{adGroupId}
AuthorizationBearer <API key>How keys work

Changes a Meta ad set's name, budget, bid, schedule or targeting, or a TikTok ad group's or LinkedIn campaign's daily budget, end date or name. The adGroupId is an entry in a campaign's adSets from the campaign tree; TikTok calls ad sets ad groups, and on LinkedIn they are the campaigns inside a campaign group. LinkedIn's minimum is 10 USD a day, and its end date is the end of that day in UTC.

Body

adAccountIdstringRequired
The TikTok advertiser id the ad group belongs to.
dailyBudgetnumber
Whole units of the ad account's currency. TikTok's minimum is 20 USD a day; Adeli refuses less for a USD account with 400 before calling TikTok.
endDatedate
YYYY-MM-DD. The ad group stops delivering at the end of that day in the ad account's timezone.
namestring
Shown in TikTok Ads Manager.

Give at least one of dailyBudget, endDate or name.

Meta body

Only the fields you send change. The ad set must belong to adAccountId, or the response is 404 object_not_found.

Body (Meta)

adAccountIdstringRequired
The Meta ad account the ad set belongs to.
namestring
Shown in Ads Manager.
budgetobject
{ type, amount } in whole currency units. The type must be the one the ad set has: Meta does not switch daily and lifetime. An ad set whose campaign holds the budget (CBO) returns 400; change it with Update campaign.
bidobject
{ strategy: lowest_cost | bid_cap | cost_cap | min_roas, amount, roasFloor }, as on Create campaign.
startDatedate
YYYY-MM-DD; the ad set starts at midnight UTC.
endDatedate
YYYY-MM-DD; the ad set runs through the end of that day (UTC).
targetingobject
The whole targeting spec, as on Create campaign. It replaces the current one.

The response is { platform: "meta_ads", accountId, adAccountId, adGroup: { adSetId, updated } }, where updated lists the fields sent.

To delete one Meta ad set with its ads, send DELETE to the same path with adAccountId in the query; see Delete ad set.