# Manage ads

Pause or resume AppLovin campaigns and creative sets, rename them, change a campaign's daily budget, and remove a creative set from its campaign.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

AppLovin keeps an on/off switch on the campaign and on each creative set, and Zernio writes to the level you call.

## Pause or resume

`PUT /v1/ads/{adId}/status` pauses or resumes one creative set. Its campaign and the other creative sets keep their switch.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: paused } = await zernio.adcampaigns.updateAdStatus({
  path: { adId: '6ae0968fa23091cc35b72188' },
  body: { status: 'paused' }
});
```
</Tab>
<Tab value="Python">
```python
paused = client.ad_campaigns.update_ad_status(
    ad_id="6ae0968fa23091cc35b72188",
    status="paused",
)
```
</Tab>
<Tab value="curl">
```bash
curl -X PUT "https://zernio.com/api/v1/ads/6ae0968fa23091cc35b72188/status" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "paused" }'
```
</Tab>
</Tabs>

`PUT /v1/ads/campaigns/{campaignId}/status` pauses or resumes the whole campaign the same way, with the campaign's hashed id. `POST /v1/ads/campaigns/bulk-status` does it for several campaigns.

## Other changes

| Change | Call | AppLovin behaviour |
|--------|------|--------------------|
| Rename | `name` on `PUT /v1/ads/{adId}` or `PUT /v1/ads/campaigns/{campaignId}` | Renames the creative set or the campaign |
| Budget | `budget: { amount, type: "daily" }` on `PUT /v1/ads/campaigns/{campaignId}` or `PUT /v1/ads/{adId}` | Sets the campaign's daily budget for all countries |
| Goal value | `bidStrategy: "COST_CAP"` with `bidAmount` (CPI, CPE, CPP), or `"LOWEST_COST_WITH_MIN_ROAS"` with `roasAverageFloor` (ROAS goals), on `PUT /v1/ads/campaigns/{campaignId}` | Sets the campaign's goal value for all countries |
| Targeting | `targeting` on `PUT /v1/ads/{adId}` | Changes the campaign's countries, states or metros ([Targeting](/platforms/applovin/targeting#change-the-targeting)) |
| Remove | `DELETE /v1/ads/{adId}` | Takes the creative set out of its campaign |

Campaign calls take `platform: "applovin"` in the body.

## How it behaves

- A creative set reads `paused` while its campaign is paused, even when its own switch is on.
- `DELETE /v1/ads/{adId}` keeps the creative set and its assets in your AppLovin account; it only stops serving in that campaign.
- AppLovin has no delete or archive for campaigns: pause a campaign to stop it.
- The goal type cannot change, only its value. App campaigns keep the create limits: CPI under 200, CPE and CPP under 500, `AD_ROAS` at least 0.1, `CHK_ROAS` at least 0.01, `BLD_ROAS` at least 0.05.
- Creative changes are not available after creation: add a new creative set instead.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `422` with `param: "budgetType"` | A lifetime budget | Send `type: "daily"`. |
| `501` with `feature_not_available` on `DELETE /v1/ads/campaigns/{campaignId}` | AppLovin cannot delete a campaign | Pause it instead. |
| `422` with `invalid_field_value` on a goal value change | A strategy of the other goal family, no value, a value out of limits, or a goal set per country | Send the field that matches the goal type, within its limits. |
| `422` with `invalid_field_value` on a budget change | The campaign has a budget per country | Change the country budgets in AppLovin Axon Ads Manager. |
| `422` with `invalid_field_value` on an ad status change | The creative set serves in more than one campaign | Pause the campaign, or change it in AppLovin Axon Ads Manager. |
| `501` with `feature_not_available` on an ad set call | AppLovin has no ad sets: the ad sets Zernio lists mirror the campaigns | Make the change on the campaign. |

## Related

- [Pause or resume a single ad](/ad-campaigns/update-ad-status): the switch and its read-back.
- [Update ad](/ad-campaigns/update-ad) and [Update a campaign](/ad-campaigns/update-ad-campaign): name, budget and targeting.
- [Get campaign tree](/ad-campaigns/get-ad-tree): every campaign and creative set with its status.