New paused ad group
create_ad_setCreate a paused ad group in a campaign (no spend, no approval needed; enabling is a status proposal). Meta: optimization_goal, countries (ISO) and/or regions / cities from search_locations, age_min/age_max (13–65), genders (all|male|female), advantage_audience (explicitly), for OFFSITE_CONVERSIONS / VALUE — the account's pixel_id and a standard event or a custom conversion (custom_conversion_id) with custom_event_type; optional placements (as in propose_ad_set_targeting; omitted — automatic placements), interests [{id, name}] from search_interests, custom_audience_ids / excluded_audience_ids; budget_minor or lifetime_budget_minor with end_time — only for a campaign without a budget; optional start_time / end_time. Google (Search campaign only): name and an optional cpc_bid_minor. Microsoft (Search campaign only): name and an optional cpc_bid_minor, as for Google.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cities | No | Cities from search_locations: [{key, name, radius, distance_unit}] (radius optional) | |
| age_max | No | ||
| age_min | No | ||
| genders | No | ||
| page_id | No | Required for LEAD_GENERATION; a Page from meta_ads.get_pages | |
| regions | No | Regions from search_locations: [{key, name}] | |
| end_time | No | ISO 8601 with a time zone | |
| pixel_id | No | ||
| countries | No | ||
| interests | No | ||
| languages | No | Languages from search_languages: [{key, name}]; empty — all languages | |
| placements | No | Empty publisher_platforms — automatic placements (Advantage+); an empty positions list — all positions of the platform | |
| start_time | No | ISO 8601 with a time zone | |
| campaign_id | Yes | The service campaign id or the platform's campaign id (external_id) | |
| budget_minor | No | ||
| cpc_bid_minor | No | ||
| custom_event_type | No | ||
| optimization_goal | No | ||
| advantage_audience | No | ||
| custom_audience_ids | No | ||
| custom_conversion_id | No | A custom conversion of the account (get_custom_conversions); custom_event_type must be its type | |
| excluded_audience_ids | No | ||
| lifetime_budget_minor | No | Instead of budget_minor; requires end_time |