account | DynamicAccount | Yes | - | Select Meta Ads account to update campaigns in, ask the user for it if not provided |
update_type | string or SelectableOption | Yes | - | Choose whether to update a single campaign or multiple campaigns at once. Options: ‘single’ (Single Update), ‘bulk’ (Bulk Updates) |
campaign_id | string or SelectItem | No | - | Select the campaign ID to update (required for single update) |
budget_type | string or SelectableOption | No | - | Select the budget type to update. Options: ‘daily_budget’ (Daily Budget), ‘lifetime_budget’ (Lifetime Budget) (required for single update) |
budget_value | number | No | - | The budget amount as an actual dollar value in the account currency, NOT in cents (e.g., pass 100 to set the budget to 100,pass50.5for50.50). Do not multiply by 100. Required for single update. IMPORTANT: budgets returned by meta_ads_get_campaign_settings (daily_budget, lifetime_budget, etc.) are raw values from Meta in the account’s minor currency units (cents for USD, e.g. 10000 = $100) — divide by 100 before passing here. |
structured_data | array (also accepts a comma-separated string) | No | - | Structured data with ‘campaign_id’, ‘budget_type’, and ‘budget_value’ fields for each row (required for bulk update). ‘budget_value’ is an actual dollar value in the account currency, NOT cents (e.g., 100 = $100). IMPORTANT: budgets returned by meta_ads_get_campaign_settings are raw values from Meta in the account’s minor currency units (cents for USD) — divide by 100 before passing here. |