Documentation menu
Ads

Update ad status

Activate, pause, or resume a campaign, ad set (ad group), or ad.

PUThttps://app.tryadeli.com/api/v1/ads/status
AuthorizationBearer <API key>How keys work

Sets a campaign's, ad set's (TikTok ad group's) or ad's delivery status. Activating an ad is what starts spending.

On Meta, setting the status an object already has succeeds without calling Meta, and one object's status can change four times an hour: switching an ad on and off repeatedly resets Meta's learning and looks automated. See the limits on changes.

For TikTok, level is required, because TikTok has a separate endpoint per level. Activating the ad of a campaign Adeli created, with its campaignRecordId, also enables that campaign and ad group: TikTok delivers nothing while a parent is disabled.

For LinkedIn, level is required too: campaign is a campaign group, ad_group a campaign, and ad a creative. Activating a draft campaign group Adeli created, named by its id or campaignRecordId, activates its creative, then its campaign, then the group, which is the switch that starts delivery. LinkedIn then reviews the ad. A member whose role on the ad account is Viewer gets 403 ad_account_read_only.

Body

adAccountIdstringRequired
The ad account the object belongs to.
objectIdstringRequired
A campaign, ad set (ad group) or ad id.
levelstring
campaign, ad_group or ad. Required for TikTok and LinkedIn; ignored for Meta.
statusstringRequired
ACTIVE or PAUSED.
campaignRecordIduuid
Keeps Adeli's campaign record in step when the object came from POST `/api/v1/ads/campaigns`.