audiences_apply_to_adset
Apply saved audience targeting to an adset. Replace or merge with existing targeting, and add overrides for per-adset tweaks. Requires confirmation to rewrite adset targeting.
Instructions
Copy targeting from a saved audience to a live adset.
This is the verified workaround for the saved_audiences write capability gate: the adset endpoint accepts the same targeting object under standard ads_management scope, so we just pull the targeting from the saved audience and POST it on the adset.
Args: saved_audience_id: e.g. 120241644369970701 adset_id: target adset to update merge: how to combine the saved audience's targeting with the adset's existing targeting: - "replace" (default): overwrite the adset's targeting entirely - "merge": shallow-merge — saved-audience keys override adset keys, anything else on the adset is preserved overrides: extra targeting keys to apply on top of the resulting object (e.g. {"age_min": 25}). Useful for per-adset tweaks without editing the saved audience. confirm: must be True (the adset targeting WILL be rewritten).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | replace | |
| confirm | No | ||
| adset_id | Yes | ||
| overrides | No | ||
| saved_audience_id | Yes |