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 thedestination on the finalization. Send it with
save_creative_session:
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.
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 withsave_creative:
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.