create_campaign
Create an ad campaign with budget, targeting, and objective settings, returning a campaign ID to chain ad group creation. Use idempotency keys to prevent duplicate campaigns on retry.
Instructions
Create a campaign. Returns campaign_id for chaining to create_ad_group. Common next: create_ad_group with campaign_id. Supports idempotency key to avoid duplicates on retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Mode for catalog or business agent campaigns. | |
| name | Yes | Campaign name 3–1000 chars. | |
| budget | No | Budget caps in micros (1 USD = 1,000,000). | |
| status | No | Initial status (default per API). Use activate/pause tools after. | |
| end_time | No | End unix seconds. | |
| objective | No | Campaign objective. | |
| targeting | No | Targeting object (locations, audiences, platforms). Use search_geo_lookup to resolve location IDs first. | |
| start_time | No | Start unix seconds (946684800–4102444800). | |
| description | No | Optional description. | |
| bidding_type | No | Bidding type. Use conversions with conversion_event_setting_ids. | |
| ad_account_id | No | Optional ad account ID override. | |
| idempotency_key | No | Idempotency key 1–255 chars. Auto-generated if omitted. | |
| product_feed_id | No | Product feed ID if mode=product_feed. | |
| business_agent_id | No | Business agent ID if mode=business_agent. | |
| billing_event_type | No | Billing event. | |
| landing_page_configuration | No | ||
| conversion_event_setting_ids | No | Conversion event setting IDs (exactly 1 when bidding_type=conversions). |