Create ad groups
pinterest_ads_create_ad_groupsCreate up to 500 Pinterest ad groups per call in a live account, with dry-run rehearsal and confirmation for large or high-value batches.
Instructions
Create ad groups (up to 500 per call, sent 30 at a time). Changes the live account.
items: one object per ad group, sent as-is. Example: {"name": "UK women 25-44", "campaign_id": "626747269410", "billable_event": "CLICKTHROUGH", "bid_strategy_type": "AUTOMATIC_BID", "budget_in_micro_currency": 10000000, "budget_type": "DAILY", "targeting_spec": {"LOCATION": ["GB"], "GENDER": ["female"], "AGE_BUCKET": ["25-34", "35-44"]}}. For SALES or LEADS campaigns set "optimization_goal_metadata": {"conversion_tag_v3_goal_metadata": {"conversion_tag_id": "...", "conversion_event": "CHECKOUT"}} (CHECKOUT or ADD_TO_CART for SALES, SIGNUP or LEAD for LEADS). targeting_spec needs LOCATION or GEO. Use pinterest_ads_get_targeting_options for valid codes. Money fields (budget_in_micro_currency, bid_in_micro_currency) are micro-units of the account currency (1.00 = 1000000). Items without a status are created PAUSED. Large batches and values over PINTEREST_ADS_MAX_BUDGET/PINTEREST_ADS_MAX_BID need confirm='APPLY'. Rehearse with dry-run first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| confirm | No | ||
| ad_account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||