Meta Ads icon

Meta Ads

Access Meta Ads Marketing API

Actions20

Ad Set → Create

AI-generated

Summary

Create a new ad set within a specified Meta Ads campaign using the provided ad account and campaign IDs, along with details like name, status, daily budget, optimization goal, billing event, and targeting specifications.

Inputs

  • Ad Account ID (required) — The numeric ID of the ad account (without the act_ prefix) to create the ad set under.
  • Campaign ID (required) — The ID of the campaign this ad set belongs to.
  • Name (required) — The name to assign to the new ad set.
  • Status — The status of the ad set, either Active or Paused. Defaults to Paused.
  • Daily Budget — Daily budget for the ad set in cents (e.g., 1000 equals $10.00). Defaults to 1000.
  • Optimization Goal — The optimization goal for the ad set, such as Link Clicks or Impressions. Defaults to Link Clicks.
  • Billing Event — The event for which billing occurs, either Impressions or Link Clicks. Defaults to Impressions.
  • Targeting (JSON) — Targeting specifications in JSON format defining the audience for the ad set (default targets US with age between 18 and 65).

Output shape

a single JSON object

The returned data includes the details of the created ad set from the Meta Ads API response.

Links

Discussion