> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Save an ad

> What Save draft, Save to Library and Use in campaign each keep, and how to save a generated ad to your Library with its image and copy.

The ad studio has three saves. Each one keeps something different, and only one
of them makes an ad you can run.

| You choose | What it keeps | Is it an ad you can run? |
| - | - | - |
| **Save draft** | The composer's slots as you filled them, in the Creative Session. | No. It stays in review. It does not create a Creative. |
| **Save to Library** | One complete ad: the image and every copy slot that was filled, as a Creative in your advertiser's Library. No campaign is attached. | Yes, once you attach it to a campaign. |
| **Use in campaign** | The same complete ad, attached to the campaign. | Yes. |

Saving and attaching are two steps. **Save to Library** never changes a
campaign, so you can save several directions and attach only the one you want.

## Save a generated ad to the Library

In the variant gallery, choose an output, then choose **Save to Library**. The
gallery selects and approves that exact output, then saves it as a Creative in
the advertiser's Library. The Creative carries the generated image and every
copy slot the output filled, such as the headline, the primary text, the button
and the link.

A Library save is named by the `destination` on the finalization. Send it with
`save_creative_session`:

```json theme={null}
{
  "campaignId": "camp_123",
  "sessionId": "cs_abc",
  "finalization": {
    "approvedVariantId": "bv_1",
    "approvedSessionRevision": 5,
    "destination": "library"
  }
}
```

| `destination` | Where the Creative is saved |
| - | - |
| `library` | An evergreen Creative in the advertiser's Library, with no campaign attached. |
| `campaign` | A Creative on the campaign. This is the default for a session that belongs to a campaign. |

A session that belongs to an advertiser's Library always saves to the Library,
so it takes no `campaign` destination: that call is refused. A Library save from
a campaign's session needs the campaign to have an advertiser, because the
creative goes into that advertiser's Library. A campaign with no advertiser is
refused by name and nothing is saved. The response's
`finalization.destination` says where the Creative was saved.

Saving the image alone is a different, smaller action. `save_creative` with
`fromCreativeSessionOutput` stores an approved output's image as a Library
asset, with no copy. The Creative Library uses it when you pick a generated
image for a slot.

## Each output is saved once

An output becomes one Creative. The first destination wins:

* If you saved an output to the Library and then ask for the campaign, the call
  is refused and names the creative. Attach that same creative instead.
* If you used an output in a campaign and then ask for the Library, the call is
  refused and names the campaign creative.

The session stays open either way, so you can save another output.

## Use a saved ad in a campaign

**Use in campaign** on an output you already saved to the Library attaches that
Library creative to the campaign. It does not make a second creative. With the
API, add the campaign to the creative's campaigns with `save_creative`:

```json theme={null}
{
  "advertiserId": "91",
  "creativeId": "cr_123",
  "campaignIds": ["camp_9", "camp_123"]
}
```

`campaignIds` replaces the creative's whole set of campaigns, so read the
creative first with `get` and send every campaign it should run on. Sending
only the new campaign detaches the others.

## Save draft in the composer

The composer's **Save draft** keeps your slots in the Creative Session. It works
without Creative Engines. It is not a Creative, it is not attached to a
campaign, and nothing is sent to a seller. A draft does not become an ad by
itself. For a Meta image post, **Write all** makes complete concepts in the
gallery, where **Save to Library** saves the one you choose.

## Who can do this

Saving a generated ad to the Library needs Creative Engines, which your Apostra
account team enables for enrolled Buyer accounts, because the gallery and the
Creative Session it saves from are part of it. **Save draft** in the composer
does not need it.

See [Read a creative session](https://docs.apostra.com/v2/setup/v3/creative-engines.md#read-a-creative-session)
for the session's fields, and [Creatives](https://docs.apostra.com/v3/creatives-list.md) for the Library.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.