create_campaign
Create an ad campaign with a single budget type (daily or lifetime) in micros, location targeting via country codes, and immutable CPM bidding.
Instructions
Create a campaign. bidding_type is immutable post-creation (default impressions/CPM).
Set exactly one budget — daily_spend_limit_micros OR lifetime_spend_limit_micros
(a campaign carries a single budget mode; one is required). Limits are in micros
(1_000_000 = one currency unit). country_codes are ISO codes for location targeting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | paused | |
| daily_spend_limit_micros | No | ||
| lifetime_spend_limit_micros | No | ||
| bidding_type | No | ||
| country_codes | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| description | No | ||
| status | No | ||
| bidding_type | No | ||
| start_time | No | ||
| end_time | No | ||
| budget | No | ||
| targeting | No | ||
| serving_issues | No | ||
| created_at | No | ||
| updated_at | No |