Sign in

Create Campaign

documented

Create a new ad campaign.

POST /5/accounts/{account_id}/campaignsAds APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://ads-api.x.com/12/accounts/{{$account_id}}/campaigns" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$title}}", "funding_instrument_id": "{{$funding_instrument_id}}", "budget_optimization": "{{$budget_optimization}}", "start_time": "{{$start_time}}", "end_time": "{{$end_time}}", "daily_budget_amount_local_micro": {{$daily_budget_amount_local_micro}}, "currency": "{{$currency}}"}'