Sign in

Create ad campaign

documented

Create a new ad campaign.

POST /advertising/campaignsAd Campaignsno 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://www.toneden.io/api/v1/advertising/campaigns" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"target_type": "{{$target_type}}", "target": "{{$target}}", "optimization_id": "{{$optimization_id}}", "creatives": {"text": ["{{$text}}"], "display_asset": ["{{$display_asset}}"]}, "budget_amount": {{$budget_amount}}, "budget_type": "{{$budget_type}}", "start_timestamp": {{$start_timestamp}}, "end_timestamp": {{$end_timestamp}}, "is_continuous": {{$is_continuous}}}'